@webappwiz/arbor 0.0.30 → 0.0.32

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 (120) hide show
  1. package/README.md +2 -2
  2. package/add.d.ts +23 -0
  3. package/age.d.ts +2 -0
  4. package/arbor.d.ts +11 -0
  5. package/attachments.d.ts +36 -0
  6. package/claim.d.ts +11 -0
  7. package/config.d.ts +55 -0
  8. package/config.js +7 -0
  9. package/dev/assets.d.ts +11 -0
  10. package/dev.d.ts +48 -0
  11. package/escalate.d.ts +28 -0
  12. package/exit.d.ts +42 -0
  13. package/git.d.ts +82 -0
  14. package/index.d.ts +2 -0
  15. package/index.js +4763 -0
  16. package/journal.d.ts +29 -0
  17. package/list.d.ts +18 -0
  18. package/load-config.d.ts +15 -0
  19. package/log.d.ts +14 -0
  20. package/merge.d.ts +24 -0
  21. package/package.json +15 -32
  22. package/path.d.ts +13 -0
  23. package/plan.d.ts +83 -0
  24. package/remove.d.ts +19 -0
  25. package/repository.d.ts +25 -0
  26. package/retry.d.ts +17 -0
  27. package/shell.d.ts +17 -0
  28. package/show.d.ts +53 -0
  29. package/snapshot.d.ts +36 -0
  30. package/table.d.ts +5 -0
  31. package/todo.d.ts +202 -0
  32. package/todos.d.ts +75 -0
  33. package/wait.d.ts +22 -0
  34. package/worktree-service.d.ts +51 -0
  35. package/worktree.d.ts +95 -0
  36. package/AGENTS.md +0 -7
  37. package/add.test.ts +0 -125
  38. package/add.ts +0 -192
  39. package/age.ts +0 -11
  40. package/arbor.test.ts +0 -145
  41. package/arbor.ts +0 -429
  42. package/assets.d.ts +0 -9
  43. package/attachments.ts +0 -87
  44. package/build.ts +0 -98
  45. package/claim.test.ts +0 -89
  46. package/claim.ts +0 -73
  47. package/components.json +0 -21
  48. package/config.ts +0 -58
  49. package/dev/api.ts +0 -120
  50. package/dev/app.test.tsx +0 -645
  51. package/dev/app.tsx +0 -80
  52. package/dev/assets.ts +0 -16
  53. package/dev/build/main.txt +0 -68
  54. package/dev/build/shell.txt +0 -21
  55. package/dev/build/styles.txt +0 -2263
  56. package/dev/components/ui/badge.tsx +0 -51
  57. package/dev/components/ui/button.tsx +0 -57
  58. package/dev/components/ui/dialog.tsx +0 -154
  59. package/dev/components/ui/empty.tsx +0 -100
  60. package/dev/components/ui/input-group.tsx +0 -155
  61. package/dev/components/ui/input.tsx +0 -19
  62. package/dev/components/ui/progress.tsx +0 -80
  63. package/dev/components/ui/textarea.tsx +0 -17
  64. package/dev/components/ui/toast.tsx +0 -227
  65. package/dev/feed.ts +0 -69
  66. package/dev/files.tsx +0 -191
  67. package/dev/index.html +0 -21
  68. package/dev/lib/utils.ts +0 -7
  69. package/dev/main.tsx +0 -22
  70. package/dev/markdown.test.tsx +0 -133
  71. package/dev/markdown.tsx +0 -124
  72. package/dev/mentions.tsx +0 -319
  73. package/dev/shadcn.css +0 -649
  74. package/dev/styles.css +0 -107
  75. package/dev/tags.tsx +0 -44
  76. package/dev/tasks.tsx +0 -151
  77. package/dev/todos.tsx +0 -759
  78. package/dev.test.ts +0 -439
  79. package/dev.ts +0 -386
  80. package/e2e.test.ts +0 -256
  81. package/escalate.test.ts +0 -76
  82. package/escalate.ts +0 -112
  83. package/exit.test.ts +0 -71
  84. package/exit.ts +0 -74
  85. package/git.ts +0 -294
  86. package/index.ts +0 -9
  87. package/journal.ts +0 -89
  88. package/list.test.ts +0 -82
  89. package/list.ts +0 -137
  90. package/load-config.test.ts +0 -121
  91. package/load-config.ts +0 -62
  92. package/log.test.ts +0 -65
  93. package/log.ts +0 -40
  94. package/merge.test.ts +0 -332
  95. package/merge.ts +0 -283
  96. package/path.test.ts +0 -35
  97. package/path.ts +0 -38
  98. package/plan.test.ts +0 -318
  99. package/plan.ts +0 -302
  100. package/progress.test.ts +0 -54
  101. package/progress.ts +0 -31
  102. package/remove.test.ts +0 -68
  103. package/remove.ts +0 -88
  104. package/repository.ts +0 -83
  105. package/retry.test.ts +0 -43
  106. package/retry.ts +0 -48
  107. package/shell.ts +0 -44
  108. package/show.test.ts +0 -91
  109. package/show.ts +0 -151
  110. package/snapshot.test.ts +0 -33
  111. package/snapshot.ts +0 -84
  112. package/table.ts +0 -20
  113. package/testing.ts +0 -229
  114. package/todo.test.ts +0 -490
  115. package/todo.ts +0 -834
  116. package/wait.test.ts +0 -61
  117. package/wait.ts +0 -77
  118. package/worktree-service.test.ts +0 -158
  119. package/worktree-service.ts +0 -193
  120. package/worktree.ts +0 -239
