git-reverse-cli 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +27 -4
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -859,7 +859,11 @@ function Dashboard({ username, model, newModels, onAnalyze, onCommand }) {
859
859
  setShowPalette(false);
860
860
  setInputValue("");
861
861
  if (lower === "\\settings") return onCommand("settings");
862
- if (lower === "\\compact" || lower === "\\summarize") return onCommand("compact");
862
+ if (lower === "\\compact" || lower === "\\summarize") {
863
+ setMode("compact");
864
+ setInputValue("");
865
+ return;
866
+ }
863
867
  if (lower === "\\deepdive" || lower === "\\learn") {
864
868
  setMode("deep");
865
869
  setInputValue("");
@@ -887,6 +891,10 @@ function Dashboard({ username, model, newModels, onAnalyze, onCommand }) {
887
891
  /* @__PURE__ */ jsx8(Text8, { color: "yellow", children: " \u25C8 Deep-dive mode active" }),
888
892
  /* @__PURE__ */ jsx8(Text8, { color: "white", dimColor: true, children: " \u2014 detailed educational output" })
889
893
  ] }),
894
+ mode === "compact" && /* @__PURE__ */ jsxs8(Box8, { marginBottom: 1, children: [
895
+ /* @__PURE__ */ jsx8(Text8, { color: "green", children: " \u25C8 Compact mode active" }),
896
+ /* @__PURE__ */ jsx8(Text8, { color: "white", dimColor: true, children: " \u2014 concise session summary" })
897
+ ] }),
890
898
  /* @__PURE__ */ jsx8(Box8, { marginBottom: 1, children: /* @__PURE__ */ jsxs8(Text8, { color: "white", dimColor: true, children: [
891
899
  " ",
892
900
  "Paste a GitHub URL to reverse-engineer it."
@@ -914,11 +922,13 @@ function Dashboard({ username, model, newModels, onAnalyze, onCommand }) {
914
922
  /* @__PURE__ */ jsxs8(Box8, { marginTop: 1, flexDirection: "column", children: [
915
923
  /* @__PURE__ */ jsxs8(Text8, { color: "white", dimColor: true, children: [
916
924
  " ",
917
- "Enter to analyze \xB7 \\\\ for commands \xB7 \\deepdive for detailed mode"
925
+ "Enter to analyze \xB7 \\\\ for commands"
918
926
  ] }),
919
- mode === "deep" && /* @__PURE__ */ jsxs8(Text8, { color: "white", dimColor: true, children: [
927
+ (mode === "deep" || mode === "compact") && /* @__PURE__ */ jsxs8(Text8, { color: "white", dimColor: true, children: [
920
928
  " ",
921
- "\\\\ + Enter to exit deep-dive mode"
929
+ "\\\\ + Enter to exit ",
930
+ mode,
931
+ " mode"
922
932
  ] })
923
933
  ] })
924
934
  ] }),
@@ -1337,6 +1347,19 @@ Produce a clean, scannable summary.`
1337
1347
  switch (mode) {
1338
1348
  case "deep":
1339
1349
  return [system, _PromptBuilder.buildDeepDivePrompt(analysis, userQuery)];
1350
+ case "compact": {
1351
+ const base = _PromptBuilder.buildAnalysisPrompt(analysis, userQuery);
1352
+ return [
1353
+ system,
1354
+ {
1355
+ ...base,
1356
+ content: base.content + `
1357
+
1358
+ ## Compact Mode
1359
+ You are in COMPACT mode. Summarize this repository in the shortest, most concise way possible. Bullet points only. Skip lengthy architecture explanations and focus only on the absolute core structure, main tech stack, and primary purpose. If there is a query, answer it as briefly as possible.`
1360
+ }
1361
+ ];
1362
+ }
1340
1363
  default:
1341
1364
  return [system, _PromptBuilder.buildAnalysisPrompt(analysis, userQuery)];
1342
1365
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-reverse-cli",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Reverse-engineer any GitHub repository into a structured recreation prompt using LLMs",
5
5
  "keywords": [
6
6
  "github",
@@ -14,7 +14,7 @@
14
14
  "license": "MIT",
15
15
  "type": "module",
16
16
  "bin": {
17
- "git-reverse": "dist/cli.js"
17
+ "git-reverse": "./dist/cli.js"
18
18
  },
19
19
  "main": "./dist/cli.js",
20
20
  "files": [