copilot-statusline 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ @echo off
2
+ set "SCRIPT_DIR=%~dp0"
3
+ where bun >nul 2>&1 && (
4
+ bun "%SCRIPT_DIR%copilot-statusline.js" %*
5
+ exit /b %errorlevel%
6
+ )
7
+ node "%SCRIPT_DIR%copilot-statusline.js" %*
@@ -0,0 +1,14 @@
1
+ #!/bin/bash
2
+ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
3
+ JS="$SCRIPT_DIR/copilot-statusline.js"
4
+ if command -v bun >/dev/null 2>&1; then
5
+ RT=bun
6
+ else
7
+ RT=node
8
+ fi
9
+ if [ -t 0 ]; then
10
+ exec "$RT" "$JS" "$@"
11
+ else
12
+ INPUT=$(cat)
13
+ echo "$INPUT" | exec "$RT" "$JS" "$@"
14
+ fi
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "copilot-statusline",
3
+ "version": "0.1.0",
4
+ "description": "A customizable status line formatter for GitHub Copilot CLI — based on ccstatusline",
5
+ "module": "src/copilot-statusline.ts",
6
+ "type": "module",
7
+ "bin": {
8
+ "copilot-statusline": "dist/launcher.sh"
9
+ },
10
+ "files": [
11
+ "dist/"
12
+ ],
13
+ "scripts": {
14
+ "start": "bun run src/copilot-statusline.ts",
15
+ "build": "rm -rf dist/* ; bun build src/copilot-statusline.ts --target=node --outfile=dist/copilot-statusline.js --target-version=14 && bun run scripts/generate-launchers.ts",
16
+ "postbuild": "bun run scripts/replace-version.ts",
17
+ "example": "cat scripts/payload.example.json | bun start",
18
+ "prepublishOnly": "bun run build",
19
+ "lint": "bun tsc --noEmit && eslint . --config eslint.config.js --max-warnings=0",
20
+ "lint:fix": "bun tsc --noEmit && eslint . --config eslint.config.js --max-warnings=0 --fix"
21
+ },
22
+ "devDependencies": {
23
+ "@eslint/js": "^10.0.1",
24
+ "@stylistic/eslint-plugin": "^5.2.3",
25
+ "@types/bun": "latest",
26
+ "@types/pluralize": "^0.0.33",
27
+ "@types/react": "^19.1.10",
28
+ "chalk": "^5.5.0",
29
+ "eslint": "^10.0.0",
30
+ "eslint-import-resolver-typescript": "^4.4.4",
31
+ "eslint-plugin-import": "^2.32.0",
32
+ "eslint-plugin-import-newlines": "^2.0.0",
33
+ "eslint-plugin-react": "^7.37.5",
34
+ "eslint-plugin-react-hooks": "^7.0.1",
35
+ "globals": "^17.3.0",
36
+ "ink": "6.2.0",
37
+ "ink-select-input": "^6.2.0",
38
+ "react": "^19.1.1",
39
+ "react-devtools-core": "^7.0.1",
40
+ "string-width": "^7.2.0",
41
+ "strip-ansi": "^7.1.0",
42
+ "typescript": "^5.9.2",
43
+ "typescript-eslint": "^8.39.1",
44
+ "vitest": "^4.0.18",
45
+ "zod": "^4.0.17"
46
+ },
47
+ "keywords": [
48
+ "copilot",
49
+ "github-copilot",
50
+ "copilot-cli",
51
+ "cli",
52
+ "status-line",
53
+ "statusline",
54
+ "terminal",
55
+ "powerline",
56
+ "developer-tools"
57
+ ],
58
+ "author": "",
59
+ "license": "MIT",
60
+ "engines": {
61
+ "node": ">=14.0.0"
62
+ },
63
+ "trustedDependencies": [
64
+ "unrs-resolver"
65
+ ],
66
+ "patchedDependencies": {
67
+ "ink@6.2.0": "patches/ink@6.2.0.patch"
68
+ },
69
+ "dependencies": {
70
+ "ink-gradient": "^4.0.0",
71
+ "pluralize": "^8.0.0"
72
+ }
73
+ }