package/dev/app.tsx DELETED
@@ -1,80 +0,0 @@
1
- import { useDisposerEffect, useReactive } from "@webappwiz/react";
2
- import { type JSX, useEffect, useState } from "react";
3
- import { Toaster } from "#dev/components/ui/toast.tsx";
4
- import { Feed } from "./feed";
5
- import { Tasks } from "./tasks";
6
- import { Todos } from "./todos";
7
-
8
- export function App(): JSX.Element {
9
- // One Feed for as long as this component lives. `useReactive` subscribes to
10
- // the source it saw on its first render, so an instance that got rebuilt
11
- // would leave the page listening to the one it replaced, showing nothing.
12
- const [feed] = useState(() => new Feed());
13
- useDisposerEffect(
14
- (disposer) => {
15
- feed.start();
16
- disposer.use(feed);
17
- },
18
- [feed],
19
- );
20
- const { snapshot, offline } = useReactive(
21
- feed,
22
- (feed) => ({ snapshot: feed.snapshot, offline: feed.offline }),
23
- ["changed"],
24
- );
25
-
26
- useEffect(() => {
27
- document.title = snapshot?.repo ?? "arbor";
28
- }, [snapshot?.repo]);
29
-
30
- return (
31
- <Toaster>
32
- <main className="mx-auto flex min-h-dvh max-w-xl flex-col gap-8 px-4 py-6">
33
- <header className="flex items-center justify-between">
34
- <div className="flex min-w-0 items-baseline gap-2">
35
- <h1 className="shrink-0 font-medium text-sm">
36
- {snapshot?.repo ?? "arbor"}
37
- </h1>
38
- {snapshot && (
39
- <span className="min-w-0 truncate text-muted-foreground text-xs">
40
- {snapshot.path}
41
- </span>
42
- )}
43
- </div>
44
- {/* Silent while connected, which is the normal case. Once the server
45
- stops answering, the page says so, since what it shows may no
46
- longer be true. */}
47
- {offline && (
48
- <span role="status" className="shrink-0 text-destructive text-xs">
49
- Offline: is `arbor dev` still running?
50
- </span>
51
- )}
52
- </header>
53
- {/* Tasks first: there are only ever a few, and they are what is moving
54
- right now. The todos below are what comes after. */}
55
- {snapshot === null ? null : (
56
- <>
57
- <section aria-labelledby="tasks" className="flex flex-col gap-2">
58
- <h2
59
- id="tasks"
60
- className="font-medium text-muted-foreground text-xs"
61
- >
62
- Tasks
63
- </h2>
64
- <Tasks tasks={snapshot.tasks} />
65
- </section>
66
- <section aria-labelledby="todos" className="flex flex-col gap-2">
67
- <h2
68
- id="todos"
69
- className="font-medium text-muted-foreground text-xs"
70
- >
71
- Todos
72
- </h2>
73
- <Todos snapshot={snapshot} />
74
- </section>
75
- </>
76
- )}
77
- </main>
78
- </Toaster>
79
- );
80
- }
package/dev/assets.ts DELETED
@@ -1,16 +0,0 @@
1
- import script from "./build/main.txt" with { type: "text" };
2
- import shell from "./build/shell.txt" with { type: "text" };
3
- import styles from "./build/styles.txt" with { type: "text" };
4
-
5
- /** The three files the browser asks for, as the server hands them over. */
6
- export interface Assets {
7
- /** The page, which asks for the other two. */
8
- shell: string;
9
- /** The React app, bundled for the browser. */
10
- script: string;
11
- /** The stylesheet, with Tailwind already compiled. */
12
- styles: string;
13
- }
14
-
15
- /** The page this package ships. Serve each field's contents as-is. */
16
- export const assets: Assets = { shell, script, styles };