@methiu/raigal 0.2.2 → 0.2.3

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.
@@ -12,11 +12,12 @@ const colorFor$1 = (kind) => {
12
12
  };
13
13
  const prefixFor = (kind) => kind === "assistant" ? "" : `${kind} `;
14
14
  const ActivityPane = ({ activity, rows }) => {
15
+ const visible = activity.slice(-Math.max(1, rows));
15
16
  return /* @__PURE__ */ jsx(Box, {
16
17
  flexDirection: "column",
17
18
  flexGrow: 1,
18
19
  paddingX: 1,
19
- children: activity.slice(-Math.max(1, rows)).map((line, index) => /* @__PURE__ */ jsxs(Text, {
20
+ children: visible.map((line, index) => /* @__PURE__ */ jsxs(Text, {
20
21
  color: colorFor$1(line.kind),
21
22
  wrap: "truncate-end",
22
23
  children: [/* @__PURE__ */ jsx(Text, {
@@ -203,6 +204,7 @@ const Sidebar = ({ state }) => {
203
204
  const cost = state.usage?.costUsd ?? computeCostUsd(pricing, state.tokens);
204
205
  const ctx = pricing ? state.tokens.in / pricing.contextWindow * 100 : null;
205
206
  const hasUsage = state.tokens.total > 0;
207
+ const title = state.model ? `${state.provider} · ${state.model}` : state.provider;
206
208
  return /* @__PURE__ */ jsxs(Box, {
207
209
  flexDirection: "column",
208
210
  width: 30,
@@ -212,7 +214,7 @@ const Sidebar = ({ state }) => {
212
214
  borderColor: "gray",
213
215
  children: [/* @__PURE__ */ jsx(Text, {
214
216
  bold: true,
215
- children: state.model ? `${state.provider} · ${state.model}` : state.provider
217
+ children: title
216
218
  }), /* @__PURE__ */ jsxs(Box, {
217
219
  marginTop: 1,
218
220
  flexDirection: "column",
@@ -8,7 +8,8 @@ const createViteRaigalScripts = (framework = "vite") => {
8
8
  };
9
9
  const createViteRaigalWorkflow = () => createRaigalCiWorkflow();
10
10
  const runViteRaigal = async (options = {}) => {
11
- return maybeRunRaigal(options.framework ?? "vite", {
11
+ const framework = options.framework ?? "vite";
12
+ return maybeRunRaigal(framework, {
12
13
  ...options,
13
14
  enabled: options.enabled ?? options.runOnBuild ?? false
14
15
  });