@starlove/orbit 1.1.11 → 1.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 (103) hide show
  1. package/.dockerignore +0 -0
  2. package/Dockerfile +0 -0
  3. package/LICENSE +0 -0
  4. package/README.md +0 -0
  5. package/SKILL-ORBIT.md +0 -0
  6. package/build.mjs +11 -5
  7. package/dist/full/apple-touch-icon.png +0 -0
  8. package/dist/full/cursors/live_arrow.cur +0 -0
  9. package/dist/full/cursors/live_link.cur +0 -0
  10. package/dist/full/cursors/live_move.cur +0 -0
  11. package/dist/full/cursors/live_select.cur +0 -0
  12. package/dist/full/cursors/live_unavail.cur +0 -0
  13. package/dist/full/favicon-32x32.png +0 -0
  14. package/dist/full/index.html +11 -7
  15. package/dist/full/js/{app.55b38e12.js → app.ccc442f7.js} +85 -77
  16. package/dist/full/js/app.ccc442f7.js.map +7 -0
  17. package/dist/full/orbits-favicon.png +0 -0
  18. package/dist/full/orbits-logo-bg.png +0 -0
  19. package/dist/full/orbits-logo.png +0 -0
  20. package/dist/full/styles.baccc8e3.css +1 -0
  21. package/dist/full/version.json +2 -2
  22. package/docs/AGENT_PROTOCOL.md +0 -0
  23. package/docs/MCP_SETUP.md +0 -0
  24. package/docs/ORBIT_DISPATCH.md +0 -0
  25. package/docs/SS-Orbit-Dark.png +0 -0
  26. package/docs/SS-Orbit-Light.png +0 -0
  27. package/docs/mcp-client.example.json +0 -0
  28. package/docs/setup/orbit-init-wizard.md +0 -0
  29. package/package.json +19 -18
  30. package/public/apple-touch-icon.png +0 -0
  31. package/public/cursors/live_arrow.cur +0 -0
  32. package/public/cursors/live_link.cur +0 -0
  33. package/public/cursors/live_move.cur +0 -0
  34. package/public/cursors/live_select.cur +0 -0
  35. package/public/cursors/live_unavail.cur +0 -0
  36. package/public/favicon-32x32.png +0 -0
  37. package/public/index.html +9 -5
  38. package/public/js/actor-labels.js +0 -0
  39. package/public/js/api.js +0 -0
  40. package/public/js/app.js +0 -0
  41. package/public/js/board-menu.js +16 -2
  42. package/public/js/card-actions.js +0 -0
  43. package/public/js/config.js +0 -0
  44. package/public/js/create-card.js +1 -1
  45. package/public/js/dom.js +0 -0
  46. package/public/js/drawer.js +1 -1
  47. package/public/js/format.js +2 -3
  48. package/public/js/kanban.js +10 -9
  49. package/public/js/local-backend.js +0 -0
  50. package/public/js/main.js +0 -0
  51. package/public/js/modal.js +0 -0
  52. package/public/js/motion-preference.js +0 -0
  53. package/public/js/router.js +0 -0
  54. package/public/js/search.js +1 -1
  55. package/public/js/settings-tabs.js +0 -0
  56. package/public/js/settings.js +39 -27
  57. package/public/js/sse.js +0 -0
  58. package/public/js/starscape.js +0 -0
  59. package/public/js/state.js +0 -0
  60. package/public/js/theme-preference.js +0 -0
  61. package/public/js/ticket-detail.js +4 -4
  62. package/public/js/toast.js +0 -0
  63. package/public/js/transport.js +0 -0
  64. package/public/js/unread.js +0 -0
  65. package/public/js/url-routes.js +0 -0
  66. package/public/orbits-favicon.png +0 -0
  67. package/public/orbits-logo-bg.png +0 -0
  68. package/public/orbits-logo.png +0 -0
  69. package/public/styles.css +498 -445
  70. package/src/core/agent.js +0 -0
  71. package/src/core/agents-md.js +0 -0
  72. package/src/core/attachments.js +0 -0
  73. package/src/core/auth.js +0 -0
  74. package/src/core/backups.js +0 -0
  75. package/src/core/board.js +0 -0
  76. package/src/core/boards.js +0 -0
  77. package/src/core/bootstrap.js +0 -0
  78. package/src/core/css-bundle.js +29 -0
  79. package/src/core/db.js +0 -0
  80. package/src/core/delete-board.js +0 -0
  81. package/src/core/dispatch.js +0 -0
  82. package/src/core/events.js +0 -0
  83. package/src/core/http.js +10 -3
  84. package/src/core/migrate.js +0 -0
  85. package/src/core/paths.js +0 -0
  86. package/src/core/provision-repo-board.js +0 -0
  87. package/src/core/queries.js +0 -0
  88. package/src/core/registry.js +0 -0
  89. package/src/core/relations.js +0 -0
  90. package/src/core/review-verdicts.js +0 -0
  91. package/src/core/router.js +0 -0
  92. package/src/core/search.js +0 -0
  93. package/src/core/seed.js +0 -0
  94. package/src/core/snapshots.js +0 -0
  95. package/src/core/states.js +0 -0
  96. package/src/core/system-picker.js +0 -0
  97. package/src/core/tickets.js +0 -0
  98. package/src/core/util.js +0 -0
  99. package/src/mcp/orbit-client.js +0 -0
  100. package/src/mcp-server.js +0 -0
  101. package/src/server.js +0 -0
  102. package/dist/full/js/app.55b38e12.js.map +0 -7
  103. package/dist/full/styles.273fc37a.css +0 -6002
