@corsair-dev/cli 0.1.24 → 0.1.26
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
CHANGED
|
@@ -2486,7 +2486,7 @@ import { fileURLToPath } from "url";
|
|
|
2486
2486
|
import { Command } from "commander";
|
|
2487
2487
|
|
|
2488
2488
|
// package.json
|
|
2489
|
-
var version = "0.1.
|
|
2489
|
+
var version = "0.1.26";
|
|
2490
2490
|
|
|
2491
2491
|
// src/utils/subscription.ts
|
|
2492
2492
|
async function runWebhookSubscription(cwd, pluginId) {
|
|
@@ -3309,6 +3309,19 @@ var SharepointSubscribeCommand = class extends SharepointCommand {
|
|
|
3309
3309
|
|
|
3310
3310
|
// src/commands/studio.command.ts
|
|
3311
3311
|
import path4 from "path";
|
|
3312
|
+
function parseStudioPort(raw) {
|
|
3313
|
+
if (raw === void 0) {
|
|
3314
|
+
return void 0;
|
|
3315
|
+
}
|
|
3316
|
+
const port = Number(raw);
|
|
3317
|
+
if (!/^\d+$/.test(raw) || port < 1 || port > 65535) {
|
|
3318
|
+
console.error(
|
|
3319
|
+
"[corsair]: Invalid port. Usage: corsair ui --port <number> (1-65535)."
|
|
3320
|
+
);
|
|
3321
|
+
process.exit(1);
|
|
3322
|
+
}
|
|
3323
|
+
return port;
|
|
3324
|
+
}
|
|
3312
3325
|
var StudioCommand = class extends BaseCommand {
|
|
3313
3326
|
getName() {
|
|
3314
3327
|
return "ui";
|
|
@@ -3336,7 +3349,7 @@ var StudioCommand = class extends BaseCommand {
|
|
|
3336
3349
|
}
|
|
3337
3350
|
async action({ options }) {
|
|
3338
3351
|
const cwd = process.cwd();
|
|
3339
|
-
const port =
|
|
3352
|
+
const port = parseStudioPort(options.port);
|
|
3340
3353
|
let startStudio;
|
|
3341
3354
|
try {
|
|
3342
3355
|
const { createRequire } = await import("module");
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import type { CommandActionData, CommandOption } from '../index.types';
|
|
2
2
|
import BaseCommand from './base.command';
|
|
3
|
+
/**
|
|
4
|
+
* Parse and validate a port string for the studio command.
|
|
5
|
+
* Returns undefined when no port is provided (so the caller's fallback applies).
|
|
6
|
+
* Exits with code 1 when the port is invalid.
|
|
7
|
+
*/
|
|
8
|
+
export declare function parseStudioPort(raw: string | undefined): number | undefined;
|
|
3
9
|
export default class StudioCommand extends BaseCommand {
|
|
4
10
|
getName(): string;
|
|
5
11
|
getAliases(): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"studio.command.d.ts","sourceRoot":"","sources":["../../../src/commands/studio.command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAQzC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IACrD,OAAO,IAAI,MAAM;IAIjB,UAAU,IAAI,MAAM,EAAE;IAItB,cAAc,IAAI,MAAM;IAIxB,UAAU,IAAI,aAAa,EAAE;IAgBvB,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB;CA2C3C"}
|
|
1
|
+
{"version":3,"file":"studio.command.d.ts","sourceRoot":"","sources":["../../../src/commands/studio.command.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAQzC;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAc3E;AAED,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IACrD,OAAO,IAAI,MAAM;IAIjB,UAAU,IAAI,MAAM,EAAE;IAItB,cAAc,IAAI,MAAM;IAIxB,UAAU,IAAI,aAAa,EAAE;IAgBvB,MAAM,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB;CA2C3C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corsair-dev/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"description": "Command-line tool for Corsair, the open-source integration layer. Scaffold a project, add integrations, and run your app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"c12": "^3.3.3",
|
|
25
25
|
"commander": "^14.0.3",
|
|
26
26
|
"zod": "^4.1.13",
|
|
27
|
-
"corsair": "0.1.
|
|
27
|
+
"corsair": "0.1.158"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/jest": "^29.5.14",
|