mini-coder 0.5.14 → 0.6.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 (70) hide show
  1. package/README.md +25 -109
  2. package/bin/mc.ts +8 -11
  3. package/bun.lock +79 -269
  4. package/package.json +17 -22
  5. package/src/agent.ts +237 -1403
  6. package/src/args.ts +289 -0
  7. package/src/headless.ts +43 -358
  8. package/src/index.ts +29 -1016
  9. package/src/oauth.ts +117 -0
  10. package/src/prompt.ts +227 -284
  11. package/src/session.ts +55 -1306
  12. package/src/shared.ts +117 -38
  13. package/src/tool-bash.ts +110 -0
  14. package/src/tool-edit.ts +133 -0
  15. package/src/tool-task.ts +114 -0
  16. package/src/tui-components.ts +150 -0
  17. package/src/tui-conversation.ts +262 -0
  18. package/src/tui-editor.ts +29 -0
  19. package/src/tui-overlay.ts +403 -0
  20. package/src/tui.ts +236 -0
  21. package/src/types.ts +160 -0
  22. package/tsconfig.json +17 -0
  23. package/BENCHMARK.md +0 -107
  24. package/LICENSE +0 -9
  25. package/PROGRESS.md +0 -5
  26. package/assets/icon-1-minimal.svg +0 -31
  27. package/assets/icon-2-dark-terminal.svg +0 -48
  28. package/assets/icon-3-gradient-modern.svg +0 -45
  29. package/assets/icon-4-filled-bold.svg +0 -54
  30. package/assets/icon-5-community-badge.svg +0 -63
  31. package/assets/mc-claude-smart.png +0 -0
  32. package/assets/mc-gpt-smart.png +0 -0
  33. package/assets/preview-0-5-0.png +0 -0
  34. package/assets/preview.gif +0 -0
  35. package/benchmark-baseline.sh +0 -15
  36. package/benchmark-loop.sh +0 -19
  37. package/skills-lock.json +0 -15
  38. package/src/assistant-output.ts +0 -73
  39. package/src/cli.ts +0 -134
  40. package/src/delegation.ts +0 -238
  41. package/src/errors.ts +0 -15
  42. package/src/git.ts +0 -247
  43. package/src/input.ts +0 -168
  44. package/src/mcp.ts +0 -609
  45. package/src/paths.ts +0 -37
  46. package/src/session-message.ts +0 -385
  47. package/src/settings.ts +0 -449
  48. package/src/skills.ts +0 -271
  49. package/src/submit.ts +0 -376
  50. package/src/text.ts +0 -71
  51. package/src/theme.ts +0 -330
  52. package/src/tool-common.ts +0 -93
  53. package/src/tool-delegate.ts +0 -125
  54. package/src/tool-grep.ts +0 -606
  55. package/src/tool-read.ts +0 -313
  56. package/src/tool-shell.ts +0 -1051
  57. package/src/tools.ts +0 -1179
  58. package/src/ui/agent.ts +0 -320
  59. package/src/ui/commands.test.ts +0 -957
  60. package/src/ui/commands.ts +0 -848
  61. package/src/ui/conversation.test.ts +0 -585
  62. package/src/ui/conversation.ts +0 -1836
  63. package/src/ui/help.ts +0 -158
  64. package/src/ui/input.test.ts +0 -64
  65. package/src/ui/input.ts +0 -138
  66. package/src/ui/overlay.ts +0 -59
  67. package/src/ui/runtime.ts +0 -69
  68. package/src/ui/status.ts +0 -220
  69. package/src/ui.ts +0 -1190
  70. package/src/version.ts +0 -48
package/src/version.ts DELETED
@@ -1,48 +0,0 @@
1
- /**
2
- * Version helpers for the interactive empty-state banner.
3
- *
4
- * @module
5
- */
6
-
7
- import { existsSync, readFileSync } from "node:fs";
8
- import { join } from "node:path";
9
-
10
- /** App name shown in the empty conversation banner. */
11
- export const APP_NAME = "mini-coder";
12
-
13
- /** Fallback label used when running from a local checkout instead of a packaged install. */
14
- export const DEV_VERSION_LABEL = "dev";
15
-
16
- /**
17
- * Resolve the version label shown in the empty conversation banner.
18
- *
19
- * Packaged installs read their version from the colocated `package.json`.
20
- * Local checkouts fall back to a simple `dev` label so banner metadata never
21
- * risks interfering with normal startup.
22
- *
23
- * @param appRoot - App root containing `package.json`.
24
- * @returns A display label such as `v0.5.1` or `dev`.
25
- */
26
- export function resolveAppVersionLabel(
27
- appRoot = join(import.meta.dir, ".."),
28
- ): string {
29
- if (existsSync(join(appRoot, ".git"))) {
30
- return DEV_VERSION_LABEL;
31
- }
32
-
33
- const packageJsonPath = join(appRoot, "package.json");
34
- if (!existsSync(packageJsonPath)) {
35
- return DEV_VERSION_LABEL;
36
- }
37
-
38
- try {
39
- const parsed = JSON.parse(readFileSync(packageJsonPath, "utf-8")) as {
40
- version?: unknown;
41
- };
42
- return typeof parsed.version === "string" && parsed.version !== ""
43
- ? `v${parsed.version}`
44
- : DEV_VERSION_LABEL;
45
- } catch {
46
- return DEV_VERSION_LABEL;
47
- }
48
- }