@spader/spall-tui 1.0.0

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 (109) hide show
  1. package/dist/App.js +3636 -0
  2. package/dist/App.js.map +39 -0
  3. package/dist/bash-nbhfht5r.scm +56 -0
  4. package/dist/c-4zy7d3fw.scm +81 -0
  5. package/dist/c_sharp-tb7n62t2.scm +212 -0
  6. package/dist/cpp-stxr9ffp.scm +77 -0
  7. package/dist/css-b1p1h6ys.scm +76 -0
  8. package/dist/dart-t89b32ej.scm +13 -0
  9. package/dist/elisp-ax9wx1b9.scm +72 -0
  10. package/dist/elixir-77300bss.scm +223 -0
  11. package/dist/elm-k2q5knqb.scm +76 -0
  12. package/dist/embedded_template-k7ypjkba.scm +12 -0
  13. package/dist/go-9wx8m64k.scm +123 -0
  14. package/dist/html-g95aq3vw.scm +13 -0
  15. package/dist/index.js +3635 -0
  16. package/dist/index.js.map +39 -0
  17. package/dist/java-wasz6t7a.scm +149 -0
  18. package/dist/javascript-cswtymww.scm +204 -0
  19. package/dist/json-pf4aw8w1.scm +16 -0
  20. package/dist/kotlin-m6cj2y7m.scm +380 -0
  21. package/dist/lib/git.js +117 -0
  22. package/dist/lib/git.js.map +10 -0
  23. package/dist/lua-7h6jk3pd.scm +204 -0
  24. package/dist/objc-6yjdwy1z.scm +216 -0
  25. package/dist/ocaml-jfj520qk.scm +148 -0
  26. package/dist/parsers/index.d.ts +8 -0
  27. package/dist/parsers/index.d.ts.map +1 -0
  28. package/dist/php-bds7v5h1.scm +203 -0
  29. package/dist/python-k2cbtg72.scm +137 -0
  30. package/dist/ql-qs2vxbeq.scm +154 -0
  31. package/dist/ruby-3ybh5bp2.scm +154 -0
  32. package/dist/rust-edtnatpk.scm +161 -0
  33. package/dist/scala-91f2sb1z.scm +260 -0
  34. package/dist/src/App.d.ts +6 -0
  35. package/dist/src/App.d.ts.map +1 -0
  36. package/dist/src/Review.d.ts +6 -0
  37. package/dist/src/Review.d.ts.map +1 -0
  38. package/dist/src/components/CommandPalette.d.ts +2 -0
  39. package/dist/src/components/CommandPalette.d.ts.map +1 -0
  40. package/dist/src/components/DiffPanel.d.ts +16 -0
  41. package/dist/src/components/DiffPanel.d.ts.map +1 -0
  42. package/dist/src/components/EditorPanel.d.ts +9 -0
  43. package/dist/src/components/EditorPanel.d.ts.map +1 -0
  44. package/dist/src/components/ErrorFallback.d.ts +6 -0
  45. package/dist/src/components/ErrorFallback.d.ts.map +1 -0
  46. package/dist/src/components/HalfLineShadow.d.ts +18 -0
  47. package/dist/src/components/HalfLineShadow.d.ts.map +1 -0
  48. package/dist/src/components/index.d.ts +7 -0
  49. package/dist/src/components/index.d.ts.map +1 -0
  50. package/dist/src/components/sidebar/CommentList.d.ts +10 -0
  51. package/dist/src/components/sidebar/CommentList.d.ts.map +1 -0
  52. package/dist/src/components/sidebar/FileList.d.ts +13 -0
  53. package/dist/src/components/sidebar/FileList.d.ts.map +1 -0
  54. package/dist/src/components/sidebar/PatchList.d.ts +14 -0
  55. package/dist/src/components/sidebar/PatchList.d.ts.map +1 -0
  56. package/dist/src/components/sidebar/ProjectStatus.d.ts +7 -0
  57. package/dist/src/components/sidebar/ProjectStatus.d.ts.map +1 -0
  58. package/dist/src/components/sidebar/Section.d.ts +12 -0
  59. package/dist/src/components/sidebar/Section.d.ts.map +1 -0
  60. package/dist/src/components/sidebar/ServerStatus.d.ts +2 -0
  61. package/dist/src/components/sidebar/ServerStatus.d.ts.map +1 -0
  62. package/dist/src/components/sidebar/index.d.ts +7 -0
  63. package/dist/src/components/sidebar/index.d.ts.map +1 -0
  64. package/dist/src/context/command.d.ts +10 -0
  65. package/dist/src/context/command.d.ts.map +1 -0
  66. package/dist/src/context/dialog.d.ts +11 -0
  67. package/dist/src/context/dialog.d.ts.map +1 -0
  68. package/dist/src/context/exit.d.ts +10 -0
  69. package/dist/src/context/exit.d.ts.map +1 -0
  70. package/dist/src/context/review.d.ts +47 -0
  71. package/dist/src/context/review.d.ts.map +1 -0
  72. package/dist/src/context/server.d.ts +10 -0
  73. package/dist/src/context/server.d.ts.map +1 -0
  74. package/dist/src/context/sidebar.d.ts +13 -0
  75. package/dist/src/context/sidebar.d.ts.map +1 -0
  76. package/dist/src/context/theme.d.ts +47 -0
  77. package/dist/src/context/theme.d.ts.map +1 -0
  78. package/dist/src/index.d.ts +3 -0
  79. package/dist/src/index.d.ts.map +1 -0
  80. package/dist/src/lib/diff.d.ts +24 -0
  81. package/dist/src/lib/diff.d.ts.map +1 -0
  82. package/dist/src/lib/git.d.ts +15 -0
  83. package/dist/src/lib/git.d.ts.map +1 -0
  84. package/dist/src/lib/keybind.d.ts +23 -0
  85. package/dist/src/lib/keybind.d.ts.map +1 -0
  86. package/dist/src/lib/tree.d.ts +39 -0
  87. package/dist/src/lib/tree.d.ts.map +1 -0
  88. package/dist/src/store/comment.d.ts +20 -0
  89. package/dist/src/store/comment.d.ts.map +1 -0
  90. package/dist/src/store/db.d.ts +6 -0
  91. package/dist/src/store/db.d.ts.map +1 -0
  92. package/dist/src/store/index.d.ts +7 -0
  93. package/dist/src/store/index.d.ts.map +1 -0
  94. package/dist/src/store/patch.d.ts +22 -0
  95. package/dist/src/store/patch.d.ts.map +1 -0
  96. package/dist/src/store/repo.d.ts +8 -0
  97. package/dist/src/store/repo.d.ts.map +1 -0
  98. package/dist/src/store/review.d.ts +18 -0
  99. package/dist/src/store/review.d.ts.map +1 -0
  100. package/dist/store/index.js +303 -0
  101. package/dist/store/index.js.map +14 -0
  102. package/dist/swift-a4tt704b.scm +336 -0
  103. package/dist/toml-hcqfz0bg.scm +53 -0
  104. package/dist/tsx-c3k3mmc9.scm +239 -0
  105. package/dist/typescript-hz4pg6ze.scm +239 -0
  106. package/dist/vue-xbeea1aj.scm +9 -0
  107. package/dist/yaml-mbfb25g0.scm +79 -0
  108. package/dist/zig-ds3q8m26.scm +283 -0
  109. package/package.json +74 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":";AA+BA,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAsB,GAAG,CAAC,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAgCjE"}
