codebay 0.15.0 → 0.16.1

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 (91) hide show
  1. package/.mochi/manifest.json +490 -429
  2. package/.mochi/svelte-client/HydratableIsland-6y9p903x.js +1 -0
  3. package/.mochi/svelte-client/_hydrate-AppShell_2rtnxn6pgp2rh-nv6yzk0x.js +2 -0
  4. package/.mochi/svelte-client/_hydrate-AvatarsView_257s9yq1wwr4f-ry83ck8a.js +14 -0
  5. package/.mochi/svelte-client/_hydrate-InstanceView_2ma45l9bybfhl-vjt4jscf.js +3 -0
  6. package/.mochi/svelte-client/_hydrate-SettingsView_8hmarwmf8onq-1jdrk8x6.js +48 -0
  7. package/.mochi/svelte-client/{chunk-5pg0be5f.js → chunk-0vqvn81s.js} +1 -1
  8. package/.mochi/svelte-client/chunk-2dc6352a.js +1 -0
  9. package/.mochi/svelte-client/chunk-3cxaw5hr.js +2 -0
  10. package/.mochi/svelte-client/chunk-3jqc40sp.js +2 -0
  11. package/.mochi/svelte-client/chunk-3pgw6t5j.js +4 -0
  12. package/.mochi/svelte-client/chunk-7g3xt6ez.js +2 -0
  13. package/.mochi/svelte-client/chunk-b5s3mpg0.js +1 -0
  14. package/.mochi/svelte-client/chunk-bhseezf3.js +2 -0
  15. package/.mochi/svelte-client/chunk-bhwkq8er.js +1 -0
  16. package/.mochi/svelte-client/chunk-jm3ge348.js +1 -0
  17. package/.mochi/svelte-client/{chunk-ds9yn9cq.js → chunk-sxcr9gzp.js} +1 -1
  18. package/.mochi/svelte-client/{chunk-a2hty99b.js → chunk-tss2473w.js} +1 -1
  19. package/.mochi/svelte-compile/{App-68f9a9fq.server.js → App-8mpgrxza.server.js} +489 -295
  20. package/.mochi/svelte-compile/{Avatars-vyh3rwxx.server.js → Avatars-y5nf6q25.server.js} +102 -86
  21. package/.mochi/svelte-compile/{DefaultError-je52k17d.server.js → DefaultError-rrjye0s2.server.js} +1 -2
  22. package/.mochi/svelte-compile/{Instance-yfw7s5mp.server.js → Instance-3sbzyp0g.server.js} +186 -118
  23. package/.mochi/svelte-compile/{Settings-0b5t9kw9.server.js → Settings-ysvh5vhh.server.js} +739 -628
  24. package/.mochi/svelte-compile/chunk-7zaw9t5a.js +25 -0
  25. package/.mochi/svelte-compile/chunk-878xcmp4.js +65 -0
  26. package/.mochi/svelte-compile/chunk-d2z3qxxe.js +28 -0
  27. package/.mochi/svelte-compile/{chunk-60mpagr9.js → chunk-gnf5cnct.js} +661 -22
  28. package/.mochi/svelte-compile/{chunk-0y3wrae9.js → chunk-jq7jj8jd.js} +10 -6
  29. package/.mochi/svelte-compile/chunk-vr0e32mv.js +24 -0
  30. package/.mochi/svelte-compile/{chunk-apdte4nh.js → chunk-xmygdsj4.js} +35 -612
  31. package/.mochi/svelte-compile/{chunk-g0eravvj.js → chunk-zk4a9zms.js} +25 -17
  32. package/.mochi/svelte-css/DropZone-1zeitd761uwyd.css +1 -0
  33. package/.mochi/svelte-css/IdeBar-d3un7kuigxc5.css +1 -0
  34. package/.mochi/svelte-css/InstanceView-3ucotech5097w.css +1 -0
  35. package/README.md +13 -4
  36. package/migrations/0011_agent_run_rejected_structured_output.sql +2 -0
  37. package/package.json +9 -9
  38. package/src/__fixtures__/IdeBarStrip.svelte +41 -0
  39. package/src/avatars/dog.ts +1 -1
  40. package/src/avatars/lightning.ts +8 -9
  41. package/src/avatars/rocket.ts +4 -5
  42. package/src/components/AppShell.svelte +101 -1
  43. package/src/components/DropZone.svelte +77 -0
  44. package/src/components/HealthBox.svelte +6 -5
  45. package/src/components/IdeBar.svelte +222 -76
  46. package/src/components/InstanceView.svelte +75 -2
  47. package/src/components/SettingsView.svelte +87 -0
  48. package/src/components/TerminalPane.svelte +54 -0
  49. package/src/components/UiShowcase.svelte +19 -1
  50. package/src/container-injections/claude-code-install.ts +1 -1
  51. package/src/container-injections/claude-history.ts +52 -0
  52. package/src/container-injections/tmux.ts +6 -2
  53. package/src/index.ts +3 -0
  54. package/src/lib/agent-run-stream.ts +41 -1
  55. package/src/lib/agent-runs.server.ts +14 -3
  56. package/src/lib/config.server.ts +16 -1
  57. package/src/lib/db.server.ts +6 -2
  58. package/src/lib/devcontainer.server.ts +37 -4
  59. package/src/lib/injections.server.ts +5 -1
  60. package/src/lib/instances.server.ts +21 -4
  61. package/src/lib/log-capture.server.ts +46 -18
  62. package/src/lib/osc52.ts +18 -0
  63. package/src/lib/spawn.server.ts +7 -2
  64. package/src/lib/upload.ts +32 -0
  65. package/src/lib/uploads.server.ts +164 -0
  66. package/src/mcp/server.server.ts +4 -1
  67. package/src/mcp/tools.server.ts +178 -12
  68. package/src/pages/Instance.svelte +6 -2
  69. package/src/pages/Settings.svelte +3 -0
  70. package/src/routes.ts +16 -2
  71. package/src/types.ts +2 -0
  72. package/.mochi/svelte-client/HydratableIsland-smgsf0ma.js +0 -1
  73. package/.mochi/svelte-client/_hydrate-AppShell_2rtnxn6pgp2rh-9vc087ep.js +0 -2
  74. package/.mochi/svelte-client/_hydrate-AvatarsView_257s9yq1wwr4f-a48xq47a.js +0 -14
  75. package/.mochi/svelte-client/_hydrate-InstanceView_2ma45l9bybfhl-d4zehrqz.js +0 -3
  76. package/.mochi/svelte-client/_hydrate-SettingsView_8hmarwmf8onq-t5175pf5.js +0 -44
  77. package/.mochi/svelte-client/chunk-0mstgbtr.js +0 -2
  78. package/.mochi/svelte-client/chunk-0q9g0kpg.js +0 -1
  79. package/.mochi/svelte-client/chunk-3fwjzw1r.js +0 -1
  80. package/.mochi/svelte-client/chunk-fn03gxer.js +0 -4
  81. package/.mochi/svelte-client/chunk-jhgq7f65.js +0 -2
  82. package/.mochi/svelte-client/chunk-p5a07kx1.js +0 -1
  83. package/.mochi/svelte-client/chunk-p5wpyhsf.js +0 -2
  84. package/.mochi/svelte-client/chunk-t2kfvtb6.js +0 -2
  85. package/.mochi/svelte-client/chunk-v3wg9mdy.js +0 -1
  86. package/.mochi/svelte-compile/chunk-2qzc07gt.js +0 -34
  87. package/.mochi/svelte-compile/chunk-ef3hvegw.js +0 -21
  88. package/.mochi/svelte-compile/chunk-f9td8ej2.js +0 -24
  89. package/.mochi/svelte-compile/chunk-jx6h1xzp.js +0 -20
  90. package/.mochi/svelte-css/IdeBar-1mtgemqfuvqzi.css +0 -1
  91. package/.mochi/svelte-css/InstanceView-32j12hyg8v9u0.css +0 -1
