Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml -merge linguist-vendored
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: CI

on:
Expand All @@ -23,6 +23,8 @@

- name: Setup pnpm
uses: pnpm/action-setup@v5
with:
version: ^10.16

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down Expand Up @@ -51,6 +53,8 @@

- name: Setup pnpm
uses: pnpm/action-setup@v5
with:
version: ^10.16

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down Expand Up @@ -79,6 +83,8 @@

- name: Setup pnpm
uses: pnpm/action-setup@v5
with:
version: ^10.16

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down Expand Up @@ -108,6 +114,8 @@

- name: Setup pnpm
uses: pnpm/action-setup@v5
with:
version: ^10.16

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:

- name: Setup pnpm
uses: pnpm/action-setup@v5
with:
version: ^10.16

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/lisan-al-gaib.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Dependency Check"
on:
push:
branches: [main]
paths:
- .github/workflows/lisan-al-gaib.yaml
- pnpm-lock.yaml
pull_request:

permissions:
contents: read

jobs:
check:
runs-on: ubuntu-slim
steps:
- uses: runloopai/checkout@main

- uses: runloopai/lisan-al-gaib-action@main
with:
ecosystems: npm,actions
bypass-keyword: cve-fix
age-overrides: |
npm:
- '@runloop/api-client'

2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: Release

on:
Expand Down Expand Up @@ -34,6 +34,8 @@

- name: Setup pnpm
uses: pnpm/action-setup@v5
with:
version: ^10.16

- name: Setup Node.js
uses: actions/setup-node@v6
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"docs:commands": "pnpm run build && node scripts/generate-command-docs.js",
"prepare": "husky"
},
"packageManager": "pnpm@9.15.4",
"keywords": [
"runloop",
"cli",
Expand Down Expand Up @@ -83,7 +82,6 @@
"figures": "^6.1.0",
"gradient-string": "^3.0.0",
"ink": "^6.6.0",
"ink-big-text": "^2.0.0",
"ink-gradient": "^3.0.0",
"ink-link": "^5.0.0",
"ink-spinner": "^5.0.0",
Expand Down
91 changes: 0 additions & 91 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
minimumReleaseAge: 20160
minimumReleaseAgeExclude:
- '@runloop/api-client'
17 changes: 13 additions & 4 deletions src/components/Banner.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState, useEffect, useRef } from "react";
import { Box, Text, useStdout } from "ink";
import BigText from "ink-big-text";
import Gradient from "ink-gradient";
import { isLightMode } from "../utils/theme.js";

Expand Down Expand Up @@ -88,9 +87,19 @@ const LIGHT_FRAMES = precomputeFrames(
LIGHT_SHIMMER_COLORS.filter((_, i) => i % 2 === 0),
);

// Minimum width to show the full BigText banner (simple3d font needs ~80 chars for "RUNLOOP.ai")
// Pre-rendered "RUNLOOP.ai" in simple3d font (previously rendered by cfonts via ink-big-text)
const BANNER_ART = `\
___
_ __ __ __ ___ /\\_ \\ ___ ___ _____ __ __
/\\\` __\\/\\ \\/\\ \\ /' _ \`\\ \\//\\ \\ / __\`\\ / __\`\\ /\\ '__\`\\ /'__\`\\ /\\_\\
\\ \\ \\/ \\ \\ \\_\\ \\/\\ \\/\\ \\ \\_\\ \\_ /\\ \\_\\ \\/\\ \\_\\ \\\\ \\ \\_\\ \\ /\\ \\_\\.\\_ \\/\\ \\
\\ \\_\\ \\ \\____/\\ \\_\\ \\_\\ /\\____\\\\ \\____/\\ \\____/ \\ \\ ,__/ __ \\ \\__/.\\_\\ \\ \\ \\
\\/_/ \\/___/ \\/_/\\/_/ \\/____/ \\/___/ \\/___/ \\ \\ \\/ /\\_\\ \\/__/\\/_/ \\/_/
\\/_/ \\/_/ `;

// Minimum width to show the full banner (simple3d font needs ~80 chars for "RUNLOOP.ai")
const MIN_WIDTH_FOR_BIG_BANNER = 90;
// Minimum height to show the full BigText banner - require generous room (40 lines)
// Minimum height to show the full banner - require generous room (40 lines)
const MIN_HEIGHT_FOR_BIG_BANNER = 40;

// Animation interval in ms
Expand Down Expand Up @@ -169,7 +178,7 @@ export const Banner = React.memo(() => {
return (
<Box flexDirection="column" alignItems="flex-start" paddingX={1}>
<Gradient colors={currentColors}>
<BigText text="RUNLOOP.ai" font="simple3d" />
<Text>{BANNER_ART}</Text>
</Gradient>
</Box>
);
Expand Down
5 changes: 2 additions & 3 deletions tests/setup-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ jest.mock("ink-spinner", () => ({
default: () => null,
}));

// Mock ink-big-text and ink-gradient (these cause ESM issues)
jest.mock("ink-big-text", () => ({ __esModule: true, default: () => null }));
// Mock ink-gradient (causes ESM issues)
jest.mock("ink-gradient", () => ({ __esModule: true, default: () => null }));

// Note: We do NOT mock 'ink' - we use ink-testing-library which needs real ink
Expand Down Expand Up @@ -422,7 +421,7 @@ jest.mock("../src/utils/exec.ts", () => ({
execCommand: jest.fn(),
}));

// Mock Banner component (uses ink-big-text which is ESM)
// Mock Banner component (uses ink-gradient which is ESM)
jest.mock("../src/components/Banner.tsx", () => ({
__esModule: true,
Banner: () => null,
Expand Down
Loading
Loading