@gpc-cli/core 0.9.50 → 0.9.52
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.d.ts +110 -1
- package/dist/index.js +767 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -1255,6 +1255,115 @@ declare function fetchChangelog(options?: FetchChangelogOptions): Promise<Change
|
|
|
1255
1255
|
*/
|
|
1256
1256
|
declare function formatChangelogEntry(entry: ChangelogEntry): string;
|
|
1257
1257
|
|
|
1258
|
+
type OutputMode = "md" | "json" | "prompt";
|
|
1259
|
+
interface RawCommit {
|
|
1260
|
+
sha: string;
|
|
1261
|
+
subject: string;
|
|
1262
|
+
body: string;
|
|
1263
|
+
files: string[];
|
|
1264
|
+
additions: number;
|
|
1265
|
+
deletions: number;
|
|
1266
|
+
authorDate: string;
|
|
1267
|
+
}
|
|
1268
|
+
interface ParsedCommit {
|
|
1269
|
+
sha: string;
|
|
1270
|
+
type: string;
|
|
1271
|
+
scope?: string;
|
|
1272
|
+
subject: string;
|
|
1273
|
+
prRef?: string;
|
|
1274
|
+
files: string[];
|
|
1275
|
+
weight: number;
|
|
1276
|
+
isRevert: boolean;
|
|
1277
|
+
isFixup: boolean;
|
|
1278
|
+
authorDate: string;
|
|
1279
|
+
}
|
|
1280
|
+
interface CommitCluster {
|
|
1281
|
+
id: string;
|
|
1282
|
+
label: string;
|
|
1283
|
+
commits: ParsedCommit[];
|
|
1284
|
+
weight: number;
|
|
1285
|
+
primaryType: string;
|
|
1286
|
+
}
|
|
1287
|
+
interface GeneratedChangelog {
|
|
1288
|
+
from: string;
|
|
1289
|
+
to: string;
|
|
1290
|
+
repo: string | null;
|
|
1291
|
+
rawCommitCount: number;
|
|
1292
|
+
commits: ParsedCommit[];
|
|
1293
|
+
clusters: CommitCluster[];
|
|
1294
|
+
grouped: Record<string, ParsedCommit[]>;
|
|
1295
|
+
headlineCandidates: CommitCluster[];
|
|
1296
|
+
warnings: string[];
|
|
1297
|
+
}
|
|
1298
|
+
interface GenerateOptions {
|
|
1299
|
+
from?: string;
|
|
1300
|
+
to?: string;
|
|
1301
|
+
cwd?: string;
|
|
1302
|
+
repo?: string;
|
|
1303
|
+
}
|
|
1304
|
+
interface GitRunner {
|
|
1305
|
+
log(args: {
|
|
1306
|
+
from: string;
|
|
1307
|
+
to: string;
|
|
1308
|
+
cwd: string;
|
|
1309
|
+
}): Promise<RawCommit[]>;
|
|
1310
|
+
describeLatestTag(cwd: string): Promise<string | null>;
|
|
1311
|
+
verifyRef(ref: string, cwd: string): Promise<boolean>;
|
|
1312
|
+
remoteUrl(cwd: string): Promise<string | null>;
|
|
1313
|
+
}
|
|
1314
|
+
declare const SECTION_ORDER: readonly ["breaking", "feat", "fix", "perf", "docs", "ci", "release", "other"];
|
|
1315
|
+
declare const defaultGitRunner: GitRunner;
|
|
1316
|
+
declare function parseRemoteUrl(url: string | null): string | null;
|
|
1317
|
+
declare function parseCommit(raw: RawCommit): ParsedCommit;
|
|
1318
|
+
declare function generateChangelog(opts?: GenerateOptions, runner?: GitRunner): Promise<GeneratedChangelog>;
|
|
1319
|
+
|
|
1320
|
+
declare function renderMarkdown(g: GeneratedChangelog): string;
|
|
1321
|
+
|
|
1322
|
+
declare function renderJson(g: GeneratedChangelog): string;
|
|
1323
|
+
|
|
1324
|
+
declare function renderPrompt(g: GeneratedChangelog): string;
|
|
1325
|
+
|
|
1326
|
+
declare const PLAY_STORE_LIMIT = 500;
|
|
1327
|
+
declare const PLACEHOLDER_TEXT = "[needs translation \u2014 pass --ai once v0.9.63 ships, or paste the prompt emitted by --format prompt]";
|
|
1328
|
+
type PlayStoreFormat = "md" | "json" | "prompt";
|
|
1329
|
+
interface LocaleEntry {
|
|
1330
|
+
language: string;
|
|
1331
|
+
text: string;
|
|
1332
|
+
chars: number;
|
|
1333
|
+
limit: number;
|
|
1334
|
+
status: "ok" | "over" | "placeholder" | "empty";
|
|
1335
|
+
}
|
|
1336
|
+
interface LocaleBundle {
|
|
1337
|
+
from: string;
|
|
1338
|
+
to: string;
|
|
1339
|
+
limit: number;
|
|
1340
|
+
sourceLanguage: string;
|
|
1341
|
+
locales: LocaleEntry[];
|
|
1342
|
+
overflows: string[];
|
|
1343
|
+
}
|
|
1344
|
+
interface PlayStoreRenderOptions {
|
|
1345
|
+
locales: string[];
|
|
1346
|
+
format: PlayStoreFormat;
|
|
1347
|
+
sourceLanguage?: string;
|
|
1348
|
+
}
|
|
1349
|
+
declare function buildLocaleBundle(g: GeneratedChangelog, opts: PlayStoreRenderOptions): LocaleBundle;
|
|
1350
|
+
declare function renderPlayStoreMd(bundle: LocaleBundle): string;
|
|
1351
|
+
declare function renderPlayStoreJson(bundle: LocaleBundle): string;
|
|
1352
|
+
declare function renderPlayStorePrompt(bundle: LocaleBundle, g: GeneratedChangelog): string;
|
|
1353
|
+
declare function renderPlayStore(g: GeneratedChangelog, opts: PlayStoreRenderOptions): {
|
|
1354
|
+
output: string;
|
|
1355
|
+
bundle: LocaleBundle;
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
type Renderer = (g: GeneratedChangelog) => string;
|
|
1359
|
+
declare const RENDERERS: Record<OutputMode, Renderer>;
|
|
1360
|
+
|
|
1361
|
+
interface ResolveLocalesOptions {
|
|
1362
|
+
client?: PlayApiClient;
|
|
1363
|
+
packageName?: string;
|
|
1364
|
+
}
|
|
1365
|
+
declare function resolveLocales(input: string, options?: ResolveLocalesOptions): Promise<string[]>;
|
|
1366
|
+
|
|
1258
1367
|
interface RtdnStatus {
|
|
1259
1368
|
topicName: string | null;
|
|
1260
1369
|
enabled: boolean;
|
|
@@ -1300,4 +1409,4 @@ declare function decodeNotification(base64Payload: string): DecodedNotification;
|
|
|
1300
1409
|
*/
|
|
1301
1410
|
declare function formatNotification(notification: DecodedNotification): Record<string, unknown>;
|
|
1302
1411
|
|
|
1303
|
-
export { ApiError, type AppInfo, type AppStatus, type AuditEntry, type BatchSyncResult, type BundleAnalysis, type BundleComparison, type BundleEntry, type BundleSizeCheckResult, type BundleSizeConfig, type ChangelogEntry, type CommandContext, ConfigError, type CreateEnterpriseAppParams, DEFAULT_LIMITS, DEFAULT_PREFLIGHT_CONFIG, type DecodedNotification, type DiffToken, type DiscoverPluginsOptions, type DryRunPublishResult, type DryRunResult, type DryRunUploadResult, type ExportImagesOptions, type ExportImagesSummary, type FastlaneDetection, type FastlaneLane, type FetchChangelogOptions, type FieldLintResult, type FileValidationResult, type FindingSeverity, GOOGLE_PLAY_LANGUAGES, type GetAppStatusOptions, type GitNotesOptions, type GitReleaseNotes, GpcError, type ImageValidationResult, type InitOptions, type InitResult, type InternalSharingUploadResult, type ListIapOptions, type ListSubscriptionsOptions, type ListUsersOptions, type ListVoidedOptions, type ListingDiff, type ListingFieldLimits, type ListingLintResult, type ListingsResult, type LoadedPlugin, type MigrationResult, NetworkError, type OneTimeProductDiff, PERMISSION_PROPAGATION_WARNING, type ParsedManifest, type ParsedMonth, PluginManager, type PreflightConfig, type PreflightFinding, type PreflightOptions, type PreflightResult, type PreflightScanner, type PublishOptions, type PublishResult, type PushResult, type QuotaUsage, type ReleaseDiff, type ReleaseNotesValidation, type ReleaseStatusResult, type ReviewAnalysis, type ReviewExportOptions, type ReviewsFilterOptions, type RtdnStatus, SENSITIVE_ARG_KEYS, SENSITIVE_KEYS, SEVERITY_ORDER, type ScaffoldOptions, type ScaffoldResult, type Spinner, type StatusDiff, type StatusRelease, type StatusReviews, type StatusVitalMetric, type SubscriptionAnalytics, type SubscriptionDiff, type SyncResult, type ThresholdResult, type TrainConfig, type TrainState, type UploadResult, type ValidateCheck, type ValidateOptions, type ValidateResult, type VersionVitalsComparison, type VersionVitalsRow, type VitalsOverview, type VitalsQueryOptions, type VitalsTrendComparison, type WatchOptions, type WatchVitalsOptions, type WebhookPayload, abortTrain, acknowledgeProductPurchase, activateBasePlan, activateOffer, addRecoveryTargeting, addTesters, advanceTrain, analyzeBundle, analyzeRemoteListings, analyzeReviews, batchGetOrders, batchSyncInAppProducts, cancelRecoveryAction, cancelSubscriptionPurchase, cancelSubscriptionV2, checkBundleSize, checkThreshold, clearAuditLog, compareBundles, compareVersionVitals, compareVitalsTrend, computeStatusDiff, consumeProductPurchase, convertRegionPrices, createAuditEntry, createDeviceTier, createEnterpriseApp, createExternalTransaction, createGrant, createInAppProduct, createOffer, createOneTimeOffer, createOneTimeProduct, createRecoveryAction, createSpinner, createSubscription, createTrack, deactivateBasePlan, deactivateOffer, decodeNotification, deferSubscriptionPurchase, deferSubscriptionV2, deleteBasePlan, deleteGrant, deleteImage, deleteInAppProduct, deleteListing, deleteOffer, deleteOneTimeOffer, deleteOneTimeProduct, deleteSubscription, deployRecoveryAction, detectFastlane, detectOutputFormat, diffListings, diffListingsCommand, diffListingsEnhanced, diffOneTimeProduct, diffReleases, diffSubscription, discoverPlugins, downloadGeneratedApk, downloadReport, exportImages, exportReviews, fetchChangelog, fetchReleaseNotes, formatChangelogEntry, formatCustomPayload, formatDiscordPayload, formatJunit, formatNotification, formatOutput, formatSlackPayload, formatStatusDiff, formatStatusSummary, formatStatusTable, formatWordDiff, generateMigrationPlan, generateNotesFromGit, getAllScannerNames, getAppInfo, getAppStatus, getCountryAvailability, getDeviceTier, getExternalTransaction, getInAppProduct, getListings, getOffer, getOneTimeOffer, getOneTimeProduct, getOrderDetails, getProductPurchase, getProductPurchaseV2, getQuotaUsage, getReleasesStatus, getReview, getRtdnStatus, getSubscription, getSubscriptionAnalytics, getSubscriptionPurchase, getTrainStatus, getUser, getVitalsAnomalies, getVitalsAnr, getVitalsBattery, getVitalsCrashes, getVitalsErrorCount, getVitalsLmk, getVitalsMemory, getVitalsOverview, getVitalsRendering, getVitalsStartup, importDataSafety, importTestersFromCsv, initAudit, initProject, inviteUser, isFinancialReportType, isStatsReportType, isValidBcp47, isValidReportType, isValidStatsDimension, lintListing, lintListings, lintLocalListings, listAchievements, listAuditEvents, listDeviceTiers, listEvents, listGeneratedApks, listGrants, listImages, listInAppProducts, listLeaderboards, listOffers, listOneTimeOffers, listOneTimeProducts, listRecoveryActions, listReports, listReviews, listSubscriptions, listTesters, listTracks, listUsers, listVoidedPurchases, loadPreflightConfig, loadStatusCache, maybePaginate, migratePrices, parseAppfile, parseFastfile, parseGrantArg, parseMonth, pauseTrain, promoteRelease, publish, publishEnterpriseApp, pullListings, pushListings, readListingsFromDir, readReleaseNotesFromDir, redactAuditArgs, redactSensitive, refundExternalTransaction, refundOrder, relativeTime, removeTesters, removeUser, replyToReview, revokeSubscriptionPurchase, runPreflight, runWatchLoop, safePath, safePathWithin, saveStatusCache, scaffoldPlugin, searchAuditEvents, searchVitalsErrors, sendNotification, sendWebhook, sortResults, startTrain, statusHasBreach, syncInAppProducts, topFiles, trackBreachState, updateAppDetails, updateDataSafety, updateGrant, updateInAppProduct, updateListing, updateOffer, updateOneTimeOffer, updateOneTimeProduct, updateRollout, updateSubscription, updateTrackConfig, updateUser, uploadExternallyHosted, uploadImage, uploadInternalSharing, uploadRelease, validateImage, validateLanguageCode, validatePackageName, validatePreSubmission, validateReleaseNotes, validateSku, validateTrackName, validateUploadFile, validateVersionCode, watchVitalsWithAutoHalt, wordDiff, writeAuditLog, writeListingsToDir, writeMigrationOutput };
|
|
1412
|
+
export { ApiError, type AppInfo, type AppStatus, type AuditEntry, type BatchSyncResult, type BundleAnalysis, type BundleComparison, type BundleEntry, type BundleSizeCheckResult, type BundleSizeConfig, type ChangelogEntry, type CommandContext, type CommitCluster, ConfigError, type CreateEnterpriseAppParams, DEFAULT_LIMITS, DEFAULT_PREFLIGHT_CONFIG, type DecodedNotification, type DiffToken, type DiscoverPluginsOptions, type DryRunPublishResult, type DryRunResult, type DryRunUploadResult, type ExportImagesOptions, type ExportImagesSummary, type FastlaneDetection, type FastlaneLane, type FetchChangelogOptions, type FieldLintResult, type FileValidationResult, type FindingSeverity, GOOGLE_PLAY_LANGUAGES, type GenerateOptions, type GeneratedChangelog, type GetAppStatusOptions, type GitNotesOptions, type GitReleaseNotes, type GitRunner, GpcError, type ImageValidationResult, type InitOptions, type InitResult, type InternalSharingUploadResult, type ListIapOptions, type ListSubscriptionsOptions, type ListUsersOptions, type ListVoidedOptions, type ListingDiff, type ListingFieldLimits, type ListingLintResult, type ListingsResult, type LoadedPlugin, type LocaleBundle, type LocaleEntry, type MigrationResult, NetworkError, type OneTimeProductDiff, type OutputMode, PERMISSION_PROPAGATION_WARNING, PLACEHOLDER_TEXT, PLAY_STORE_LIMIT, type ParsedCommit, type ParsedManifest, type ParsedMonth, type PlayStoreFormat, type PlayStoreRenderOptions, PluginManager, type PreflightConfig, type PreflightFinding, type PreflightOptions, type PreflightResult, type PreflightScanner, type PublishOptions, type PublishResult, type PushResult, type QuotaUsage, RENDERERS, type RawCommit, type ReleaseDiff, type ReleaseNotesValidation, type ReleaseStatusResult, type Renderer, type ResolveLocalesOptions, type ReviewAnalysis, type ReviewExportOptions, type ReviewsFilterOptions, type RtdnStatus, SECTION_ORDER, SENSITIVE_ARG_KEYS, SENSITIVE_KEYS, SEVERITY_ORDER, type ScaffoldOptions, type ScaffoldResult, type Spinner, type StatusDiff, type StatusRelease, type StatusReviews, type StatusVitalMetric, type SubscriptionAnalytics, type SubscriptionDiff, type SyncResult, type ThresholdResult, type TrainConfig, type TrainState, type UploadResult, type ValidateCheck, type ValidateOptions, type ValidateResult, type VersionVitalsComparison, type VersionVitalsRow, type VitalsOverview, type VitalsQueryOptions, type VitalsTrendComparison, type WatchOptions, type WatchVitalsOptions, type WebhookPayload, abortTrain, acknowledgeProductPurchase, activateBasePlan, activateOffer, addRecoveryTargeting, addTesters, advanceTrain, analyzeBundle, analyzeRemoteListings, analyzeReviews, batchGetOrders, batchSyncInAppProducts, buildLocaleBundle, cancelRecoveryAction, cancelSubscriptionPurchase, cancelSubscriptionV2, checkBundleSize, checkThreshold, clearAuditLog, compareBundles, compareVersionVitals, compareVitalsTrend, computeStatusDiff, consumeProductPurchase, convertRegionPrices, createAuditEntry, createDeviceTier, createEnterpriseApp, createExternalTransaction, createGrant, createInAppProduct, createOffer, createOneTimeOffer, createOneTimeProduct, createRecoveryAction, createSpinner, createSubscription, createTrack, deactivateBasePlan, deactivateOffer, decodeNotification, defaultGitRunner, deferSubscriptionPurchase, deferSubscriptionV2, deleteBasePlan, deleteGrant, deleteImage, deleteInAppProduct, deleteListing, deleteOffer, deleteOneTimeOffer, deleteOneTimeProduct, deleteSubscription, deployRecoveryAction, detectFastlane, detectOutputFormat, diffListings, diffListingsCommand, diffListingsEnhanced, diffOneTimeProduct, diffReleases, diffSubscription, discoverPlugins, downloadGeneratedApk, downloadReport, exportImages, exportReviews, fetchChangelog, fetchReleaseNotes, formatChangelogEntry, formatCustomPayload, formatDiscordPayload, formatJunit, formatNotification, formatOutput, formatSlackPayload, formatStatusDiff, formatStatusSummary, formatStatusTable, formatWordDiff, generateChangelog, generateMigrationPlan, generateNotesFromGit, getAllScannerNames, getAppInfo, getAppStatus, getCountryAvailability, getDeviceTier, getExternalTransaction, getInAppProduct, getListings, getOffer, getOneTimeOffer, getOneTimeProduct, getOrderDetails, getProductPurchase, getProductPurchaseV2, getQuotaUsage, getReleasesStatus, getReview, getRtdnStatus, getSubscription, getSubscriptionAnalytics, getSubscriptionPurchase, getTrainStatus, getUser, getVitalsAnomalies, getVitalsAnr, getVitalsBattery, getVitalsCrashes, getVitalsErrorCount, getVitalsLmk, getVitalsMemory, getVitalsOverview, getVitalsRendering, getVitalsStartup, importDataSafety, importTestersFromCsv, initAudit, initProject, inviteUser, isFinancialReportType, isStatsReportType, isValidBcp47, isValidReportType, isValidStatsDimension, lintListing, lintListings, lintLocalListings, listAchievements, listAuditEvents, listDeviceTiers, listEvents, listGeneratedApks, listGrants, listImages, listInAppProducts, listLeaderboards, listOffers, listOneTimeOffers, listOneTimeProducts, listRecoveryActions, listReports, listReviews, listSubscriptions, listTesters, listTracks, listUsers, listVoidedPurchases, loadPreflightConfig, loadStatusCache, maybePaginate, migratePrices, parseAppfile, parseCommit, parseFastfile, parseGrantArg, parseMonth, parseRemoteUrl, pauseTrain, promoteRelease, publish, publishEnterpriseApp, pullListings, pushListings, readListingsFromDir, readReleaseNotesFromDir, redactAuditArgs, redactSensitive, refundExternalTransaction, refundOrder, relativeTime, removeTesters, removeUser, renderJson, renderMarkdown, renderPlayStore, renderPlayStoreJson, renderPlayStoreMd, renderPlayStorePrompt, renderPrompt, replyToReview, resolveLocales, revokeSubscriptionPurchase, runPreflight, runWatchLoop, safePath, safePathWithin, saveStatusCache, scaffoldPlugin, searchAuditEvents, searchVitalsErrors, sendNotification, sendWebhook, sortResults, startTrain, statusHasBreach, syncInAppProducts, topFiles, trackBreachState, updateAppDetails, updateDataSafety, updateGrant, updateInAppProduct, updateListing, updateOffer, updateOneTimeOffer, updateOneTimeProduct, updateRollout, updateSubscription, updateTrackConfig, updateUser, uploadExternallyHosted, uploadImage, uploadInternalSharing, uploadRelease, validateImage, validateLanguageCode, validatePackageName, validatePreSubmission, validateReleaseNotes, validateSku, validateTrackName, validateUploadFile, validateVersionCode, watchVitalsWithAutoHalt, wordDiff, writeAuditLog, writeListingsToDir, writeMigrationOutput };
|