@@ -0,0 +1,25 @@
1
+ // @bun
2
+ import {
3
+ Icon
4
+ } from "./chunk-gnf5cnct.js";
5
+
6
+ // node_modules/@lucide/svelte/dist/icons/message-square.svelte
7
+ import"svelte/internal/flags/async";
8
+ import * as $ from "svelte/internal/server";
9
+ function Message_square($$renderer, $$props) {
10
+ let { $$slots, $$events, ...props } = $$props;
11
+ const iconData = {
12
+ name: "message-square",
13
+ size: 24,
14
+ node: [
15
+ [
16
+ "path",
17
+ {
18
+ d: "M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z"
19
+ }
20
+ ]
21
+ ]
22
+ };
23
+ Icon($$renderer, $.spread_props([props, { icon: iconData }]));
24
+ }
25
+ export { Message_square };
@@ -0,0 +1,65 @@
1
+ // @bun
2
+ import {
3
+ apiFetch
4
+ } from "./chunk-jq7jj8jd.js";
5
+ import {
6
+ Icon
7
+ } from "./chunk-gnf5cnct.js";
8
+
9
+ // src/lib/links.ts
10
+ function forwardedPortUrl(hostPort) {
11
+ const host = typeof window === "undefined" ? "localhost" : window.location.hostname;
12
+ return `http://${host}:${hostPort}`;
13
+ }
14
+
15
+ // src/components/StatusBadge.svelte
16
+ import"svelte/internal/flags/async";
17
+ import * as $ from "svelte/internal/server";
18
+ function StatusBadge($$renderer, $$props) {
19
+ let { status } = $$props;
20
+ const label = {
21
+ creating: "Booting\u2026",
22
+ running: "Running",
23
+ stopped: "Stopped",
24
+ error: "Error"
25
+ };
26
+ $$renderer.push(`<span${$.attr_class(`status ${$.stringify(status)}`, "svelte-1hqr9xd")}>${$.escape(label[status])}</span>`);
27
+ }
28
+
29
+ // src/components/DropZone.svelte
30
+ import"svelte/internal/flags/async";
31
+ import * as $2 from "svelte/internal/server";
32
+ function DropZone($$renderer, $$props) {
33
+ let { ondrop } = $$props;
34
+ $$renderer.push(`<div${$2.attr_class("dropzone svelte-1b5cnjl", undefined, { catches: ondrop })} role="presentation"><svg class="frame svelte-1b5cnjl" aria-hidden="true"><rect class="dots svelte-1b5cnjl" width="100%" height="100%"></rect><rect class="dots odd svelte-1b5cnjl" width="100%" height="100%"></rect></svg> <span class="label svelte-1b5cnjl">Drop to save into codebay-inbox/</span></div>`);
35
+ }
36
+
37
+ // src/lib/upload.ts
38
+ function extFor(mimeType) {
39
+ const subtype = mimeType.split("/")[1];
40
+ return subtype && /^[a-z0-9.+-]+$/i.test(subtype) ? subtype : "bin";
41
+ }
42
+ function filesFrom(dt) {
43
+ if (!dt)
44
+ return [];
45
+ return [...dt.files].map((f) => f.name ? f : new File([f], `pasted-${Date.now()}.${extFor(f.type)}`, { type: f.type }));
46
+ }
47
+ async function uploadFile(id, file) {
48
+ const q = new URLSearchParams({ name: file.name });
49
+ const { file: saved } = await apiFetch(`/api/instances/${id}/upload?${q}`, { method: "POST", headers: { "Content-Type": "application/octet-stream" }, body: file }, "Upload failed");
50
+ return saved;
51
+ }
52
+
53
+ // node_modules/@lucide/svelte/dist/icons/chevron-right.svelte
54
+ import"svelte/internal/flags/async";
55
+ import * as $3 from "svelte/internal/server";
56
+ function Chevron_right($$renderer, $$props) {
57
+ let { $$slots, $$events, ...props } = $$props;
58
+ const iconData = {
59
+ name: "chevron-right",
60
+ size: 24,
61
+ node: [["path", { d: "m9 18 6-6-6-6" }]]
62
+ };
63
+ Icon($$renderer, $3.spread_props([props, { icon: iconData }]));
64
+ }
65
+ export { forwardedPortUrl, StatusBadge, DropZone, Chevron_right, filesFrom, uploadFile };
@@ -0,0 +1,28 @@
1
+ // @bun
2
+ import {
3
+ Icon
4
+ } from "./chunk-gnf5cnct.js";
5
+
6
+ // node_modules/@lucide/svelte/dist/icons/bot.svelte
7
+ import"svelte/internal/flags/async";
8
+ import * as $ from "svelte/internal/server";
9
+ function Bot($$renderer, $$props) {
10
+ let { $$slots, $$events, ...props } = $$props;
11
+ const iconData = {
12
+ name: "bot",
13
+ size: 24,
14
+ node: [
15
+ ["path", { d: "M12 8V4H8" }],
16
+ [
17
+ "rect",
18
+ { width: "16", height: "12", x: "4", y: "8", rx: "2" }
19
+ ],
20
+ ["path", { d: "M2 14h2" }],
21
+ ["path", { d: "M20 14h2" }],
22
+ ["path", { d: "M15 13v2" }],
23
+ ["path", { d: "M9 13v2" }]
24
+ ]
25
+ };
26
+ Icon($$renderer, $.spread_props([props, { icon: iconData }]));
27
+ }
28
+ export { Bot };