@grindxp/cli 0.1.7 → 0.1.9
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/index.js +766 -134
- package/dist/web/client/assets/Copy.es-Bs4NgJu-.js +1 -0
- package/dist/web/client/assets/Sword.es-2Xm7T3t2.js +1 -0
- package/dist/web/client/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2 +0 -0
- package/dist/web/client/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2 +0 -0
- package/dist/web/client/assets/geist-latin-wght-normal-Dm3htQBi.woff2 +0 -0
- package/dist/web/client/assets/index-6XDcqRbL.js +42 -0
- package/dist/web/client/assets/index-BXM1N6tm.js +1 -0
- package/dist/web/client/assets/index-B_KMiE38.js +1 -0
- package/dist/web/client/assets/index-CGj2rOLm.js +1 -0
- package/dist/web/client/assets/index-CS5BuFbt.js +1 -0
- package/dist/web/client/assets/index-CYsASiu-.js +1 -0
- package/dist/web/client/assets/index-DAvwM0SX.js +1 -0
- package/dist/web/client/assets/index-DCBFp5DJ.js +1 -0
- package/dist/web/client/assets/index-DjKt1qNz.js +1 -0
- package/dist/web/client/assets/index-PIcFs1vr.js +1 -0
- package/dist/web/client/assets/instrument-serif-latin-400-italic-DKMiL14s.woff2 +0 -0
- package/dist/web/client/assets/instrument-serif-latin-400-italic-u__WvvIK.woff +0 -0
- package/dist/web/client/assets/instrument-serif-latin-400-normal-BVbkICAY.woff +0 -0
- package/dist/web/client/assets/instrument-serif-latin-400-normal-DnYpCC2O.woff2 +0 -0
- package/dist/web/client/assets/instrument-serif-latin-ext-400-italic-C9HzH3YL.woff2 +0 -0
- package/dist/web/client/assets/instrument-serif-latin-ext-400-italic-D7-lnxEk.woff +0 -0
- package/dist/web/client/assets/instrument-serif-latin-ext-400-normal-C2je3j2s.woff2 +0 -0
- package/dist/web/client/assets/instrument-serif-latin-ext-400-normal-CFCUzsTy.woff +0 -0
- package/dist/web/client/assets/jetbrains-mono-cyrillic-wght-normal-D73BlboJ.woff2 +0 -0
- package/dist/web/client/assets/jetbrains-mono-greek-wght-normal-Bw9x6K1M.woff2 +0 -0
- package/dist/web/client/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/dist/web/client/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/dist/web/client/assets/jetbrains-mono-vietnamese-wght-normal-Bt-aOZkq.woff2 +0 -0
- package/dist/web/client/assets/main-BI1EOhmt.js +18 -0
- package/dist/web/client/assets/styles-7TpWqjrh.css +1 -0
- package/dist/web/client/favicon.ico +0 -0
- package/dist/web/server/assets/_tanstack-start-manifest_v-B_rvI8DG.js +4 -0
- package/dist/web/server/assets/agent.functions-BL3upUNr.js +19541 -0
- package/dist/web/server/assets/data.functions-DZmdFOMQ.js +285 -0
- package/dist/web/server/assets/index-4SxmUYH6.js +14 -0
- package/dist/web/server/assets/index-B2ULpkv2.js +4587 -0
- package/dist/web/server/assets/index-BGBMycx-.js +2275 -0
- package/dist/web/server/assets/index-BL8u2X7w.js +14 -0
- package/dist/web/server/assets/index-BQUCDamI.js +5924 -0
- package/dist/web/server/assets/index-BRRsXrOi.js +14 -0
- package/dist/web/server/assets/index-BiD7uOOh.js +14 -0
- package/dist/web/server/assets/index-CB8UtTN8.js +66 -0
- package/dist/web/server/assets/index-D2yaimYL.js +14 -0
- package/dist/web/server/assets/index-D3RUqTdb.js +14 -0
- package/dist/web/server/assets/index-DTB2dYCz.js +1426 -0
- package/dist/web/server/assets/index-DfU25rnD.js +477 -0
- package/dist/web/server/assets/index-SHH7zSKt.js +66 -0
- package/dist/web/server/assets/router-CXyGzWDS.js +589 -0
- package/dist/web/server/assets/sessions-UCWtijHE.js +438 -0
- package/dist/web/server/assets/start-HYkvq4Ni.js +4 -0
- package/dist/web/server/assets/token-DGoahKjI.js +86 -0
- package/dist/web/server/assets/token-util-BopJPy-I.js +451 -0
- package/dist/web/server/assets/token-util-Bw35afYM.js +30 -0
- package/dist/web/server/assets/vault.server-CscY5Z8e.js +19357 -0
- package/dist/web/server/server.js +4889 -0
- package/package.json +53 -51
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { PlugIcon } from "@phosphor-icons/react";
|
|
3
|
+
function IntegrationsPage() {
|
|
4
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col items-center justify-center gap-4 p-8 text-center", children: [
|
|
5
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card", children: /* @__PURE__ */ jsx(PlugIcon, { size: 28, className: "text-muted-foreground", "aria-hidden": "true" }) }),
|
|
6
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
7
|
+
/* @__PURE__ */ jsx("h1", { className: "text-lg font-semibold text-foreground", children: "Integrations" }),
|
|
8
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: "Coming soon…" })
|
|
9
|
+
] })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
IntegrationsPage as component
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ChartLineIcon } from "@phosphor-icons/react";
|
|
3
|
+
function AnalyticsPage() {
|
|
4
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col items-center justify-center gap-4 p-8 text-center", children: [
|
|
5
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card", children: /* @__PURE__ */ jsx(ChartLineIcon, { size: 28, className: "text-muted-foreground", "aria-hidden": "true" }) }),
|
|
6
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
7
|
+
/* @__PURE__ */ jsx("h1", { className: "text-lg font-semibold text-foreground", children: "Analytics" }),
|
|
8
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: "Coming soon…" })
|
|
9
|
+
] })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
AnalyticsPage as component
|
|
14
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useCallback } from "react";
|
|
3
|
+
import { LightningIcon, CopyIcon, CheckIcon } from "@phosphor-icons/react";
|
|
4
|
+
import { c as cn } from "./router-CXyGzWDS.js";
|
|
5
|
+
import "@tanstack/react-router";
|
|
6
|
+
import "@tanstack/react-query";
|
|
7
|
+
import "clsx";
|
|
8
|
+
import "tailwind-merge";
|
|
9
|
+
import "../server.js";
|
|
10
|
+
import "node:async_hooks";
|
|
11
|
+
import "node:stream";
|
|
12
|
+
import "@tanstack/react-router/ssr/server";
|
|
13
|
+
import "./vault.server-CscY5Z8e.js";
|
|
14
|
+
import "node:fs";
|
|
15
|
+
import "node:os";
|
|
16
|
+
import "node:path";
|
|
17
|
+
import "path";
|
|
18
|
+
import "fs";
|
|
19
|
+
import "child_process";
|
|
20
|
+
import "node:buffer";
|
|
21
|
+
import "events";
|
|
22
|
+
import "https";
|
|
23
|
+
import "http";
|
|
24
|
+
import "net";
|
|
25
|
+
import "tls";
|
|
26
|
+
import "crypto";
|
|
27
|
+
import "stream";
|
|
28
|
+
import "url";
|
|
29
|
+
import "zlib";
|
|
30
|
+
import "buffer";
|
|
31
|
+
import "node:crypto";
|
|
32
|
+
function CopyCommandBlock({
|
|
33
|
+
command
|
|
34
|
+
}) {
|
|
35
|
+
const [copied, setCopied] = useState(false);
|
|
36
|
+
const handleCopy = useCallback(() => {
|
|
37
|
+
navigator.clipboard.writeText(command).then(() => {
|
|
38
|
+
setCopied(true);
|
|
39
|
+
setTimeout(() => setCopied(false), 2e3);
|
|
40
|
+
});
|
|
41
|
+
}, [command]);
|
|
42
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 rounded-lg border border-border bg-card pl-4 pr-3 py-3", children: [
|
|
43
|
+
/* @__PURE__ */ jsx("code", { className: "flex-1 font-mono text-sm text-grind-orange", children: command }),
|
|
44
|
+
/* @__PURE__ */ jsx("button", { type: "button", onClick: handleCopy, "aria-label": copied ? "Copied" : `Copy command: ${command}`, className: "flex shrink-0 items-center justify-center rounded-md p-1 text-muted-foreground transition-[transform,background-color,color] duration-150 active:scale-[0.97] hover:bg-secondary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: /* @__PURE__ */ jsxs("span", { className: "relative flex size-4 items-center justify-center", children: [
|
|
45
|
+
/* @__PURE__ */ jsx(CopyIcon, { size: 14, "aria-hidden": "true", className: cn("absolute transition-[opacity,filter,transform] duration-200", copied ? "opacity-0 blur-[4px] scale-75" : "opacity-100 blur-none scale-100") }),
|
|
46
|
+
/* @__PURE__ */ jsx(CheckIcon, { size: 14, "aria-hidden": "true", className: cn("absolute text-grind-xp transition-[opacity,filter,transform] duration-200", copied ? "opacity-100 blur-none scale-100" : "opacity-0 blur-[4px] scale-75") })
|
|
47
|
+
] }) })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
function DashboardError({
|
|
51
|
+
error
|
|
52
|
+
}) {
|
|
53
|
+
const msg = error instanceof Error ? error.message : "Something went wrong";
|
|
54
|
+
const isNotInit = msg.includes("not initialized");
|
|
55
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col items-center justify-center gap-4 p-8 text-center", children: [
|
|
56
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card", children: /* @__PURE__ */ jsx(LightningIcon, { size: 28, className: "text-muted-foreground", "aria-hidden": "true" }) }),
|
|
57
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
58
|
+
/* @__PURE__ */ jsx("h1", { className: "text-lg font-semibold text-foreground", children: isNotInit ? "Grind Not Initialized" : "Failed to Load Dashboard" }),
|
|
59
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: isNotInit ? "Run the command below in your terminal to get started." : msg })
|
|
60
|
+
] }),
|
|
61
|
+
isNotInit && /* @__PURE__ */ jsx(CopyCommandBlock, { command: "grindxp init" })
|
|
62
|
+
] });
|
|
63
|
+
}
|
|
64
|
+
export {
|
|
65
|
+
DashboardError as errorComponent
|
|
66
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { RobotIcon } from "@phosphor-icons/react";
|
|
3
|
+
function CompanionPage() {
|
|
4
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col items-center justify-center gap-4 p-8 text-center", children: [
|
|
5
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card", children: /* @__PURE__ */ jsx(RobotIcon, { size: 28, className: "text-muted-foreground", "aria-hidden": "true" }) }),
|
|
6
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
7
|
+
/* @__PURE__ */ jsx("h1", { className: "text-lg font-semibold text-foreground", children: "Companion" }),
|
|
8
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: "Coming soon…" })
|
|
9
|
+
] })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
CompanionPage as component
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { TreeStructureIcon } from "@phosphor-icons/react";
|
|
3
|
+
function SkillsPage() {
|
|
4
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col items-center justify-center gap-4 p-8 text-center", children: [
|
|
5
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-16 w-16 items-center justify-center rounded-full border border-border bg-card", children: /* @__PURE__ */ jsx(TreeStructureIcon, { size: 28, className: "text-muted-foreground", "aria-hidden": "true" }) }),
|
|
6
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
7
|
+
/* @__PURE__ */ jsx("h1", { className: "text-lg font-semibold text-foreground", children: "Skills" }),
|
|
8
|
+
/* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: "Coming soon…" })
|
|
9
|
+
] })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
SkillsPage as component
|
|
14
|
+
};
|