codebay 0.14.0 → 0.16.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.
- package/.mochi/manifest.json +778 -646
- package/.mochi/svelte-client/HydratableIsland-6y9p903x.js +1 -0
- package/.mochi/svelte-client/_hydrate-AppShell_2rtnxn6pgp2rh-nv6yzk0x.js +2 -0
- package/.mochi/svelte-client/_hydrate-AvatarsView_257s9yq1wwr4f-ry83ck8a.js +14 -0
- package/.mochi/svelte-client/_hydrate-InstanceView_2ma45l9bybfhl-vjt4jscf.js +3 -0
- package/.mochi/svelte-client/_hydrate-SettingsView_8hmarwmf8onq-1jdrk8x6.js +48 -0
- package/.mochi/svelte-client/{chunk-spk1b2r4.js → chunk-0vqvn81s.js} +1 -1
- package/.mochi/svelte-client/chunk-2dc6352a.js +1 -0
- package/.mochi/svelte-client/chunk-3cxaw5hr.js +2 -0
- package/.mochi/svelte-client/chunk-3jqc40sp.js +2 -0
- package/.mochi/svelte-client/chunk-3pgw6t5j.js +4 -0
- package/.mochi/svelte-client/chunk-7g3xt6ez.js +2 -0
- package/.mochi/svelte-client/chunk-b5s3mpg0.js +1 -0
- package/.mochi/svelte-client/chunk-bhseezf3.js +2 -0
- package/.mochi/svelte-client/chunk-bhwkq8er.js +1 -0
- package/.mochi/svelte-client/chunk-jm3ge348.js +1 -0
- package/.mochi/svelte-client/{chunk-0mc09cyb.js → chunk-sxcr9gzp.js} +1 -1
- package/.mochi/svelte-client/{chunk-ccfh8hxz.js → chunk-tss2473w.js} +1 -1
- package/.mochi/svelte-compile/{App-94xsdn0w.server.js → App-8mpgrxza.server.js} +470 -271
- package/.mochi/svelte-compile/{Avatars-fnccw47h.server.js → Avatars-y5nf6q25.server.js} +111 -110
- package/.mochi/svelte-compile/{DefaultError-je52k17d.server.js → DefaultError-rrjye0s2.server.js} +1 -2
- package/.mochi/svelte-compile/Instance-3sbzyp0g.server.js +695 -0
- package/.mochi/svelte-compile/{Settings-a7b11v90.server.js → Settings-ysvh5vhh.server.js} +838 -607
- package/.mochi/svelte-compile/chunk-7zaw9t5a.js +25 -0
- package/.mochi/svelte-compile/chunk-878xcmp4.js +65 -0
- package/.mochi/svelte-compile/chunk-d2z3qxxe.js +28 -0
- package/.mochi/svelte-compile/{chunk-60mpagr9.js → chunk-gnf5cnct.js} +661 -22
- package/.mochi/svelte-compile/{chunk-w0hca7va.js → chunk-jq7jj8jd.js} +18 -2
- package/.mochi/svelte-compile/chunk-vr0e32mv.js +24 -0
- package/.mochi/svelte-compile/{chunk-apdte4nh.js → chunk-xmygdsj4.js} +35 -612
- package/.mochi/svelte-compile/{chunk-pqb403fh.js → chunk-zk4a9zms.js} +28 -31
- package/.mochi/svelte-css/AgentLogBox-38adby5iygny7.css +1 -0
- package/.mochi/svelte-css/DropZone-1zeitd761uwyd.css +1 -0
- package/.mochi/svelte-css/IdeBar-d3un7kuigxc5.css +1 -0
- package/.mochi/svelte-css/{InstanceCard-25z7nas7y98zk.css → InstanceCard-3vxozrp9uoads.css} +1 -1
- package/.mochi/svelte-css/InstanceView-3ucotech5097w.css +1 -0
- package/.mochi/svelte-css/{SettingsView-bccw34agd2bj.css → SettingsView-2400myxb9ot56.css} +1 -1
- package/README.md +43 -3
- package/migrations/0009_agent_runs.sql +24 -0
- package/migrations/0010_agent_run_model.sql +2 -0
- package/migrations/0011_agent_run_rejected_structured_output.sql +2 -0
- package/package.json +13 -9
- package/src/__fixtures__/IdeBarStrip.svelte +41 -0
- package/src/avatars/dog.ts +1 -1
- package/src/avatars/lightning.ts +8 -9
- package/src/avatars/rocket.ts +4 -5
- package/src/components/AgentLogBox.svelte +458 -0
- package/src/components/AppShell.svelte +112 -1
- package/src/components/DropZone.svelte +77 -0
- package/src/components/FolderBrowser.svelte +13 -5
- package/src/components/HealthBox.svelte +6 -5
- package/src/components/IdeBar.svelte +222 -76
- package/src/components/InstanceCard.svelte +38 -0
- package/src/components/InstanceView.svelte +83 -2
- package/src/components/SettingsView.svelte +273 -0
- package/src/components/TerminalPane.svelte +54 -0
- package/src/components/UiShowcase.svelte +23 -3
- package/src/container-injections/claude-code-install.ts +1 -1
- package/src/container-injections/claude-history.ts +52 -0
- package/src/container-injections/claude-statusline.ts +4 -1
- package/src/container-injections/github-credentials.ts +12 -1
- package/src/container-injections/tmux.ts +6 -2
- package/src/index.ts +35 -7
- package/src/lib/agent-run-stream.ts +286 -0
- package/src/lib/agent-runs.server.ts +735 -0
- package/src/lib/auth.server.ts +11 -2
- package/src/lib/build-freshness.server.ts +71 -0
- package/src/lib/config.server.ts +36 -7
- package/src/lib/container-files.server.ts +1 -1
- package/src/lib/data-dir-lock.server.ts +78 -0
- package/src/lib/db.server.ts +124 -1
- package/src/lib/devcontainer.server.ts +93 -16
- package/src/lib/docker-client.server.ts +11 -5
- package/src/lib/drives.ts +11 -0
- package/src/lib/exec.server.ts +66 -5
- package/src/lib/injections.server.ts +5 -1
- package/src/lib/instances.server.ts +66 -7
- package/src/lib/log-capture.server.ts +63 -23
- package/src/lib/mcp-auth.server.ts +52 -0
- package/src/lib/osc52.ts +18 -0
- package/src/lib/picker.server.ts +23 -2
- package/src/lib/sandbox-ops.server.ts +263 -0
- package/src/lib/upload.ts +32 -0
- package/src/lib/uploads.server.ts +164 -0
- package/src/mcp/routes.server.ts +25 -0
- package/src/mcp/server.server.ts +55 -0
- package/src/mcp/tools.server.ts +660 -0
- package/src/pages/Instance.svelte +6 -2
- package/src/pages/Settings.svelte +15 -0
- package/src/routes.ts +79 -3
- package/src/types.ts +17 -0
- package/.mochi/svelte-client/HydratableIsland-zrdsrsmg.js +0 -1
- package/.mochi/svelte-client/_hydrate-AppShell_2rtnxn6pgp2rh-v7y7dh53.js +0 -2
- package/.mochi/svelte-client/_hydrate-AvatarsView_257s9yq1wwr4f-tmwd6fpb.js +0 -14
- package/.mochi/svelte-client/_hydrate-InstanceView_2ma45l9bybfhl-m7t64dbh.js +0 -1
- package/.mochi/svelte-client/_hydrate-SettingsView_8hmarwmf8onq-4a7ann1f.js +0 -40
- package/.mochi/svelte-client/chunk-5jwfs4p9.js +0 -2
- package/.mochi/svelte-client/chunk-6qg4q98a.js +0 -2
- package/.mochi/svelte-client/chunk-phf7v5jj.js +0 -4
- package/.mochi/svelte-client/chunk-tmeh70wg.js +0 -2
- package/.mochi/svelte-client/chunk-vs1yjbqt.js +0 -2
- package/.mochi/svelte-client/chunk-x0m3k0rn.js +0 -1
- package/.mochi/svelte-client/chunk-y7f4jbdm.js +0 -2
- package/.mochi/svelte-compile/Instance-knnkcn2p.server.js +0 -377
- package/.mochi/svelte-compile/chunk-ed46m58e.js +0 -22
- package/.mochi/svelte-compile/chunk-jx6h1xzp.js +0 -20
- package/.mochi/svelte-css/IdeBar-1mtgemqfuvqzi.css +0 -1
- 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 };
|