@webappwiz/arbor 0.0.30 → 0.0.31

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 (118) hide show
  1. package/add.d.ts +23 -0
  2. package/age.d.ts +2 -0
  3. package/arbor.d.ts +11 -0
  4. package/attachments.d.ts +36 -0
  5. package/claim.d.ts +11 -0
  6. package/config.d.ts +55 -0
  7. package/config.js +7 -0
  8. package/dev/assets.d.ts +11 -0
  9. package/dev.d.ts +48 -0
  10. package/escalate.d.ts +28 -0
  11. package/exit.d.ts +42 -0
  12. package/git.d.ts +77 -0
  13. package/index.d.ts +2 -0
  14. package/index.js +4712 -0
  15. package/journal.d.ts +29 -0
  16. package/list.d.ts +18 -0
  17. package/load-config.d.ts +15 -0
  18. package/log.d.ts +14 -0
  19. package/merge.d.ts +24 -0
  20. package/package.json +15 -32
  21. package/path.d.ts +13 -0
  22. package/plan.d.ts +83 -0
  23. package/remove.d.ts +19 -0
  24. package/repository.d.ts +25 -0
  25. package/retry.d.ts +17 -0
  26. package/shell.d.ts +17 -0
  27. package/show.d.ts +53 -0
  28. package/snapshot.d.ts +35 -0
  29. package/table.d.ts +5 -0
  30. package/todo.d.ts +264 -0
  31. package/wait.d.ts +22 -0
  32. package/worktree-service.d.ts +51 -0
  33. package/worktree.d.ts +95 -0
  34. package/AGENTS.md +0 -7
  35. package/add.test.ts +0 -125
  36. package/add.ts +0 -192
  37. package/age.ts +0 -11
  38. package/arbor.test.ts +0 -145
  39. package/arbor.ts +0 -429
  40. package/assets.d.ts +0 -9
  41. package/attachments.ts +0 -87
  42. package/build.ts +0 -98
  43. package/claim.test.ts +0 -89
  44. package/claim.ts +0 -73
  45. package/components.json +0 -21
  46. package/config.ts +0 -58
  47. package/dev/api.ts +0 -120
  48. package/dev/app.test.tsx +0 -645
  49. package/dev/app.tsx +0 -80
  50. package/dev/assets.ts +0 -16
  51. package/dev/build/main.txt +0 -68
  52. package/dev/build/shell.txt +0 -21
  53. package/dev/build/styles.txt +0 -2263
  54. package/dev/components/ui/badge.tsx +0 -51
  55. package/dev/components/ui/button.tsx +0 -57
  56. package/dev/components/ui/dialog.tsx +0 -154
  57. package/dev/components/ui/empty.tsx +0 -100
  58. package/dev/components/ui/input-group.tsx +0 -155
  59. package/dev/components/ui/input.tsx +0 -19
  60. package/dev/components/ui/progress.tsx +0 -80
  61. package/dev/components/ui/textarea.tsx +0 -17
  62. package/dev/components/ui/toast.tsx +0 -227
  63. package/dev/feed.ts +0 -69
  64. package/dev/files.tsx +0 -191
  65. package/dev/index.html +0 -21
  66. package/dev/lib/utils.ts +0 -7
  67. package/dev/main.tsx +0 -22
  68. package/dev/markdown.test.tsx +0 -133
  69. package/dev/markdown.tsx +0 -124
  70. package/dev/mentions.tsx +0 -319
  71. package/dev/shadcn.css +0 -649
  72. package/dev/styles.css +0 -107
  73. package/dev/tags.tsx +0 -44
  74. package/dev/tasks.tsx +0 -151
  75. package/dev/todos.tsx +0 -759
  76. package/dev.test.ts +0 -439
  77. package/dev.ts +0 -386
  78. package/e2e.test.ts +0 -256
  79. package/escalate.test.ts +0 -76
  80. package/escalate.ts +0 -112
  81. package/exit.test.ts +0 -71
  82. package/exit.ts +0 -74
  83. package/git.ts +0 -294
  84. package/index.ts +0 -9
  85. package/journal.ts +0 -89
  86. package/list.test.ts +0 -82
  87. package/list.ts +0 -137
  88. package/load-config.test.ts +0 -121
  89. package/load-config.ts +0 -62
  90. package/log.test.ts +0 -65
  91. package/log.ts +0 -40
  92. package/merge.test.ts +0 -332
  93. package/merge.ts +0 -283
  94. package/path.test.ts +0 -35
  95. package/path.ts +0 -38
  96. package/plan.test.ts +0 -318
  97. package/plan.ts +0 -302
  98. package/progress.test.ts +0 -54
  99. package/progress.ts +0 -31
  100. package/remove.test.ts +0 -68
  101. package/remove.ts +0 -88
  102. package/repository.ts +0 -83
  103. package/retry.test.ts +0 -43
  104. package/retry.ts +0 -48
  105. package/shell.ts +0 -44
  106. package/show.test.ts +0 -91
  107. package/show.ts +0 -151
  108. package/snapshot.test.ts +0 -33
  109. package/snapshot.ts +0 -84
  110. package/table.ts +0 -20
  111. package/testing.ts +0 -229
  112. package/todo.test.ts +0 -490
  113. package/todo.ts +0 -834
  114. package/wait.test.ts +0 -61
  115. package/wait.ts +0 -77
  116. package/worktree-service.test.ts +0 -158
  117. package/worktree-service.ts +0 -193
  118. 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 };