open-azdo 0.2.1 → 0.2.3
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/open-azdo.js
CHANGED
|
@@ -46645,10 +46645,10 @@ class AzureDevOpsDecodeError extends exports_Schema.TaggedErrorClass()("AzureDev
|
|
|
46645
46645
|
}
|
|
46646
46646
|
|
|
46647
46647
|
// ../../packages/azdo/src/Schemas.ts
|
|
46648
|
-
var
|
|
46648
|
+
var PullRequestMetadataResponseSchema = exports_Schema.Struct({
|
|
46649
46649
|
title: exports_Schema.String,
|
|
46650
|
-
description: exports_Schema.String,
|
|
46651
|
-
url: exports_Schema.optionalKey(exports_Schema.String)
|
|
46650
|
+
description: exports_Schema.optionalKey(exports_Schema.Union([exports_Schema.String, exports_Schema.Null])),
|
|
46651
|
+
url: exports_Schema.optionalKey(exports_Schema.Union([exports_Schema.String, exports_Schema.Null]))
|
|
46652
46652
|
});
|
|
46653
46653
|
var ExistingThreadStatusSchema = exports_Schema.Union([
|
|
46654
46654
|
exports_Schema.Int,
|
|
@@ -46662,22 +46662,25 @@ var ExistingThreadStatusSchema = exports_Schema.Union([
|
|
|
46662
46662
|
var NullableIntSchema = exports_Schema.Union([exports_Schema.Int, exports_Schema.Null]);
|
|
46663
46663
|
var ExistingThreadSchema = exports_Schema.Struct({
|
|
46664
46664
|
id: exports_Schema.Int,
|
|
46665
|
-
status: ExistingThreadStatusSchema,
|
|
46665
|
+
status: exports_Schema.optionalKey(exports_Schema.Union([ExistingThreadStatusSchema, exports_Schema.Null])),
|
|
46666
46666
|
comments: exports_Schema.Array(exports_Schema.Struct({
|
|
46667
46667
|
id: exports_Schema.Int,
|
|
46668
46668
|
content: exports_Schema.optionalKey(exports_Schema.Union([exports_Schema.String, exports_Schema.Null]))
|
|
46669
46669
|
})),
|
|
46670
|
-
threadContext: exports_Schema.optionalKey(exports_Schema.
|
|
46671
|
-
|
|
46672
|
-
|
|
46673
|
-
|
|
46674
|
-
|
|
46675
|
-
|
|
46676
|
-
|
|
46677
|
-
|
|
46678
|
-
|
|
46679
|
-
|
|
46680
|
-
|
|
46670
|
+
threadContext: exports_Schema.optionalKey(exports_Schema.Union([
|
|
46671
|
+
exports_Schema.Struct({
|
|
46672
|
+
filePath: exports_Schema.optionalKey(exports_Schema.String),
|
|
46673
|
+
rightFileStart: exports_Schema.optionalKey(exports_Schema.Struct({
|
|
46674
|
+
line: exports_Schema.optionalKey(NullableIntSchema),
|
|
46675
|
+
offset: exports_Schema.optionalKey(NullableIntSchema)
|
|
46676
|
+
})),
|
|
46677
|
+
rightFileEnd: exports_Schema.optionalKey(exports_Schema.Struct({
|
|
46678
|
+
line: exports_Schema.optionalKey(NullableIntSchema),
|
|
46679
|
+
offset: exports_Schema.optionalKey(NullableIntSchema)
|
|
46680
|
+
}))
|
|
46681
|
+
}),
|
|
46682
|
+
exports_Schema.Null
|
|
46683
|
+
]))
|
|
46681
46684
|
});
|
|
46682
46685
|
var ExistingThreadsResponseSchema = exports_Schema.Struct({
|
|
46683
46686
|
value: exports_Schema.optionalKey(exports_Schema.Array(ExistingThreadSchema))
|
|
@@ -46729,7 +46732,12 @@ var getPullRequestMetadata = ({
|
|
|
46729
46732
|
token
|
|
46730
46733
|
}) => requestJson(buildPullRequestUrl(context2), { method: "GET", headers: createHeaders(token) }, (input) => {
|
|
46731
46734
|
try {
|
|
46732
|
-
|
|
46735
|
+
const metadata = exports_Schema.decodeUnknownSync(PullRequestMetadataResponseSchema)(input);
|
|
46736
|
+
return {
|
|
46737
|
+
title: metadata.title,
|
|
46738
|
+
description: metadata.description ?? "",
|
|
46739
|
+
url: metadata.url ?? undefined
|
|
46740
|
+
};
|
|
46733
46741
|
} catch (error2) {
|
|
46734
46742
|
throw new AzureDevOpsDecodeError({
|
|
46735
46743
|
message: "Azure DevOps response did not match the expected schema.",
|
|
@@ -48437,7 +48445,7 @@ var reviewCommandConfig = {
|
|
|
48437
48445
|
var reviewCommand = make33("review", reviewCommandConfig).pipe(withDescription3("Review an Azure DevOps pull request with OpenCode."), withHandler((input) => runReviewCommand(input)));
|
|
48438
48446
|
var openAzdoCli = make33("open-azdo").pipe(withDescription3("Secure Azure DevOps pull-request review CLI powered by OpenCode."), withSubcommands([reviewCommand]));
|
|
48439
48447
|
// package.json
|
|
48440
|
-
var version2 = "0.2.
|
|
48448
|
+
var version2 = "0.2.3";
|
|
48441
48449
|
|
|
48442
48450
|
// src/Main.ts
|
|
48443
48451
|
var cliProgram = run3(openAzdoCli, { version: version2 }).pipe(exports_Effect.scoped, exports_Effect.provide(BaseRuntimeLayer));
|
|
@@ -48446,4 +48454,4 @@ var main = () => runMain2(cliProgram, { disableErrorReporting: true });
|
|
|
48446
48454
|
// bin/open-azdo.ts
|
|
48447
48455
|
main();
|
|
48448
48456
|
|
|
48449
|
-
//# debugId=
|
|
48457
|
+
//# debugId=66CFFC8AFEDD190A64756E2164756E21
|