kajji 0.1.0 → 0.2.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 (49) hide show
  1. package/README.md +33 -30
  2. package/bin/kajji +60 -0
  3. package/package.json +35 -55
  4. package/script/postinstall.mjs +50 -0
  5. package/bin/kajji.js +0 -2
  6. package/src/App.tsx +0 -229
  7. package/src/commander/bookmarks.ts +0 -129
  8. package/src/commander/diff.ts +0 -186
  9. package/src/commander/executor.ts +0 -285
  10. package/src/commander/files.ts +0 -87
  11. package/src/commander/log.ts +0 -99
  12. package/src/commander/operations.ts +0 -313
  13. package/src/commander/types.ts +0 -21
  14. package/src/components/AnsiText.tsx +0 -77
  15. package/src/components/BorderBox.tsx +0 -124
  16. package/src/components/FileTreeList.tsx +0 -105
  17. package/src/components/Layout.tsx +0 -48
  18. package/src/components/Panel.tsx +0 -143
  19. package/src/components/RevisionPicker.tsx +0 -165
  20. package/src/components/StatusBar.tsx +0 -158
  21. package/src/components/modals/BookmarkNameModal.tsx +0 -170
  22. package/src/components/modals/DescribeModal.tsx +0 -124
  23. package/src/components/modals/HelpModal.tsx +0 -372
  24. package/src/components/modals/RevisionPickerModal.tsx +0 -70
  25. package/src/components/modals/UndoModal.tsx +0 -75
  26. package/src/components/panels/BookmarksPanel.tsx +0 -768
  27. package/src/components/panels/CommandLogPanel.tsx +0 -40
  28. package/src/components/panels/LogPanel.tsx +0 -774
  29. package/src/components/panels/MainArea.tsx +0 -354
  30. package/src/context/command.tsx +0 -106
  31. package/src/context/commandlog.tsx +0 -45
  32. package/src/context/dialog.tsx +0 -217
  33. package/src/context/focus.tsx +0 -63
  34. package/src/context/helper.tsx +0 -24
  35. package/src/context/keybind.tsx +0 -51
  36. package/src/context/loading.tsx +0 -68
  37. package/src/context/sync.tsx +0 -868
  38. package/src/context/theme.tsx +0 -90
  39. package/src/context/types.ts +0 -51
  40. package/src/index.tsx +0 -15
  41. package/src/keybind/index.ts +0 -2
  42. package/src/keybind/parser.ts +0 -88
  43. package/src/keybind/types.ts +0 -83
  44. package/src/theme/index.ts +0 -3
  45. package/src/theme/presets/lazygit.ts +0 -45
  46. package/src/theme/presets/opencode.ts +0 -45
  47. package/src/theme/types.ts +0 -47
  48. package/src/utils/double-click.ts +0 -59
  49. package/src/utils/file-tree.ts +0 -154
@@ -1,40 +0,0 @@
1
- import { For, Show } from "solid-js"
2
- import { useCommandLog } from "../../context/commandlog"
3
- import { useTheme } from "../../context/theme"
4
-
5
- export function CommandLogPanel() {
6
- const { colors, style } = useTheme()
7
- const commandLog = useCommandLog()
8
-
9
- return (
10
- <box
11
- flexDirection="column"
12
- border
13
- borderStyle={style().panel.borderStyle}
14
- borderColor={colors().border}
15
- title="Command log"
16
- height={6}
17
- overflow="hidden"
18
- >
19
- <scrollbox flexGrow={1} stickyScroll stickyStart="bottom">
20
- <Show
21
- when={commandLog.entries().length > 0}
22
- fallback={
23
- <text fg={colors().textMuted}>No commands executed yet</text>
24
- }
25
- >
26
- <For each={commandLog.entries()}>
27
- {(entry) => (
28
- <box flexDirection="column">
29
- <text fg={colors().textMuted}>$ {entry.command}</text>
30
- <text fg={entry.success ? colors().success : colors().error}>
31
- {entry.output}
32
- </text>
33
- </box>
34
- )}
35
- </For>
36
- </Show>
37
- </scrollbox>
38
- </box>
39
- )
40
- }