@lumoai/cli 1.35.0 → 1.37.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/assets/skill/SKILL.md +11 -5
- package/assets/skill/references/criteria.md +13 -0
- package/assets/skill/references/docs.md +3 -1
- package/assets/skill/references/memory.md +20 -0
- package/assets/skill/references/sessions.md +21 -32
- package/assets/skill/references/task-context.md +66 -3
- package/assets/skill/references/verify.md +57 -6
- package/dist/cli/src/commands/cost.js +107 -0
- package/dist/cli/src/commands/memory-show.js +57 -0
- package/dist/cli/src/commands/session-wrap.js +6 -9
- package/dist/cli/src/commands/task-create.js +23 -6
- package/dist/cli/src/commands/task-figma-context.js +4 -0
- package/dist/cli/src/commands/task-lineage.js +39 -2
- package/dist/cli/src/commands/task-slack-show.js +9 -4
- package/dist/cli/src/commands/task-status.js +12 -0
- package/dist/cli/src/commands/task-web-show.js +7 -2
- package/dist/cli/src/commands/verdict.js +13 -18
- package/dist/cli/src/commands/verify.js +8 -0
- package/dist/cli/src/index.js +21 -5
- package/dist/cli/src/lib/doc-input.js +7 -0
- package/dist/cli/src/lib/hook-runner.js +27 -46
- package/dist/cli/src/lib/report-pull.js +49 -0
- package/package.json +1 -1
- package/dist/cli/src/commands/wrap/progress-comment-section.js +0 -81
- package/dist/cli/src/lib/progress-comment-api.js +0 -47
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fetchProgressDraft = fetchProgressDraft;
|
|
4
|
-
exports.postProgressComment = postProgressComment;
|
|
5
|
-
const api_1 = require("./api");
|
|
6
|
-
function base(creds) {
|
|
7
|
-
return (0, api_1.trimTrailingSlash)((0, api_1.resolveAuthedApiUrl)(creds.apiUrl));
|
|
8
|
-
}
|
|
9
|
-
/** GET the unposted progress draft for the session. Throws on transport / non-200. */
|
|
10
|
-
async function fetchProgressDraft(creds, sessionId) {
|
|
11
|
-
const url = `${base(creds)}/api/sessions/${encodeURIComponent(sessionId)}/turn-summaries`;
|
|
12
|
-
const res = await fetch(url, {
|
|
13
|
-
headers: { Authorization: `Bearer ${creds.token}` },
|
|
14
|
-
});
|
|
15
|
-
if (res.status === 401)
|
|
16
|
-
throw new Error('API key invalid or revoked. Run `lumo auth login`.');
|
|
17
|
-
if (!res.ok)
|
|
18
|
-
throw new Error(`progress draft fetch failed (HTTP ${res.status})`);
|
|
19
|
-
return (await res.json());
|
|
20
|
-
}
|
|
21
|
-
/** POST the (possibly edited) body + watermark. Throws the server message on non-201. */
|
|
22
|
-
async function postProgressComment(creds, sessionId, payload) {
|
|
23
|
-
const url = `${base(creds)}/api/sessions/${encodeURIComponent(sessionId)}/progress-comment`;
|
|
24
|
-
const res = await fetch(url, {
|
|
25
|
-
method: 'POST',
|
|
26
|
-
headers: {
|
|
27
|
-
Authorization: `Bearer ${creds.token}`,
|
|
28
|
-
'Content-Type': 'application/json',
|
|
29
|
-
},
|
|
30
|
-
body: JSON.stringify(payload),
|
|
31
|
-
});
|
|
32
|
-
if (res.status === 401)
|
|
33
|
-
throw new Error('API key invalid or revoked. Run `lumo auth login`.');
|
|
34
|
-
if (res.status !== 201) {
|
|
35
|
-
let serverMsg = null;
|
|
36
|
-
try {
|
|
37
|
-
const errBody = (await res.json());
|
|
38
|
-
if (typeof errBody.error === 'string')
|
|
39
|
-
serverMsg = errBody.error;
|
|
40
|
-
}
|
|
41
|
-
catch {
|
|
42
|
-
// body wasn't JSON
|
|
43
|
-
}
|
|
44
|
-
throw new Error(serverMsg ?? `progress comment failed (HTTP ${res.status})`);
|
|
45
|
-
}
|
|
46
|
-
return (await res.json());
|
|
47
|
-
}
|