runcc 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/index.js +19 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2463,6 +2463,25 @@ function validateDashPosition(argv) {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
|
|
2465
2465
|
// src/index.ts
|
|
2466
|
+
function safeLog2(message) {
|
|
2467
|
+
const encoder = new TextEncoder;
|
|
2468
|
+
Bun.write(Bun.stdout, encoder.encode(message + `
|
|
2469
|
+
`));
|
|
2470
|
+
}
|
|
2471
|
+
function safeError(message) {
|
|
2472
|
+
const encoder = new TextEncoder;
|
|
2473
|
+
Bun.write(Bun.stderr, encoder.encode(message + `
|
|
2474
|
+
`));
|
|
2475
|
+
}
|
|
2476
|
+
var isBunCompiled = typeof Bun !== "undefined" && !import.meta.dir;
|
|
2477
|
+
if (isBunCompiled) {
|
|
2478
|
+
console.log = (...args) => {
|
|
2479
|
+
safeLog2(args.map(String).join(" "));
|
|
2480
|
+
};
|
|
2481
|
+
console.error = (...args) => {
|
|
2482
|
+
safeError(args.map(String).join(" "));
|
|
2483
|
+
};
|
|
2484
|
+
}
|
|
2466
2485
|
var program2 = new Command;
|
|
2467
2486
|
program2.name("cc-run").description("Claude \u542F\u52A8\u5668 - \u652F\u6301\u5207\u6362\u4E0D\u540C\u7684 API endpoint").version("0.1.0");
|
|
2468
2487
|
program2.command("list").description("\u5217\u51FA\u6240\u6709\u53EF\u7528\u7684 endpoints").action(list);
|