copilot-statusline 0.1.0 → 0.1.1
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/copilot-statusline.js +20 -14
- package/package.json +2 -2
|
@@ -52876,7 +52876,7 @@ import { execSync as execSync2 } from "child_process";
|
|
|
52876
52876
|
import * as fs5 from "fs";
|
|
52877
52877
|
import * as path4 from "path";
|
|
52878
52878
|
var __dirname = "/Users/ts/workspace/active/statusline/copilot_statusline/src/utils";
|
|
52879
|
-
var PACKAGE_VERSION = "0.1.
|
|
52879
|
+
var PACKAGE_VERSION = "0.1.1";
|
|
52880
52880
|
function getPackageVersion() {
|
|
52881
52881
|
if (/^\d+\.\d+\.\d+/.test(PACKAGE_VERSION)) {
|
|
52882
52882
|
return PACKAGE_VERSION;
|
|
@@ -63343,22 +63343,28 @@ async function readStdin() {
|
|
|
63343
63343
|
if (process.stdin.isTTY) {
|
|
63344
63344
|
return null;
|
|
63345
63345
|
}
|
|
63346
|
-
const chunks = [];
|
|
63347
63346
|
try {
|
|
63348
|
-
|
|
63349
|
-
|
|
63350
|
-
|
|
63351
|
-
|
|
63352
|
-
|
|
63353
|
-
|
|
63354
|
-
|
|
63355
|
-
|
|
63356
|
-
|
|
63347
|
+
const fs6 = await import("fs");
|
|
63348
|
+
const data = fs6.readFileSync(0, "utf-8");
|
|
63349
|
+
return data.length > 0 ? data : null;
|
|
63350
|
+
} catch {
|
|
63351
|
+
const chunks = [];
|
|
63352
|
+
try {
|
|
63353
|
+
if (typeof Bun !== "undefined") {
|
|
63354
|
+
const decoder = new TextDecoder;
|
|
63355
|
+
for await (const chunk2 of Bun.stdin.stream()) {
|
|
63356
|
+
chunks.push(decoder.decode(chunk2));
|
|
63357
|
+
}
|
|
63358
|
+
} else {
|
|
63359
|
+
process.stdin.setEncoding("utf8");
|
|
63360
|
+
for await (const chunk2 of process.stdin) {
|
|
63361
|
+
chunks.push(chunk2);
|
|
63362
|
+
}
|
|
63357
63363
|
}
|
|
63364
|
+
return chunks.join("") || null;
|
|
63365
|
+
} catch {
|
|
63366
|
+
return null;
|
|
63358
63367
|
}
|
|
63359
|
-
return chunks.join("");
|
|
63360
|
-
} catch {
|
|
63361
|
-
return null;
|
|
63362
63368
|
}
|
|
63363
63369
|
}
|
|
63364
63370
|
async function ensureWindowsUtf8CodePage() {
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "copilot-statusline",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A customizable status line formatter for GitHub Copilot CLI — based on ccstatusline",
|
|
5
5
|
"module": "src/copilot-statusline.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"copilot-statusline": "dist/
|
|
8
|
+
"copilot-statusline": "dist/copilot-statusline.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist/"
|