tingly-box 0.2601.41800 → 0.2601.51800-preview
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/bin.js +12 -2
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -15,7 +15,7 @@ const LATEST_RELEASE_API_URL = "https://github.com/tingly-dev/tingly-box/release
|
|
|
15
15
|
|
|
16
16
|
// Default branch to use when not specified via transport version
|
|
17
17
|
// This will be replaced during the NPX build process
|
|
18
|
-
const BINARY_RELEASE_BRANCH = 'v0.2601.
|
|
18
|
+
const BINARY_RELEASE_BRANCH = 'v0.2601.051800-preview';
|
|
19
19
|
|
|
20
20
|
// Create proxy agent from environment variables (HTTP_PROXY, HTTPS_PROXY)
|
|
21
21
|
// Only create ProxyAgent if proxy is configured, otherwise use undefined (direct connection)
|
|
@@ -73,6 +73,13 @@ function validateTransportVersion(version) {
|
|
|
73
73
|
|
|
74
74
|
const { version: VERSION, remainingArgs } = parseTransportVersion();
|
|
75
75
|
|
|
76
|
+
// Default parameters to use when no arguments are provided
|
|
77
|
+
const DEFAULT_ARGS = [
|
|
78
|
+
// Add your default parameters here, e.g.:
|
|
79
|
+
"start",
|
|
80
|
+
"--daemon",
|
|
81
|
+
];
|
|
82
|
+
|
|
76
83
|
async function getPlatformArchAndBinary() {
|
|
77
84
|
const platform = process.platform;
|
|
78
85
|
const arch = process.arch;
|
|
@@ -341,7 +348,10 @@ function formatBytes(bytes) {
|
|
|
341
348
|
console.log(`🔍 Executing binary: ${binaryPath}`);
|
|
342
349
|
|
|
343
350
|
try {
|
|
344
|
-
|
|
351
|
+
// Use default args if no arguments provided
|
|
352
|
+
const argsToUse = remainingArgs.length > 0 ? remainingArgs : DEFAULT_ARGS;
|
|
353
|
+
|
|
354
|
+
execFileSync(binaryPath, argsToUse, {
|
|
345
355
|
stdio: "inherit",
|
|
346
356
|
encoding: 'utf8'
|
|
347
357
|
});
|