@code-sentinel-cli/code-sentinel-cli 4.0.4 → 4.0.5
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/bin.js +18 -5
- package/dist/index.js +18 -5
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -47302,11 +47302,11 @@ var definedBuildValue = (value, fallback) => typeof value === "string" && value.
|
|
|
47302
47302
|
var getCliBuildMetadata = (version2) => ({
|
|
47303
47303
|
version: version2,
|
|
47304
47304
|
gitSha: definedBuildValue(
|
|
47305
|
-
"
|
|
47305
|
+
"e8df2c6d599c" ,
|
|
47306
47306
|
"unknown"
|
|
47307
47307
|
),
|
|
47308
47308
|
buildTimestamp: definedBuildValue(
|
|
47309
|
-
"2026-09-16T03:
|
|
47309
|
+
"2026-09-16T03:16:43.210Z" ,
|
|
47310
47310
|
"unknown"
|
|
47311
47311
|
),
|
|
47312
47312
|
configSchemaRange: definedBuildValue(
|
|
@@ -48507,7 +48507,7 @@ var projectListSchema = external_exports.object({
|
|
|
48507
48507
|
total: external_exports.number().int().nonnegative(),
|
|
48508
48508
|
limit: external_exports.number().int().positive(),
|
|
48509
48509
|
offset: external_exports.number().int().nonnegative()
|
|
48510
|
-
}).
|
|
48510
|
+
}).passthrough();
|
|
48511
48511
|
var createProjectRequestSchema = external_exports.object({
|
|
48512
48512
|
id: projectIdSchema,
|
|
48513
48513
|
name: external_exports.string().trim().min(1).max(255),
|
|
@@ -48553,7 +48553,7 @@ var dashboardRunListSchema = external_exports.object({
|
|
|
48553
48553
|
total: external_exports.number().int().nonnegative(),
|
|
48554
48554
|
limit: external_exports.number().int().positive(),
|
|
48555
48555
|
offset: external_exports.number().int().nonnegative()
|
|
48556
|
-
}).
|
|
48556
|
+
}).passthrough();
|
|
48557
48557
|
var dashboardRunDetailSchema = external_exports.object({ run: external_exports.unknown() }).strict();
|
|
48558
48558
|
var repositoryRuleExportSchema = external_exports.object({
|
|
48559
48559
|
schemaVersion: external_exports.literal(1),
|
|
@@ -48662,6 +48662,7 @@ var createCliApiClient = (options) => {
|
|
|
48662
48662
|
const controller = new AbortController();
|
|
48663
48663
|
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
48664
48664
|
const requestId = (options.requestId ?? defaultRequestId)();
|
|
48665
|
+
let payload;
|
|
48665
48666
|
try {
|
|
48666
48667
|
const response = await requestWithAuthorization(
|
|
48667
48668
|
path,
|
|
@@ -48671,7 +48672,7 @@ var createCliApiClient = (options) => {
|
|
|
48671
48672
|
requestId
|
|
48672
48673
|
);
|
|
48673
48674
|
if (!response.ok) throw await asError(response, requestId);
|
|
48674
|
-
|
|
48675
|
+
payload = await response.json();
|
|
48675
48676
|
} catch (error) {
|
|
48676
48677
|
if (error instanceof CliApiClientRequestError) throw error;
|
|
48677
48678
|
const message = error instanceof Error && error.name === "AbortError" ? "Request timed out." : "Network request failed.";
|
|
@@ -48684,6 +48685,18 @@ var createCliApiClient = (options) => {
|
|
|
48684
48685
|
} finally {
|
|
48685
48686
|
clearTimeout(timer);
|
|
48686
48687
|
}
|
|
48688
|
+
try {
|
|
48689
|
+
return parse2(payload);
|
|
48690
|
+
} catch (error) {
|
|
48691
|
+
if (error instanceof CliApiClientRequestError) throw error;
|
|
48692
|
+
const message = error instanceof Error ? `Invalid response format: ${error.message}` : "Invalid response format.";
|
|
48693
|
+
throw new CliApiClientRequestError({
|
|
48694
|
+
status: 0,
|
|
48695
|
+
requestId,
|
|
48696
|
+
message,
|
|
48697
|
+
retryable: false
|
|
48698
|
+
});
|
|
48699
|
+
}
|
|
48687
48700
|
};
|
|
48688
48701
|
const requestText = async (path, init) => {
|
|
48689
48702
|
const controller = new AbortController();
|
package/dist/index.js
CHANGED
|
@@ -47302,11 +47302,11 @@ var definedBuildValue = (value, fallback) => typeof value === "string" && value.
|
|
|
47302
47302
|
var getCliBuildMetadata = (version2) => ({
|
|
47303
47303
|
version: version2,
|
|
47304
47304
|
gitSha: definedBuildValue(
|
|
47305
|
-
"
|
|
47305
|
+
"e8df2c6d599c" ,
|
|
47306
47306
|
"unknown"
|
|
47307
47307
|
),
|
|
47308
47308
|
buildTimestamp: definedBuildValue(
|
|
47309
|
-
"2026-09-16T03:
|
|
47309
|
+
"2026-09-16T03:16:43.210Z" ,
|
|
47310
47310
|
"unknown"
|
|
47311
47311
|
),
|
|
47312
47312
|
configSchemaRange: definedBuildValue(
|
|
@@ -48524,7 +48524,7 @@ var projectListSchema = external_exports.object({
|
|
|
48524
48524
|
total: external_exports.number().int().nonnegative(),
|
|
48525
48525
|
limit: external_exports.number().int().positive(),
|
|
48526
48526
|
offset: external_exports.number().int().nonnegative()
|
|
48527
|
-
}).
|
|
48527
|
+
}).passthrough();
|
|
48528
48528
|
var createProjectRequestSchema = external_exports.object({
|
|
48529
48529
|
id: projectIdSchema,
|
|
48530
48530
|
name: external_exports.string().trim().min(1).max(255),
|
|
@@ -48570,7 +48570,7 @@ var dashboardRunListSchema = external_exports.object({
|
|
|
48570
48570
|
total: external_exports.number().int().nonnegative(),
|
|
48571
48571
|
limit: external_exports.number().int().positive(),
|
|
48572
48572
|
offset: external_exports.number().int().nonnegative()
|
|
48573
|
-
}).
|
|
48573
|
+
}).passthrough();
|
|
48574
48574
|
var dashboardRunDetailSchema = external_exports.object({ run: external_exports.unknown() }).strict();
|
|
48575
48575
|
var repositoryRuleExportSchema = external_exports.object({
|
|
48576
48576
|
schemaVersion: external_exports.literal(1),
|
|
@@ -48679,6 +48679,7 @@ var createCliApiClient = (options) => {
|
|
|
48679
48679
|
const controller = new AbortController();
|
|
48680
48680
|
const timer = setTimeout(() => controller.abort(), timeoutMs);
|
|
48681
48681
|
const requestId = (options.requestId ?? defaultRequestId)();
|
|
48682
|
+
let payload;
|
|
48682
48683
|
try {
|
|
48683
48684
|
const response = await requestWithAuthorization(
|
|
48684
48685
|
path,
|
|
@@ -48688,7 +48689,7 @@ var createCliApiClient = (options) => {
|
|
|
48688
48689
|
requestId
|
|
48689
48690
|
);
|
|
48690
48691
|
if (!response.ok) throw await asError(response, requestId);
|
|
48691
|
-
|
|
48692
|
+
payload = await response.json();
|
|
48692
48693
|
} catch (error) {
|
|
48693
48694
|
if (error instanceof CliApiClientRequestError) throw error;
|
|
48694
48695
|
const message = error instanceof Error && error.name === "AbortError" ? "Request timed out." : "Network request failed.";
|
|
@@ -48701,6 +48702,18 @@ var createCliApiClient = (options) => {
|
|
|
48701
48702
|
} finally {
|
|
48702
48703
|
clearTimeout(timer);
|
|
48703
48704
|
}
|
|
48705
|
+
try {
|
|
48706
|
+
return parse2(payload);
|
|
48707
|
+
} catch (error) {
|
|
48708
|
+
if (error instanceof CliApiClientRequestError) throw error;
|
|
48709
|
+
const message = error instanceof Error ? `Invalid response format: ${error.message}` : "Invalid response format.";
|
|
48710
|
+
throw new CliApiClientRequestError({
|
|
48711
|
+
status: 0,
|
|
48712
|
+
requestId,
|
|
48713
|
+
message,
|
|
48714
|
+
retryable: false
|
|
48715
|
+
});
|
|
48716
|
+
}
|
|
48704
48717
|
};
|
|
48705
48718
|
const requestText = async (path, init) => {
|
|
48706
48719
|
const controller = new AbortController();
|