package/src/core/agent.js CHANGED
File without changes
File without changes
File without changes
package/src/core/auth.js CHANGED
File without changes
File without changes
package/src/core/board.js CHANGED
File without changes
File without changes
File without changes
@@ -0,0 +1,29 @@
1
+ // CSS bundling seam for Starscape UI package imports.
2
+ //
3
+ // public/styles.css remains Orbit's editable source of truth, but it can now
4
+ // import @starlove/ui component CSS. Static builds and source dev serving both
5
+ // pass that source through esbuild so browsers never have to resolve package
6
+ // specifiers from raw CSS.
7
+
8
+ const CURSOR_ASSET_LOADERS = {
9
+ ".cur": "file"
10
+ };
11
+
12
+ export async function bundleCss({ entryPoint, outfile, minify = false }) {
13
+ const { build } = await import("esbuild");
14
+ const result = await build({
15
+ entryPoints: [entryPoint],
16
+ bundle: true,
17
+ target: "es2022",
18
+ minify,
19
+ sourcemap: false,
20
+ write: false,
21
+ outfile,
22
+ assetNames: "cursors/[name]",
23
+ loader: CURSOR_ASSET_LOADERS,
24
+ legalComments: "none"
25
+ });
26
+ const cssFile = result.outputFiles.find((file) => file.path.endsWith(".css"));
27
+ if (!cssFile) throw new Error("CSS bundle did not produce a stylesheet");
28
+ return { cssFile, outputFiles: result.outputFiles };
29
+ }
package/src/core/db.js CHANGED
File without changes
File without changes
File without changes
File without changes
package/src/core/http.js CHANGED
@@ -1,7 +1,8 @@
1
1
  import { readFile } from "node:fs/promises";
2
2
  import { createReadStream } from "node:fs";
3
- import { extname, resolve as resolvePath } from "node:path";
4
- import { PUBLIC_DIR } from "./paths.js";
3
+ import { extname, join, resolve as resolvePath } from "node:path";
4
+ import { bundleCss } from "./css-bundle.js";
5
+ import { PUBLIC_DIR, ROOT_DIR } from "./paths.js";
5
6
  import { httpError } from "./util.js";
6
7
 
7
8
  export function setCors(res) {
@@ -70,6 +71,10 @@ function contentType(filePath) {
70
71
  return types[extname(filePath)] || "application/octet-stream";
71
72
  }
72
73
 
74
+ function shouldBundleSourceStyles(pathname, filePath) {
75
+ return pathname === "/styles.css" && filePath === join(ROOT_DIR, "public", "styles.css");
76
+ }
77
+
73
78
  export async function serveStatic(req, res, pathname) {
74
79
  if (req.method !== "GET" && req.method !== "HEAD") {
75
80
  sendEmpty(res, 405);
@@ -84,7 +89,9 @@ export async function serveStatic(req, res, pathname) {
84
89
  }
85
90
 
86
91
  try {
87
- const data = await readFile(filePath);
92
+ const data = shouldBundleSourceStyles(pathname, filePath)
93
+ ? Buffer.from((await bundleCss({ entryPoint: filePath, outfile: filePath })).cssFile.contents)
94
+ : await readFile(filePath);
88
95
  res.writeHead(200, {
89
96
  "Content-Type": contentType(filePath),
90
97
  "Cache-Control": "no-store"
File without changes
package/src/core/paths.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/core/seed.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/src/core/util.js CHANGED
File without changes
File without changes
package/src/mcp-server.js CHANGED
File without changes
package/src/server.js CHANGED
File without changes