@litfamily/litgrok 1.0.35 → 1.0.36
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/.grok/hooks/lit-status-line.mjs +2 -1
- package/.grok/rules/00-litgrok.md +1 -1
- package/.grok/skills/frontend-ui-ux/SKILL.md +12 -4
- package/.grok/skills/lit-diagram-drawer/SKILL.md +12 -4
- package/.grok/skills/lit-docx/SKILL.md +12 -4
- package/.grok/skills/lit-pptx/SKILL.md +12 -4
- package/.grok/skills/lit-schematic/SKILL.md +12 -4
- package/.grok/skills/lit-scientific-visualization/SKILL.md +16 -8
- package/.grok/skills/lit-typographic-motion/SKILL.md +14 -6
- package/.grok/skills/readme-studio/SKILL.md +12 -4
- package/.grok/skills/visual-qa/SKILL.md +12 -4
- package/.grok-plugin/plugin.json +1 -1
- package/CHANGELOG.md +9 -0
- package/README.md +8 -8
- package/README_ko-KR.md +8 -8
- package/bin/extensions.mjs +686 -0
- package/bin/litgrok.mjs +23 -9
- package/docs/assets/readme/badge-version.svg +1 -1
- package/docs/reference.md +1 -1
- package/docs/reference_ko-KR.md +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
package/bin/litgrok.mjs
CHANGED
|
@@ -7,6 +7,7 @@ import { basename, dirname, isAbsolute, join, relative, resolve, sep } from 'nod
|
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
8
8
|
import { renderMark, terminalMode } from '../.grok/hooks/lit-mark.mjs';
|
|
9
9
|
import { applyStoredGround, backupIfSectionAbsent, decideGround, groundReport, ruleSourceForInstall, runGround } from './ground-rule.mjs';
|
|
10
|
+
import { competingSummary, extensionsDoctorLine, runExtensions } from './extensions.mjs';
|
|
10
11
|
import { installNotifications, installStatusLine, removeNotifications, removeStatusLine } from './status-line-config.mjs';
|
|
11
12
|
|
|
12
13
|
const PACKAGE_ROOT = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
@@ -428,7 +429,7 @@ const PRE_MANIFEST_LEGACY_PAYLOAD_HASHES = Object.freeze({
|
|
|
428
429
|
'skills/visual-qa/scripts/verify-evidence-manifest.mjs': '94be132b01eff2af91775a6e9c6841c6ecf008d44f641c61a4bf16726c11f779',
|
|
429
430
|
'skills/lit-korean/SKILL.md': 'dc2e4b0ea2ff6acca904f05767a62448387571e4183a615d5e53b230704ee828',
|
|
430
431
|
});
|
|
431
|
-
const USAGE = 'Usage: litgrok [install|uninstall] [--user|--project] [--status-line] [--notify] [--dry-run] [--no-color] [--yes] [--no-ground]\n litgrok ground on|off|status\n litgrok ground project [--dir <path>] [--remove] [--dry-run]\n litgrok auto-handoff on [percent]|off|status\n litgrok doctor [--no-color]\n';
|
|
432
|
+
const USAGE = 'Usage: litgrok [install|uninstall] [--user|--project] [--status-line] [--notify] [--dry-run] [--no-color] [--yes] [--no-ground]\n litgrok ground on|off|status\n litgrok ground project [--dir <path>] [--remove] [--dry-run]\n litgrok auto-handoff on [percent]|off|status\n litgrok doctor [--no-color]\n litgrok extensions list|check|install|update|remove|prune-backups (litgrok extensions --help)\n';
|
|
432
433
|
const BRAILLE_FRAMES = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
|
|
433
434
|
const SPINNER_INTERVAL_MS = 80;
|
|
434
435
|
const CLEAR_LINE = '\r\u001b[2K';
|
|
@@ -936,7 +937,7 @@ function oldEngineCaches(env, home, manifest, ownedBefore) {
|
|
|
936
937
|
});
|
|
937
938
|
}
|
|
938
939
|
|
|
939
|
-
function extensionsCard(colors, caches) {
|
|
940
|
+
function extensionsCard(colors, caches, competing = []) {
|
|
940
941
|
const titleColor = '38;2;255;99;55';
|
|
941
942
|
return [
|
|
942
943
|
` ${paint('╭─ LITFAMILY EXTENSIONS', titleColor, colors)}`,
|
|
@@ -945,9 +946,12 @@ function extensionsCard(colors, caches) {
|
|
|
945
946
|
` │ LitFamily extensions, kept on the extension shelf at ${SHELF_URL}:`,
|
|
946
947
|
' │ lit-pptx, lit-docx, lit-scientific-visualization, lit-diagram-drawer, lit-schematic,',
|
|
947
948
|
' │ frontend-ui-ux, visual-qa, readme-studio and lit-typographic-motion.',
|
|
948
|
-
' │ Install the ones you use
|
|
949
|
-
|
|
950
|
-
|
|
949
|
+
' │ Install the ones you use for the full LitFamily experience: litgrok extensions install <skill> --yes',
|
|
950
|
+
' │ It fetches the shelf, checks for other copies first and runs grok plugin install; litgrok extensions list, update, remove and check work the same way.',
|
|
951
|
+
` │ By hand, as each skill's note shows: git clone ${SHELF_URL}, then grok plugin install "<path to your wjgoarxiv-skills clone>/variants/litgrok/<skill>" --trust`,
|
|
952
|
+
...(competing.length > 0
|
|
953
|
+
? [` │ Found ${competing.length === 1 ? 'a same-name copy' : `${competing.length} same-name copies`} of these skills outside the plugin store (${competing[0]}${competing.length > 1 ? ', ...' : ''}); run litgrok extensions check for the fix.`]
|
|
954
|
+
: []),
|
|
951
955
|
...(caches.length > 0
|
|
952
956
|
? [` │ Earlier releases left engine caches at ${caches.join(' and ')}. Nothing reads them now (the extensions keep their own), so you can delete them.`]
|
|
953
957
|
: []),
|
|
@@ -1165,13 +1169,13 @@ async function latestRegistryVersion(fetchFn) {
|
|
|
1165
1169
|
|
|
1166
1170
|
// Read-only: prints the package version and, at most, one notify-only update line.
|
|
1167
1171
|
// It never installs; the user runs the printed command themselves.
|
|
1168
|
-
async function runDoctor(args, { env, stdout, stderr, fetchFn }) {
|
|
1172
|
+
async function runDoctor(args, { env, cwd, stdout, stderr, fetchFn }) {
|
|
1169
1173
|
if (args.some((argument) => argument !== '--no-color')) {
|
|
1170
1174
|
stderr.write(USAGE);
|
|
1171
1175
|
return 1;
|
|
1172
1176
|
}
|
|
1173
1177
|
const current = packageVersion();
|
|
1174
|
-
stdout.write(`litgrok ${current}\n${groundReport(env)}\n`);
|
|
1178
|
+
stdout.write(`litgrok ${current}\n${groundReport(env)}\n${extensionsDoctorLine({ env, cwd })}\n`);
|
|
1175
1179
|
if (UPDATE_OPT_OUTS.some((name) => Object.hasOwn(env, name))) return 0;
|
|
1176
1180
|
let latest;
|
|
1177
1181
|
try {
|
|
@@ -1190,9 +1194,19 @@ export async function run(args, context = {}) {
|
|
|
1190
1194
|
return runAutoHandoff(args.slice(1), { env: context.env ?? process.env, stdout: context.stdout ?? process.stdout, stderr: context.stderr ?? process.stderr, cwd: context.cwd ?? process.cwd() });
|
|
1191
1195
|
}
|
|
1192
1196
|
if (args[0] === 'ground') return runGround(args.slice(1), context);
|
|
1197
|
+
if (args[0] === 'extensions') {
|
|
1198
|
+
return runExtensions(args.slice(1), {
|
|
1199
|
+
env: context.env ?? process.env,
|
|
1200
|
+
cwd: context.cwd ?? process.cwd(),
|
|
1201
|
+
stdout: context.stdout ?? process.stdout,
|
|
1202
|
+
stderr: context.stderr ?? process.stderr,
|
|
1203
|
+
now: context.now,
|
|
1204
|
+
});
|
|
1205
|
+
}
|
|
1193
1206
|
if (args[0] === 'doctor') {
|
|
1194
1207
|
return runDoctor(args.slice(1), {
|
|
1195
1208
|
env: context.env ?? process.env,
|
|
1209
|
+
cwd: context.cwd ?? process.cwd(),
|
|
1196
1210
|
stdout: context.stdout ?? process.stdout,
|
|
1197
1211
|
stderr: context.stderr ?? process.stderr,
|
|
1198
1212
|
fetchFn: context.fetch ?? globalThis.fetch,
|
|
@@ -1420,7 +1434,7 @@ export async function run(args, context = {}) {
|
|
|
1420
1434
|
const receipt = receiptCard(options, displayRoot, colors, { status: 'Already current', written: 0, current: states.counts.current });
|
|
1421
1435
|
progress.close();
|
|
1422
1436
|
stdout.write(receipt);
|
|
1423
|
-
stdout.write(extensionsCard(colors, caches));
|
|
1437
|
+
stdout.write(extensionsCard(colors, caches, competingSummary({ env, cwd })));
|
|
1424
1438
|
return 0;
|
|
1425
1439
|
}
|
|
1426
1440
|
|
|
@@ -1457,7 +1471,7 @@ export async function run(args, context = {}) {
|
|
|
1457
1471
|
const receipt = receiptCard(options, displayRoot, colors, { status: 'Ready', written: installed, current: states.counts.current });
|
|
1458
1472
|
progress.close();
|
|
1459
1473
|
stdout.write(receipt);
|
|
1460
|
-
stdout.write(extensionsCard(colors, caches));
|
|
1474
|
+
stdout.write(extensionsCard(colors, caches, competingSummary({ env, cwd })));
|
|
1461
1475
|
return 0;
|
|
1462
1476
|
} catch (error) {
|
|
1463
1477
|
progress.close();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="local: 1.0.
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="local: 1.0.36"><title>local: 1.0.36</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#080d14"/><rect x="49" width="97" height="20" fill="#ff6337"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="290" transform="scale(.1)">local</text><text x="965" y="140" textLength="870" transform="scale(.1)" fill="#080D14">1.0.36</text></g></svg>
|
package/docs/reference.md
CHANGED
|
@@ -80,7 +80,7 @@ npm exec --yes --package @litfamily/litgrok@latest -- litgrok install
|
|
|
80
80
|
Pin a version when you need a reproducible install:
|
|
81
81
|
|
|
82
82
|
```bash
|
|
83
|
-
npm exec --yes --package @litfamily/litgrok@1.0.
|
|
83
|
+
npm exec --yes --package @litfamily/litgrok@1.0.36 -- litgrok install
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
Preview without writing files:
|
package/docs/reference_ko-KR.md
CHANGED
|
@@ -81,7 +81,7 @@ npm exec --yes --package @litfamily/litgrok@latest -- litgrok install
|
|
|
81
81
|
재현 가능한 설치는 버전을 고정합니다.
|
|
82
82
|
|
|
83
83
|
```bash
|
|
84
|
-
npm exec --yes --package @litfamily/litgrok@1.0.
|
|
84
|
+
npm exec --yes --package @litfamily/litgrok@1.0.36 -- litgrok install
|
|
85
85
|
```
|
|
86
86
|
|
|
87
87
|
파일을 쓰지 않고 미리보기:
|
package/package.json
CHANGED