@stage5/lumine 0.2.30 → 0.2.31
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 +1 -1
- package/lib/admin.js +17 -5
- package/lib/commands.js +2 -2
- package/package.json +1 -1
- package/sdk/LUMINE_ADMIN.md +15 -6
package/README.md
CHANGED
|
@@ -181,7 +181,7 @@ lumine admin subject feature 123 --json
|
|
|
181
181
|
lumine admin subject unfeature 123 --json
|
|
182
182
|
lumine admin featured reorder --subject-ids 30,20,10 --json
|
|
183
183
|
lumine admin brief --days 3 --json
|
|
184
|
-
lumine admin notable add Minecrarft_guy --json
|
|
184
|
+
lumine admin notable add Minecrarft_guy --note "Created 8 thoughtful subjects and helped peers in 23 comments this window." --json
|
|
185
185
|
lumine admin post recommend comment:456 --anyone-can-reward --reward-twinkles 3 --json
|
|
186
186
|
lumine admin post reward comment:456 --twinkles 3 --json
|
|
187
187
|
lumine admin daily-run complete --json
|
package/lib/admin.js
CHANGED
|
@@ -6,6 +6,7 @@ import { requestJson } from "./http.js";
|
|
|
6
6
|
const MAX_EDITORIAL_FILE_BYTES = 256 * 1024;
|
|
7
7
|
const MAX_COMPOSED_COMMENT_FILE_BYTES = 64 * 1024;
|
|
8
8
|
const MAX_COMPOSED_COMMENT_LENGTH = 10_000;
|
|
9
|
+
const MAX_NOTABLE_NOTE_LENGTH = 2_000;
|
|
9
10
|
|
|
10
11
|
// Operator-composed persona comment text (plain UTF-8, not JSON). The agent
|
|
11
12
|
// writes the comment in the bot's persona itself; the server never invokes
|
|
@@ -178,10 +179,7 @@ export async function adminCommand(options) {
|
|
|
178
179
|
return result;
|
|
179
180
|
}
|
|
180
181
|
|
|
181
|
-
export function assertComposedCommentDraftResult({
|
|
182
|
-
result,
|
|
183
|
-
expectedContent,
|
|
184
|
-
}) {
|
|
182
|
+
export function assertComposedCommentDraftResult({ result, expectedContent }) {
|
|
185
183
|
const draft = result?.data?.draft;
|
|
186
184
|
if (
|
|
187
185
|
draft?.decision === "draft" &&
|
|
@@ -589,12 +587,26 @@ export function parseAdminOperation(options) {
|
|
|
589
587
|
const rawTarget = String(target || "").trim();
|
|
590
588
|
if (!rawTarget) {
|
|
591
589
|
throw cliValidationError(
|
|
592
|
-
"Usage: lumine admin notable add <userId|username>.",
|
|
590
|
+
"Usage: lumine admin notable add <userId|username> --note <text>.",
|
|
593
591
|
);
|
|
594
592
|
}
|
|
595
593
|
const body = /^\d+$/.test(rawTarget)
|
|
596
594
|
? { userId: parseRequiredInteger(rawTarget, "user ID", 1) }
|
|
597
595
|
: { username: rawTarget };
|
|
596
|
+
// --note records what made them notable (the management page's reason
|
|
597
|
+
// column). On an already-listed user it updates the stored reason.
|
|
598
|
+
const note = String(options.note || "").trim();
|
|
599
|
+
if (!note) {
|
|
600
|
+
throw cliValidationError(
|
|
601
|
+
"Pass what made this user notable with --note <text>.",
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
if (note.length > MAX_NOTABLE_NOTE_LENGTH) {
|
|
605
|
+
throw cliValidationError(
|
|
606
|
+
`A notable-user note must be at most ${MAX_NOTABLE_NOTE_LENGTH} characters.`,
|
|
607
|
+
);
|
|
608
|
+
}
|
|
609
|
+
body.note = note;
|
|
598
610
|
return writeOperation(
|
|
599
611
|
"notable.add",
|
|
600
612
|
"POST",
|
package/lib/commands.js
CHANGED
|
@@ -2528,7 +2528,7 @@ export function printHelp() {
|
|
|
2528
2528
|
lumine admin comment post --draft-id <id> [--json]
|
|
2529
2529
|
lumine admin comment edit <comment-id> --file <comment.md> [--json]
|
|
2530
2530
|
lumine admin brief [--days <1..30>] [--json]
|
|
2531
|
-
lumine admin notable add <user-id|username> [--json]
|
|
2531
|
+
lumine admin notable add <user-id|username> --note <text> [--json]
|
|
2532
2532
|
lumine admin audit [list] [--run current|last|<run-id>] [--target <target>] [--actions <a,b>] [--full] [--cursor <cursor>] [--json]
|
|
2533
2533
|
|
|
2534
2534
|
Examples:
|
|
@@ -2591,7 +2591,7 @@ Options:
|
|
|
2591
2591
|
--description <text> Build description for new/describe
|
|
2592
2592
|
--no-description Skip New description or clear with describe
|
|
2593
2593
|
--summary <text> Save summary
|
|
2594
|
-
--note <text>
|
|
2594
|
+
--note <text> Branch-suggestion message or notable-user rationale
|
|
2595
2595
|
--cursor <id> Continue an owner suggestion inbox listing
|
|
2596
2596
|
--after <date> Admin subjects: inclusive Unix/ISO creation boundary
|
|
2597
2597
|
--effort unassigned Admin subjects: show only unassigned effort
|
package/package.json
CHANGED
package/sdk/LUMINE_ADMIN.md
CHANGED
|
@@ -926,7 +926,7 @@ the same priority, so treat a tied score (or recency) as no signal at all and
|
|
|
926
926
|
make the call by reading:
|
|
927
927
|
|
|
928
928
|
- **Choose the lead by argument, not by score or recency.** The best lead is
|
|
929
|
-
the front event where something is actually
|
|
929
|
+
the front event where something is actually _at stake_: a claim with
|
|
930
930
|
reasoning, a question with a position behind it — ideally while another
|
|
931
931
|
member is already responding. A claim plus a reply is a conversation in
|
|
932
932
|
motion; a drawing, a greeting, or a link is a share, and shares belong
|
|
@@ -1052,8 +1052,8 @@ type NewsSubmit = NewsStatus; // "success"; newspaper includes revisionNumber
|
|
|
1052
1052
|
```bash
|
|
1053
1053
|
lumine admin brief --json
|
|
1054
1054
|
lumine admin brief --days 3 --json
|
|
1055
|
-
lumine admin notable add 12647 --json
|
|
1056
|
-
lumine admin notable add Minecrarft_guy --json
|
|
1055
|
+
lumine admin notable add 12647 --note "Top authored-activity kid of the window: 11 subjects, 61 comments." --json
|
|
1056
|
+
lumine admin notable add Minecrarft_guy --note "Helped three new builders debug their projects and gave detailed feedback on five posts." --json
|
|
1057
1057
|
```
|
|
1058
1058
|
|
|
1059
1059
|
Read-only management insights for the delegated workflow, windowed since the
|
|
@@ -1095,10 +1095,19 @@ farm-signal sections added the same day):
|
|
|
1095
1095
|
`isNewUser` marking window-new signups. Use it to find the overlooked and
|
|
1096
1096
|
rising users the editorial priorities exist for, and propose additions to
|
|
1097
1097
|
Mikey's Notable Users list in the report. When Mikey approves additions,
|
|
1098
|
-
execute them with
|
|
1098
|
+
execute them with
|
|
1099
|
+
`lumine admin notable add <userId|username> --note "<specific rationale>"`
|
|
1100
|
+
(idempotent —
|
|
1099
1101
|
an existing member returns `already_done`; requires the `notable:write`
|
|
1100
1102
|
scope, audited as `notable.add`, and writes through the management page's
|
|
1101
1103
|
own canonical service). Without his approval the run only proposes.
|
|
1104
|
+
**Always pass `--note`** with a concrete one-or-two-sentence record of what
|
|
1105
|
+
made them notable — real numbers and specifics from the brief window, not
|
|
1106
|
+
"active user". It lands in the management page's reason column, which is
|
|
1107
|
+
where Mikey later reads why a name is on his list. On an already-listed
|
|
1108
|
+
user, `--note` updates the stored reason (status `success` with
|
|
1109
|
+
`data.reasonUpdated: true`; an identical note stays `already_done` without
|
|
1110
|
+
rewriting its timestamp).
|
|
1102
1111
|
- `teachers` — the mentor/sage achievement holders (the accounts the website
|
|
1103
1112
|
titles teacher/headteacher): real classroom teachers, NOT the
|
|
1104
1113
|
`userType='supermod'` Korean operations staff, whose work-only usage is
|
|
@@ -1177,7 +1186,7 @@ type WindowDelta = { current: number; previous: number; delta: number };
|
|
|
1177
1186
|
type TeacherInsight = {
|
|
1178
1187
|
userId: number;
|
|
1179
1188
|
username: string | null;
|
|
1180
|
-
rank:
|
|
1189
|
+
rank: "mentor" | "sage";
|
|
1181
1190
|
lastActive: number | null;
|
|
1182
1191
|
daysSinceActive: number | null;
|
|
1183
1192
|
subjectsPosted: number;
|
|
@@ -1199,7 +1208,7 @@ type InsightsBrief = Success<{
|
|
|
1199
1208
|
window: {
|
|
1200
1209
|
sinceTs: number;
|
|
1201
1210
|
days: number;
|
|
1202
|
-
source:
|
|
1211
|
+
source: "requested" | "since-last-completed-run" | "default";
|
|
1203
1212
|
generatedAt: number;
|
|
1204
1213
|
};
|
|
1205
1214
|
economy: {
|