paseo-terminal-integration 0.5.5 → 0.5.6
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.
|
@@ -185,6 +185,7 @@ function RunStatus({ run, styles, theme }: { run: RunSnapshot; styles: Styles; t
|
|
|
185
185
|
parts.push(
|
|
186
186
|
`${run.mode === "background" ? "Running in background" : "Running"} · ${elapsed(run)}`,
|
|
187
187
|
);
|
|
188
|
+
tone = styles.success;
|
|
188
189
|
}
|
|
189
190
|
if (run.status === "done") {
|
|
190
191
|
parts.push(`${run.exitCode === 0 ? "✓" : "✗"} exit ${run.exitCode}`);
|
package/client/run-card.tsx
CHANGED
|
@@ -192,6 +192,7 @@ function RunStatus({ run, styles, theme }: { run: RunSnapshot; styles: Styles; t
|
|
|
192
192
|
parts.push(
|
|
193
193
|
`${run.mode === "background" ? "Running in background" : "Running"} · ${elapsed(run)}`,
|
|
194
194
|
);
|
|
195
|
+
tone = styles.success;
|
|
195
196
|
}
|
|
196
197
|
if (run.status === "done") {
|
|
197
198
|
parts.push(`${run.exitCode === 0 ? "✓" : "✗"} exit ${run.exitCode}`);
|
package/client/run-output.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { useRpc } from "@getpaseo/plugin/client";
|
|
|
2
2
|
import { Icon } from "@getpaseo/plugin/client/react-native";
|
|
3
3
|
import { useQuery } from "@tanstack/react-query";
|
|
4
4
|
import { useEffect, useMemo, useState } from "react";
|
|
5
|
-
import { Platform, Pressable, ScrollView, Text, View } from "react-native";
|
|
5
|
+
import { ActivityIndicator, Platform, Pressable, ScrollView, Text, View } from "react-native";
|
|
6
6
|
import { runOutput, type RunSnapshot } from "../shared/contracts";
|
|
7
7
|
|
|
8
8
|
const AUTO_EXPAND_LINES = 5;
|
|
@@ -17,6 +17,7 @@ interface OutputTheme {
|
|
|
17
17
|
colors: {
|
|
18
18
|
border: string;
|
|
19
19
|
foregroundMuted: string;
|
|
20
|
+
statusSuccess: string;
|
|
20
21
|
surface0: string;
|
|
21
22
|
};
|
|
22
23
|
}
|
|
@@ -58,8 +59,11 @@ export function RunOutput({
|
|
|
58
59
|
onPress={() => setOverride(!expanded)}
|
|
59
60
|
style={({ pressed }) => [styles.toggle, pressed && styles.pressed]}
|
|
60
61
|
>
|
|
61
|
-
|
|
62
|
+
{run.status === "running" ? (
|
|
63
|
+
<ActivityIndicator size="small" color={theme.colors.statusSuccess} />
|
|
64
|
+
) : null}
|
|
62
65
|
<Text style={[styles.summary, { color: summaryColor }]}>{summary}</Text>
|
|
66
|
+
<Icon name={expanded ? "ChevronDown" : "ChevronRight"} size={15} color={summaryColor} />
|
|
63
67
|
</Pressable>
|
|
64
68
|
{expanded ? (
|
|
65
69
|
<View style={styles.output}>
|
|
@@ -90,7 +94,7 @@ function createStyles(theme: OutputTheme) {
|
|
|
90
94
|
container: { gap: 6 },
|
|
91
95
|
toggle: { flexDirection: "row" as const, alignItems: "center" as const, gap: 4 },
|
|
92
96
|
pressed: { opacity: 0.7 },
|
|
93
|
-
summary: {
|
|
97
|
+
summary: { flex: 1 },
|
|
94
98
|
output: {
|
|
95
99
|
borderRadius: 6,
|
|
96
100
|
backgroundColor: theme.colors.surface0,
|
package/package.json
CHANGED