@methiu/raigal 0.2.3 → 0.2.5

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