@elyracode/grove 0.9.55 → 0.9.57
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/CHANGELOG.md +4 -0
- package/extensions/index.ts +21 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/extensions/index.ts
CHANGED
|
@@ -20,10 +20,7 @@ import { Type } from "typebox";
|
|
|
20
20
|
function getGroveHome(): string | undefined {
|
|
21
21
|
const envHome = process.env.GROVE_HOME;
|
|
22
22
|
if (envHome && existsSync(envHome)) return envHome;
|
|
23
|
-
const candidates = [
|
|
24
|
-
join(homedir(), "Library", "Application Support", "Grove"),
|
|
25
|
-
join(homedir(), ".config", "grove"),
|
|
26
|
-
];
|
|
23
|
+
const candidates = [join(homedir(), "Library", "Application Support", "Grove"), join(homedir(), ".config", "grove")];
|
|
27
24
|
return candidates.find((p) => existsSync(p));
|
|
28
25
|
}
|
|
29
26
|
|
|
@@ -264,8 +261,7 @@ function parseEnv(content: string): Record<string, string> {
|
|
|
264
261
|
return env;
|
|
265
262
|
}
|
|
266
263
|
|
|
267
|
-
const NOT_INSTALLED =
|
|
268
|
-
"Grove does not appear to be installed (no Grove directory found; set GROVE_HOME to override).";
|
|
264
|
+
const NOT_INSTALLED = "Grove does not appear to be installed (no Grove directory found; set GROVE_HOME to override).";
|
|
269
265
|
|
|
270
266
|
// ── Extension ───────────────────────────────────────────────────────────────
|
|
271
267
|
|
|
@@ -287,7 +283,12 @@ export default function (elyra: ExtensionAPI): void {
|
|
|
287
283
|
const config = readGroveConfig(groveHome);
|
|
288
284
|
if (!config) {
|
|
289
285
|
return {
|
|
290
|
-
content: [
|
|
286
|
+
content: [
|
|
287
|
+
{
|
|
288
|
+
type: "text",
|
|
289
|
+
text: `Grove directory found (${groveHome}) but config.toml is missing or unreadable.`,
|
|
290
|
+
},
|
|
291
|
+
],
|
|
291
292
|
details: {},
|
|
292
293
|
};
|
|
293
294
|
}
|
|
@@ -409,7 +410,10 @@ export default function (elyra: ExtensionAPI): void {
|
|
|
409
410
|
Type.Literal("laravel"),
|
|
410
411
|
Type.Literal("all"),
|
|
411
412
|
],
|
|
412
|
-
{
|
|
413
|
+
{
|
|
414
|
+
description:
|
|
415
|
+
"Log source to read (default: all). 'site' reads the current site's vite/queue dev logs.",
|
|
416
|
+
},
|
|
413
417
|
),
|
|
414
418
|
),
|
|
415
419
|
lines: Type.Optional(Type.Number({ description: "Number of lines to read per log (default: 50)" })),
|
|
@@ -503,7 +507,9 @@ export default function (elyra: ExtensionAPI): void {
|
|
|
503
507
|
const expectedPort = String(state.ports.mysql ?? 3306);
|
|
504
508
|
const port = env.DB_PORT ?? "3306";
|
|
505
509
|
if (port !== expectedPort) {
|
|
506
|
-
issues.push(
|
|
510
|
+
issues.push(
|
|
511
|
+
`DB_PORT is '${port}' -- Grove MySQL listens on ${expectedPort}. Set DB_PORT=${expectedPort}`,
|
|
512
|
+
);
|
|
507
513
|
} else {
|
|
508
514
|
ok.push(`DB_PORT matches Grove MySQL (${expectedPort})`);
|
|
509
515
|
}
|
|
@@ -561,14 +567,18 @@ export default function (elyra: ExtensionAPI): void {
|
|
|
561
567
|
elyra.registerCommand("grove-logs", {
|
|
562
568
|
description: "Show recent Grove logs (services, php-fpm, site dev logs, Laravel)",
|
|
563
569
|
handler: async (_args, _ctx) => {
|
|
564
|
-
elyra.sendUserMessage(
|
|
570
|
+
elyra.sendUserMessage(
|
|
571
|
+
"Show me the recent Grove logs for this project -- services, php-fpm, site dev logs, and the Laravel log.",
|
|
572
|
+
);
|
|
565
573
|
},
|
|
566
574
|
});
|
|
567
575
|
|
|
568
576
|
elyra.registerCommand("grove-sync", {
|
|
569
577
|
description: "Check if .env matches the Grove environment",
|
|
570
578
|
handler: async (_args, _ctx) => {
|
|
571
|
-
elyra.sendUserMessage(
|
|
579
|
+
elyra.sendUserMessage(
|
|
580
|
+
"Check if my .env file matches the Grove environment and report any mismatches with fixes.",
|
|
581
|
+
);
|
|
572
582
|
},
|
|
573
583
|
});
|
|
574
584
|
}
|
package/package.json
CHANGED