@@ -0,0 +1,6 @@
1
+ export interface ReviewProps {
2
+ /** Path to the git repository. Defaults to process.argv[2] or "." */
3
+ repoPath?: string;
4
+ }
5
+ export declare function Review(props?: ReviewProps): any;
6
+ //# sourceMappingURL=Review.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Review.d.ts","sourceRoot":"","sources":["../../src/Review.tsx"],"names":[],"mappings":"AAwCA,MAAM,WAAW,WAAW;IAC1B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,MAAM,CAAC,KAAK,GAAE,WAAgB,OAiB7C"}
@@ -0,0 +1,2 @@
1
+ export declare function CommandPalette(): any;
2
+ //# sourceMappingURL=CommandPalette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette.tsx"],"names":[],"mappings":"AAWA,wBAAgB,cAAc,QAsK7B"}
@@ -0,0 +1,16 @@
1
+ import type { Accessor } from "solid-js";
2
+ import { Git } from "../lib/git";
3
+ export interface DiffPanelProps {
4
+ entry: Accessor<Git.Entry | undefined>;
5
+ hunkCount: Accessor<number>;
6
+ selectedHunkIndex: Accessor<number>;
7
+ selectionMode: Accessor<"hunk" | "line">;
8
+ selectedRange: Accessor<{
9
+ startRow: number;
10
+ endRow: number;
11
+ } | null>;
12
+ cursorRow: Accessor<number>;
13
+ focused: Accessor<boolean>;
14
+ }
15
+ export declare function DiffPanel(props: DiffPanelProps): any;
16
+ //# sourceMappingURL=DiffPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiffPanel.d.ts","sourceRoot":"","sources":["../../../src/components/DiffPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAmEjC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,GAAG,SAAS,CAAC,CAAC;IACvC,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5B,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACpC,aAAa,EAAE,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACzC,aAAa,EAAE,QAAQ,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC,CAAC;IACrE,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,OA2O9C"}
@@ -0,0 +1,9 @@
1
+ export interface EditorPanelProps {
2
+ file: string;
3
+ startRow: number;
4
+ endRow: number;
5
+ commentId?: number;
6
+ onClose: () => void;
7
+ }
8
+ export declare function EditorPanel(props: EditorPanelProps): any;
9
+ //# sourceMappingURL=EditorPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditorPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EditorPanel.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,OAsJlD"}
@@ -0,0 +1,6 @@
1
+ export interface ErrorFallbackProps {
2
+ error: Error;
3
+ reset: () => void;
4
+ }
5
+ export declare function ErrorFallback(props: ErrorFallbackProps): any;
6
+ //# sourceMappingURL=ErrorFallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorFallback.d.ts","sourceRoot":"","sources":["../../../src/components/ErrorFallback.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,KAAK,CAAA;IACZ,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,OAmBtD"}
@@ -0,0 +1,18 @@
1
+ export declare const EmptyBorder: {
2
+ topLeft: string;
3
+ bottomLeft: string;
4
+ vertical: string;
5
+ topRight: string;
6
+ bottomRight: string;
7
+ horizontal: string;
8
+ bottomT: string;
9
+ topT: string;
10
+ cross: string;
11
+ leftT: string;
12
+ rightT: string;
13
+ };
14
+ export interface HalfLineShadowProps {
15
+ color?: string;
16
+ }
17
+ export declare function HalfLineShadow(props: HalfLineShadowProps): any;
18
+ //# sourceMappingURL=HalfLineShadow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HalfLineShadow.d.ts","sourceRoot":"","sources":["../../../src/components/HalfLineShadow.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW;;;;;;;;;;;;CAYvB,CAAA;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,OAgBxD"}
@@ -0,0 +1,7 @@
1
+ export { DiffPanel, type DiffPanelProps } from "./DiffPanel";
2
+ export { EditorPanel, type EditorPanelProps } from "./EditorPanel";
3
+ export { ErrorFallback, type ErrorFallbackProps } from "./ErrorFallback";
4
+ export { CommandPalette } from "./CommandPalette";
5
+ export { HalfLineShadow } from "./HalfLineShadow";
6
+ export { FileList, type FileListProps, CommentList, type CommentListProps, PatchList, type PatchListProps, ServerStatus, ProjectStatus, type ProjectStatusProps, Section, Title, } from "./sidebar";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,WAAW,EACX,KAAK,gBAAgB,EACrB,SAAS,EACT,KAAK,cAAc,EACnB,YAAY,EACZ,aAAa,EACb,KAAK,kBAAkB,EACvB,OAAO,EACP,KAAK,GACN,MAAM,WAAW,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Accessor } from "solid-js";
2
+ import type { CommentWithNote } from "../../context/review";
3
+ export interface CommentListProps {
4
+ comments: Accessor<CommentWithNote[]>;
5
+ loading: Accessor<boolean>;
6
+ selectedIndex: Accessor<number>;
7
+ focused: Accessor<boolean>;
8
+ }
9
+ export declare function CommentList(props: CommentListProps): any;
10
+ //# sourceMappingURL=CommentList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommentList.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/CommentList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5D,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,QAAQ,CAAC,eAAe,EAAE,CAAC,CAAC;IACtC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC3B,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC5B;AAsBD,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,OAuElD"}
@@ -0,0 +1,13 @@
1
+ import type { Accessor } from "solid-js";
2
+ import type { DisplayItem } from "../../lib/tree";
3
+ import type { Git } from "../../lib/git";
4
+ export interface FileListProps {
5
+ displayItems: Accessor<DisplayItem[]>;
6
+ selectedFileIndex: Accessor<number>;
7
+ fileIndices: Accessor<number[]>;
8
+ entries: Accessor<Git.Entry[]>;
9
+ loading: Accessor<boolean>;
10
+ focused: Accessor<boolean>;
11
+ }
12
+ export declare function FileList(props: FileListProps): any;
13
+ //# sourceMappingURL=FileList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileList.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/FileList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;IACtC,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACpC,WAAW,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;IAChC,OAAO,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC;IAC/B,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC5B;AAeD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,OAiH5C"}
@@ -0,0 +1,14 @@
1
+ import type { Accessor } from "solid-js";
2
+ import type { Patch } from "../../store";
3
+ import type { Git } from "../../lib/git";
4
+ export interface PatchListProps {
5
+ patches: Accessor<Patch.Info[]>;
6
+ activePatchId: Accessor<number | null>;
7
+ workingTreePatchId: Accessor<number | null>;
8
+ workspaceEntries: Accessor<Git.Entry[]>;
9
+ loading: Accessor<boolean>;
10
+ selectedIndex: Accessor<number>;
11
+ focused: Accessor<boolean>;
12
+ }
13
+ export declare function PatchList(props: PatchListProps): any;
14
+ //# sourceMappingURL=PatchList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PatchList.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/PatchList.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAGzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;IAChC,aAAa,EAAE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACvC,kBAAkB,EAAE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC5C,gBAAgB,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC;IACxC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC3B,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC5B;AAsCD,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,OAoK9C"}
@@ -0,0 +1,7 @@
1
+ import type { Accessor } from "solid-js";
2
+ export interface ProjectStatusProps {
3
+ repoRoot: Accessor<string | null>;
4
+ commentCount: Accessor<number>;
5
+ }
6
+ export declare function ProjectStatus(props: ProjectStatusProps): any;
7
+ //# sourceMappingURL=ProjectStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProjectStatus.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/ProjectStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAMzC,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,YAAY,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,OAwBtD"}
@@ -0,0 +1,12 @@
1
+ import type { JSXElement } from "solid-js";
2
+ import { type SidebarSection } from "../../context/sidebar";
3
+ /** Selectable sidebar section title (for Files, Comments) */
4
+ export declare function Title(props: {
5
+ section: SidebarSection;
6
+ }): any;
7
+ /** Container for static sidebar sections */
8
+ export declare function Section(props: {
9
+ title: string;
10
+ children: JSXElement;
11
+ }): any;
12
+ //# sourceMappingURL=Section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Section.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/Section.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAcxE,6DAA6D;AAC7D,wBAAgB,KAAK,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,cAAc,CAAA;CAAE,OAyBvD;AAED,4CAA4C;AAC5C,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,UAAU,CAAA;CAAE,OAarE"}
@@ -0,0 +1,2 @@
1
+ export declare function ServerStatus(): any;
2
+ //# sourceMappingURL=ServerStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerStatus.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/ServerStatus.tsx"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,QAqB3B"}
@@ -0,0 +1,7 @@
1
+ export { FileList, type FileListProps } from "./FileList";
2
+ export { CommentList, type CommentListProps } from "./CommentList";
3
+ export { PatchList, type PatchListProps } from "./PatchList";
4
+ export { ServerStatus } from "./ServerStatus";
5
+ export { ProjectStatus, type ProjectStatusProps } from "./ProjectStatus";
6
+ export { Section, Title } from "./Section";
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/sidebar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type ParentProps, type Accessor } from "solid-js";
2
+ import type { Command } from "../lib/keybind";
3
+ interface CommandContextValue {
4
+ register: (commands: Accessor<Command[]>) => void;
5
+ entries: Accessor<Command[]>;
6
+ }
7
+ export declare function CommandProvider(props: ParentProps): any;
8
+ export declare function useCommand(): CommandContextValue;
9
+ export {};
10
+ //# sourceMappingURL=command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/context/command.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAA;AACnG,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,UAAU,mBAAmB;IAC3B,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,IAAI,CAAA;IACjD,OAAO,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAA;CAC7B;AAID,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,OAejD;AAED,wBAAgB,UAAU,IAAI,mBAAmB,CAIhD"}
@@ -0,0 +1,11 @@
1
+ import { type JSX, type ParentProps } from "solid-js";
2
+ interface DialogContextValue {
3
+ show: (element: () => JSX.Element) => void;
4
+ clear: () => void;
5
+ isOpen: () => boolean;
6
+ content: () => JSX.Element | null;
7
+ }
8
+ export declare function DialogProvider(props: ParentProps): any;
9
+ export declare function useDialog(): DialogContextValue;
10
+ export {};
11
+ //# sourceMappingURL=dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/context/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2C,KAAK,GAAG,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAA;AAE9F,UAAU,kBAAkB;IAC1B,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,OAAO,KAAK,IAAI,CAAA;IAC1C,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,MAAM,EAAE,MAAM,OAAO,CAAA;IACrB,OAAO,EAAE,MAAM,GAAG,CAAC,OAAO,GAAG,IAAI,CAAA;CAClC;AAID,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,OAkBhD;AAED,wBAAgB,SAAS,IAAI,kBAAkB,CAI9C"}
@@ -0,0 +1,10 @@
1
+ import { type ParentProps } from "solid-js";
2
+ type CleanupFn = () => void | Promise<void>;
3
+ interface ExitContextValue {
4
+ exit: (reason?: unknown) => Promise<void>;
5
+ registerCleanup: (fn: CleanupFn) => void;
6
+ }
7
+ export declare function ExitProvider(props: ParentProps): any;
8
+ export declare function useExit(): ExitContextValue;
9
+ export {};
10
+ //# sourceMappingURL=exit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exit.d.ts","sourceRoot":"","sources":["../../../src/context/exit.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvE,KAAK,SAAS,GAAG,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAE5C,UAAU,gBAAgB;IACxB,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1C,eAAe,EAAE,CAAC,EAAE,EAAE,SAAS,KAAK,IAAI,CAAC;CAC1C;AAID,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,OAgC9C;AAED,wBAAgB,OAAO,IAAI,gBAAgB,CAI1C"}
@@ -0,0 +1,47 @@
1
+ import { type ParentProps, type Accessor } from "solid-js";
2
+ import { Git } from "../lib/git";
3
+ import { Patch } from "../store";
4
+ export interface CommentWithNote {
5
+ id: number;
6
+ reviewId: number;
7
+ noteId: number;
8
+ file: string;
9
+ patchId: number;
10
+ startRow: number;
11
+ endRow: number;
12
+ createdAt: number;
13
+ notePath: string | null;
14
+ noteContent: string | null;
15
+ }
16
+ export declare function pickCommentForRange(list: CommentWithNote[], preferredPatchId: number | null, file: string, startRow: number, endRow: number): CommentWithNote | null;
17
+ export interface ReviewContextValue {
18
+ corpusId: Accessor<number | null>;
19
+ corpusName: Accessor<string>;
20
+ workingTreePatchId: Accessor<number | null>;
21
+ repoRoot: Accessor<string | null>;
22
+ repoPath: Accessor<string>;
23
+ reviewId: Accessor<number | null>;
24
+ commitSha: Accessor<string | null>;
25
+ activePatchId: Accessor<number | null>;
26
+ workspaceEntries: Accessor<Git.Entry[]>;
27
+ entries: Accessor<Git.Entry[]>;
28
+ loading: Accessor<boolean>;
29
+ patches: Accessor<Patch.Info[]>;
30
+ patchesLoading: Accessor<boolean>;
31
+ comments: Accessor<CommentWithNote[]>;
32
+ commentsLoading: Accessor<boolean>;
33
+ selectedFilePath: Accessor<string | null>;
34
+ setSelectedFilePath: (path: string | null) => void;
35
+ setActivePatch: (patchId: number | null, preserveFilePath?: string) => void;
36
+ refreshWorkingTree: (preserveFilePath?: string) => Promise<void>;
37
+ getCommentById: (commentId: number) => CommentWithNote | null;
38
+ getCommentForRange: (file: string, startRow: number, endRow: number) => CommentWithNote | null;
39
+ createComment: (file: string, startRow: number, endRow: number, content: string) => Promise<CommentWithNote | null>;
40
+ updateComment: (commentId: number, content: string) => Promise<void>;
41
+ }
42
+ export interface ReviewProviderProps extends ParentProps {
43
+ repoPath: string;
44
+ }
45
+ export declare function ReviewProvider(props: ReviewProviderProps): any;
46
+ export declare function useReview(): ReviewContextValue;
47
+ //# sourceMappingURL=review.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../../src/context/review.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,10 @@
1
+ import { type ParentProps, type Accessor } from "solid-js";
2
+ import { SpallClient } from "@spader/spall-sdk/client";
3
+ export interface ServerContextValue {
4
+ url: Accessor<string | null>;
5
+ connected: Accessor<boolean>;
6
+ client: Accessor<SpallClient | null>;
7
+ }
8
+ export declare function ServerProvider(props: ParentProps): any;
9
+ export declare function useServer(): ServerContextValue;
10
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../../src/context/server.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAU,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE/D,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAC7B,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC7B,MAAM,EAAE,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CACtC;AAID,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,OA8DhD;AAED,wBAAgB,SAAS,IAAI,kBAAkB,CAI9C"}
@@ -0,0 +1,13 @@
1
+ import { type ParentProps, type Accessor } from "solid-js";
2
+ export type SidebarSection = "files" | "comments" | "patches";
3
+ interface SidebarContextValue {
4
+ activeSection: Accessor<SidebarSection>;
5
+ isFocused: Accessor<boolean>;
6
+ }
7
+ export declare function SidebarProvider(props: ParentProps<{
8
+ activeSection: Accessor<SidebarSection>;
9
+ isFocused: Accessor<boolean>;
10
+ }>): any;
11
+ export declare function useSidebar(): SidebarContextValue;
12
+ export {};
13
+ //# sourceMappingURL=sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/context/sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;AAE9D,UAAU,mBAAmB;IAC3B,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IACxC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC9B;AAID,wBAAgB,eAAe,CAC7B,KAAK,EAAE,WAAW,CAAC;IACjB,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IACxC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;CAC9B,CAAC,OAYH;AAED,wBAAgB,UAAU,IAAI,mBAAmB,CAIhD"}
@@ -0,0 +1,47 @@
1
+ import { type ParentProps, type Accessor } from "solid-js";
2
+ import { SyntaxStyle } from "@opentui/core";
3
+ export interface ThemeColors {
4
+ background: string;
5
+ backgroundPanel: string;
6
+ backgroundElement: string;
7
+ text: string;
8
+ textMuted: string;
9
+ primary: string;
10
+ primaryDark: string;
11
+ secondary: string;
12
+ secondaryDark: string;
13
+ added: string;
14
+ removed: string;
15
+ modified: string;
16
+ indicatorDefault: string;
17
+ connected: string;
18
+ disconnected: string;
19
+ diffAddedBg: string;
20
+ diffRemovedBg: string;
21
+ diffContextBg: string;
22
+ diffSignAdded: string;
23
+ diffSignRemoved: string;
24
+ diffAddedLineNumberBg: string;
25
+ diffRemovedLineNumberBg: string;
26
+ diffLineNumberFg: string;
27
+ syntaxComment: string;
28
+ syntaxKeyword: string;
29
+ syntaxFunction: string;
30
+ syntaxVariable: string;
31
+ syntaxString: string;
32
+ syntaxNumber: string;
33
+ syntaxType: string;
34
+ syntaxOperator: string;
35
+ syntaxPunctuation: string;
36
+ }
37
+ export type ThemeName = "default" | "system";
38
+ interface ThemeContextValue {
39
+ theme: ThemeColors;
40
+ themeName: Accessor<ThemeName>;
41
+ setTheme: (name: ThemeName) => void;
42
+ syntax: Accessor<SyntaxStyle>;
43
+ }
44
+ export declare function ThemeProvider(props: ParentProps): any;
45
+ export declare function useTheme(): ThemeContextValue;
46
+ export {};
47
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/context/theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,WAAW,EAChB,KAAK,QAAQ,EACd,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,WAAW,EAAwB,MAAM,eAAe,CAAC;AAElE,MAAM,WAAW,WAAW;IAE1B,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAG1B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IAGtB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IAGjB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IAGtB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IAGxB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,uBAAuB,EAAE,MAAM,CAAC;IAChC,gBAAgB,EAAE,MAAM,CAAC;IAGzB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE7C,UAAU,iBAAiB;IACzB,KAAK,EAAE,WAAW,CAAC;IACnB,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,MAAM,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;CAC/B;AAoJD,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,OAuB/C;AAED,wBAAgB,QAAQ,IAAI,iBAAiB,CAI5C"}
@@ -0,0 +1,3 @@
1
+ export { tui } from "./App";
2
+ export type { TuiOptions } from "./App";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,YAAY,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { Git } from "./git";
2
+ export interface DiffHunk {
3
+ diffString: string;
4
+ oldStart: number;
5
+ oldLines: number;
6
+ newStart: number;
7
+ newLines: number;
8
+ skipBefore: number;
9
+ lineCount: number;
10
+ startRow: number;
11
+ endRow: number;
12
+ }
13
+ export interface DiffFileModel {
14
+ hunks: DiffHunk[];
15
+ totalRows: number;
16
+ }
17
+ export declare function parseFileDiff(content: string, file: string): DiffFileModel;
18
+ export declare function getHunkIndexForRow(content: string, file: string, row: number): number | null;
19
+ export declare function parsePatchEntries(content: string): Git.Entry[];
20
+ export declare function getHunkRowRange(content: string, file: string, hunkIndex: number): {
21
+ startRow: number;
22
+ endRow: number;
23
+ } | null;
24
+ //# sourceMappingURL=diff.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"diff.d.ts","sourceRoot":"","sources":["../../../src/lib/diff.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,MAAM,WAAW,QAAQ;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,CAyD1E;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,MAAM,GAAG,IAAI,CAOf;AAOD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,KAAK,EAAE,CAoC9D;AAED,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAK7C"}
@@ -0,0 +1,15 @@
1
+ export declare namespace Git {
2
+ interface Entry {
3
+ file: string;
4
+ content: string;
5
+ isNew: boolean;
6
+ isDeleted: boolean;
7
+ }
8
+ function root(startPath: string): Promise<string | null>;
9
+ function head(repoPath: string): Promise<string | null>;
10
+ function diff(repoPath: string): Promise<string>;
11
+ function hash(repoPath: string): Promise<number>;
12
+ function entries(repoPath: string): Promise<Entry[]>;
13
+ function lines(diffContent: string): number;
14
+ }
15
+ //# sourceMappingURL=git.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git.d.ts","sourceRoot":"","sources":["../../../src/lib/git.ts"],"names":[],"mappings":"AAEA,yBAAiB,GAAG,CAAC;IACnB,UAAiB,KAAK;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,OAAO,CAAC;QACf,SAAS,EAAE,OAAO,CAAC;KACpB;IAED,SAAsB,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQpE;IAED,SAAsB,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAOnE;IAED,SAAsB,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAG5D;IAED,SAAsB,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAU5D;IAED,SAAsB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC,CA8ChE;IAED,SAAgB,KAAK,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAiBjD;CACF"}
@@ -0,0 +1,23 @@
1
+ import type { ParsedKey } from "@opentui/core";
2
+ export interface KeybindInfo {
3
+ name: string;
4
+ ctrl?: boolean;
5
+ meta?: boolean;
6
+ shift?: boolean;
7
+ }
8
+ export type CommandCategory = "movement" | "selection" | "actions";
9
+ export interface Command {
10
+ id: string;
11
+ title: string;
12
+ category: CommandCategory;
13
+ keybinds: KeybindInfo[];
14
+ isActive: () => boolean;
15
+ onExecute: () => void;
16
+ }
17
+ /** Check if a ParsedKey matches a KeybindInfo */
18
+ export declare function matchKey(key: ParsedKey, bind: KeybindInfo): boolean;
19
+ /** Check if a ParsedKey matches any of the bindings */
20
+ export declare function matchAny(key: ParsedKey, binds: KeybindInfo[]): boolean;
21
+ /** Format a keybind for display (e.g., "C-c", "return", "a") */
22
+ export declare function formatKeybind(bind: KeybindInfo): string;
23
+ //# sourceMappingURL=keybind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keybind.d.ts","sourceRoot":"","sources":["../../../src/lib/keybind.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,WAAW,GAAG,SAAS,CAAA;AAElE,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,eAAe,CAAA;IACzB,QAAQ,EAAE,WAAW,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,OAAO,CAAA;IACvB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB;AAED,iDAAiD;AACjD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAMnE;AAED,uDAAuD;AACvD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,OAAO,CAEtE;AAED,gEAAgE;AAChE,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAOvD"}
@@ -0,0 +1,39 @@
1
+ import type { Git } from "../lib/git";
2
+ /**
3
+ * A node in the file tree - either a directory or a file
4
+ */
5
+ export interface FileTreeNode {
6
+ name: string;
7
+ path: string;
8
+ type: "file" | "dir";
9
+ status?: "M" | "A" | "D";
10
+ children: FileTreeNode[];
11
+ entryIndex?: number;
12
+ }
13
+ /**
14
+ * A flattened item for display/rendering
15
+ */
16
+ export interface DisplayItem {
17
+ node: FileTreeNode;
18
+ depth: number;
19
+ }
20
+ /**
21
+ * Build a file tree from a list of diff entries.
22
+ * Directories are sorted before files, then alphabetically within each group.
23
+ */
24
+ export declare function buildFileTree(entries: Git.Entry[]): FileTreeNode[];
25
+ /**
26
+ * Flatten the tree into a display list with depth information.
27
+ * Collapses single-child directory chains (e.g., "packages/cli/src" instead of nested).
28
+ */
29
+ export declare function flattenTree(nodes: FileTreeNode[]): DisplayItem[];
30
+ /**
31
+ * Get the list of file entry indices from display items (for navigation).
32
+ * Returns indices in display order.
33
+ */
34
+ export declare function getFileIndices(items: DisplayItem[]): number[];
35
+ /**
36
+ * Find the display index for a given file entry index
37
+ */
38
+ export declare function findDisplayIndex(items: DisplayItem[], entryIndex: number): number;
39
+ //# sourceMappingURL=tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../src/lib/tree.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;IACzB,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,EAAE,GAAG,YAAY,EAAE,CAalE;AAkED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,WAAW,EAAE,CAIhE;AA+CD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,MAAM,EAAE,CAQ7D;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,WAAW,EAAE,EACpB,UAAU,EAAE,MAAM,GACjB,MAAM,CAIR"}
@@ -0,0 +1,20 @@
1
+ export type Info = {
2
+ id: number;
3
+ review: number;
4
+ noteId: number;
5
+ file: string;
6
+ patchId: number;
7
+ startRow: number;
8
+ endRow: number;
9
+ createdAt: number;
10
+ };
11
+ export declare function create(input: {
12
+ review: number;
13
+ noteId: number;
14
+ file: string;
15
+ patchId: number;
16
+ startRow: number;
17
+ endRow: number;
18
+ }): Info;
19
+ export declare function list(review: number): Info[];
20
+ //# sourceMappingURL=comment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comment.d.ts","sourceRoot":"","sources":["../../../src/store/comment.ts"],"names":[],"mappings":"AAaA,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,wBAAgB,MAAM,CAAC,KAAK,EAAE;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,GAAG,IAAI,CAuCP;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,CAkB3C"}
@@ -0,0 +1,6 @@
1
+ import { Database } from "bun:sqlite";
2
+ export declare function path(): string;
3
+ export declare function init(): Database;
4
+ export declare function get(): Database;
5
+ export declare function close(): void;
6
+ //# sourceMappingURL=db.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../../src/store/db.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAsDtC,wBAAgB,IAAI,IAAI,MAAM,CAE7B;AAED,wBAAgB,IAAI,IAAI,QAAQ,CAe/B;AAED,wBAAgB,GAAG,IAAI,QAAQ,CAK9B;AAED,wBAAgB,KAAK,IAAI,IAAI,CAK5B"}
@@ -0,0 +1,7 @@
1
+ import * as db from "./db";
2
+ import * as Repo from "./repo";
3
+ import * as Review from "./review";
4
+ import * as Patch from "./patch";
5
+ import * as ReviewComment from "./comment";
6
+ export { db, Repo, Review, Patch, ReviewComment };
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,aAAa,MAAM,WAAW,CAAC;AAE3C,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,22 @@
1
+ export type Info = {
2
+ id: number;
3
+ review: number;
4
+ seq: number;
5
+ hash: string;
6
+ content: string;
7
+ createdAt: number;
8
+ };
9
+ export declare function create(input: {
10
+ review: number;
11
+ seq: number;
12
+ hash: string;
13
+ content: string;
14
+ }): Info;
15
+ export declare function get(id: number): Info | null;
16
+ export declare function getByHash(review: number, hash: string): Info | null;
17
+ export declare function latest(review: number): Info | null;
18
+ export declare function list(review: number): Info[];
19
+ export declare function pruneUnreferenced(review: number, keepPatchIds?: number[]): number;
20
+ export declare function nextSeq(review: number): number;
21
+ export declare function getOrCreate(review: number, content: string): Info;
22
+ //# sourceMappingURL=patch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../../src/store/patch.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAaF,wBAAgB,MAAM,CAAC,KAAK,EAAE;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,GAAG,IAAI,CAUP;AAED,wBAAgB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAQ3C;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAQnE;AAED,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAQlD;AAED,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,CAO3C;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,YAAY,GAAE,MAAM,EAAO,GAC1B,MAAM,CAeR;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAG9C;AAED,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAMjE"}