@chrysb/alphaclaw 0.6.2-beta.5 → 0.7.0-beta.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/lib/public/css/agents.css +37 -13
- package/lib/public/css/cron.css +124 -41
- package/lib/public/css/shell.css +61 -2
- package/lib/public/css/theme.css +2 -1
- package/lib/public/js/app.js +41 -33
- package/lib/public/js/components/agents-tab/agent-detail-panel.js +61 -49
- package/lib/public/js/components/agents-tab/agent-overview/index.js +9 -0
- package/lib/public/js/components/agents-tab/agent-overview/tools-card.js +54 -0
- package/lib/public/js/components/cron-tab/cron-calendar.js +297 -203
- package/lib/public/js/components/cron-tab/cron-helpers.js +48 -0
- package/lib/public/js/components/cron-tab/cron-insights-panel.js +294 -0
- package/lib/public/js/components/cron-tab/cron-job-detail.js +38 -363
- package/lib/public/js/components/cron-tab/cron-job-settings-card.js +233 -0
- package/lib/public/js/components/cron-tab/cron-overview.js +40 -19
- package/lib/public/js/components/cron-tab/cron-prompt-editor.js +173 -0
- package/lib/public/js/components/cron-tab/cron-run-history-panel.js +74 -62
- package/lib/public/js/components/cron-tab/cron-runs-trend-card.js +24 -24
- package/lib/public/js/components/cron-tab/index.js +170 -78
- package/lib/public/js/components/envars.js +187 -46
- package/lib/public/js/components/file-viewer/editor-surface.js +5 -1
- package/lib/public/js/components/file-viewer/use-editor-line-number-sync.js +36 -0
- package/lib/public/js/components/file-viewer/use-file-viewer.js +7 -23
- package/lib/public/js/components/file-viewer/utils.js +1 -5
- package/lib/public/js/components/models-tab/index.js +137 -133
- package/lib/public/js/components/models-tab/provider-auth-card.js +8 -1
- package/lib/public/js/components/models-tab/use-models.js +35 -8
- package/lib/public/js/components/onboarding/welcome-pairing-step.js +88 -59
- package/lib/public/js/components/pane-shell.js +27 -0
- package/lib/public/js/components/routes/envars-route.js +1 -3
- package/lib/public/js/components/routes/models-route.js +1 -3
- package/lib/public/js/lib/app-navigation.js +1 -1
- package/lib/server/cost-utils.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { h } from "https://esm.sh/preact";
|
|
2
|
+
import htm from "https://esm.sh/htm";
|
|
3
|
+
import { kProfileLabels } from "../agent-tools/tool-catalog.js";
|
|
4
|
+
|
|
5
|
+
const html = htm.bind(h);
|
|
6
|
+
|
|
7
|
+
export const AgentToolsCard = ({
|
|
8
|
+
profile = "full",
|
|
9
|
+
enabledCount = 0,
|
|
10
|
+
totalCount = 0,
|
|
11
|
+
onSwitchToTools = () => {},
|
|
12
|
+
}) => {
|
|
13
|
+
const profileLabel = kProfileLabels[profile] || profile;
|
|
14
|
+
|
|
15
|
+
return html`
|
|
16
|
+
<div class="bg-surface border border-border rounded-xl p-4">
|
|
17
|
+
<h2 class="card-label mb-3">Tools</h2>
|
|
18
|
+
<div
|
|
19
|
+
class="flex items-center justify-between gap-3 cursor-pointer hover:bg-white/5 -mx-2 px-2 py-1.5 rounded-lg transition-colors"
|
|
20
|
+
role="button"
|
|
21
|
+
tabindex="0"
|
|
22
|
+
onclick=${onSwitchToTools}
|
|
23
|
+
onKeyDown=${(e) => {
|
|
24
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
25
|
+
e.preventDefault();
|
|
26
|
+
onSwitchToTools();
|
|
27
|
+
}
|
|
28
|
+
}}
|
|
29
|
+
>
|
|
30
|
+
<span class="font-medium text-sm">${profileLabel}</span>
|
|
31
|
+
<span class="flex items-center gap-2 shrink-0">
|
|
32
|
+
<span class="text-xs text-gray-500">
|
|
33
|
+
${enabledCount}/${totalCount} enabled
|
|
34
|
+
</span>
|
|
35
|
+
<svg
|
|
36
|
+
width="14"
|
|
37
|
+
height="14"
|
|
38
|
+
viewBox="0 0 16 16"
|
|
39
|
+
fill="none"
|
|
40
|
+
class="text-gray-600"
|
|
41
|
+
>
|
|
42
|
+
<path
|
|
43
|
+
d="M6 3.5L10.5 8L6 12.5"
|
|
44
|
+
stroke="currentColor"
|
|
45
|
+
stroke-width="2"
|
|
46
|
+
stroke-linecap="round"
|
|
47
|
+
stroke-linejoin="round"
|
|
48
|
+
/>
|
|
49
|
+
</svg>
|
|
50
|
+
</span>
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
`;
|
|
54
|
+
};
|