@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.
- package/dist/{AgentApp-CIiRfOun.js → AgentApp-DJYdD1VH.js} +4 -2
- package/dist/adapters/vite.js +2 -1
- package/dist/cli.js +500 -178
- package/dist/{finding-assessment-M5fUTE-C.js → finding-assessment-CGpt5YUR.js} +3 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +388 -130
- package/dist/{json-DBoMe4xB.js → json-BflWt4dX.js} +2 -2
- package/dist/mcp.js +301 -105
- package/dist/{mount-DTc8WaIt.js → mount-CHGc3gB6.js} +1 -1
- package/dist/{sarif--DI_2p2r.js → sarif-CdtsAfJ1.js} +1 -1
- package/dist/{sarif-Ba5D8TPH.js → sarif-CpuYM3aK.js} +2 -2
- package/dist/{version-9Cnt1TiK.js → version-B4eYJn3o.js} +1 -1
- package/package.json +1 -1
- package/scripts/release-guard.mjs +2 -2
|
@@ -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:
|
|
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:
|
|
217
|
+
children: title
|
|
216
218
|
}), /* @__PURE__ */ jsxs(Box, {
|
|
217
219
|
marginTop: 1,
|
|
218
220
|
flexDirection: "column",
|
package/dist/adapters/vite.js
CHANGED
|
@@ -8,7 +8,8 @@ const createViteRaigalScripts = (framework = "vite") => {
|
|
|
8
8
|
};
|
|
9
9
|
const createViteRaigalWorkflow = () => createRaigalCiWorkflow();
|
|
10
10
|
const runViteRaigal = async (options = {}) => {
|
|
11
|
-
|
|
11
|
+
const framework = options.framework ?? "vite";
|
|
12
|
+
return maybeRunRaigal(framework, {
|
|
12
13
|
...options,
|
|
13
14
|
enabled: options.enabled ?? options.runOnBuild ?? false
|
|
14
15
|
});
|