prpm 2.1.10 → 2.1.12

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.
Files changed (2) hide show
  1. package/dist/index.js +186 -42
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -15710,6 +15710,7 @@ var init_prompts = __esm({
15710
15710
  var collections_exports = {};
15711
15711
  __export(collections_exports, {
15712
15712
  createCollectionsCommand: () => createCollectionsCommand,
15713
+ handleCollectionDeprecate: () => handleCollectionDeprecate,
15713
15714
  handleCollectionInfo: () => handleCollectionInfo,
15714
15715
  handleCollectionInstall: () => handleCollectionInstall,
15715
15716
  handleCollectionPublish: () => handleCollectionPublish,
@@ -16089,6 +16090,72 @@ async function handleCollectionPublish(manifestPath = "./collection.json") {
16089
16090
  await telemetry.shutdown();
16090
16091
  }
16091
16092
  }
16093
+ async function handleCollectionDeprecate(collectionSpec, options) {
16094
+ const startTime = Date.now();
16095
+ try {
16096
+ const cleanSpec = collectionSpec.replace(/^collections\//, "").trim();
16097
+ const name_slug = cleanSpec.split("@")[0];
16098
+ if (!name_slug || name_slug.length === 0) {
16099
+ throw new CLIError("Collection name cannot be empty", 1);
16100
+ }
16101
+ if (!/^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$/.test(name_slug)) {
16102
+ throw new CLIError(
16103
+ `Invalid collection name "${name_slug}". Must be lowercase alphanumeric with hyphens (e.g., "my-collection")`,
16104
+ 1
16105
+ );
16106
+ }
16107
+ const config = await getConfig();
16108
+ if (!config.token) {
16109
+ console.error("\n\u274C Authentication required. Run `prpm login` first.\n");
16110
+ throw new CLIError("Authentication required. Run `prpm login` first.", 1);
16111
+ }
16112
+ const client = (0, import_registry_client4.getRegistryClient)(config);
16113
+ const action = options.undo ? "Undeprecating" : "Deprecating";
16114
+ console.log(`\u26A0\uFE0F ${action} collection: ${name_slug}...
16115
+ `);
16116
+ const result = await client.deprecateCollection(name_slug, {
16117
+ deprecated: !options.undo,
16118
+ reason: options.reason
16119
+ });
16120
+ if (result.success) {
16121
+ console.log(`\u2705 ${result.message}`);
16122
+ console.log("");
16123
+ if (result.deprecated && result.reason) {
16124
+ console.log(` Reason: ${result.reason}`);
16125
+ console.log("");
16126
+ }
16127
+ if (result.deprecated) {
16128
+ console.log("\u{1F4A1} To undo: prpm collections deprecate --undo " + name_slug);
16129
+ }
16130
+ } else {
16131
+ throw new Error("Failed to update deprecation status");
16132
+ }
16133
+ await telemetry.track({
16134
+ command: "collections:deprecate",
16135
+ success: true,
16136
+ duration: Date.now() - startTime,
16137
+ data: {
16138
+ name_slug,
16139
+ deprecated: result.deprecated,
16140
+ reason: result.reason
16141
+ }
16142
+ });
16143
+ } catch (error) {
16144
+ const errorMessage = error instanceof Error ? error.message : String(error);
16145
+ console.error(`
16146
+ \u274C Failed to deprecate collection: ${errorMessage}
16147
+ `);
16148
+ await telemetry.track({
16149
+ command: "collections:deprecate",
16150
+ success: false,
16151
+ error: errorMessage,
16152
+ duration: Date.now() - startTime
16153
+ });
16154
+ throw new CLIError(`Failed to deprecate collection: ${errorMessage}`, 1);
16155
+ } finally {
16156
+ await telemetry.shutdown();
16157
+ }
16158
+ }
16092
16159
  async function handleCollectionInstall(collectionSpec, options) {
16093
16160
  const startTime = Date.now();
16094
16161
  let packagesInstalled = 0;
@@ -16233,6 +16300,9 @@ function createCollectionsCommand() {
16233
16300
  command.command("publish [manifest]").description("Publish a collection from collection.json").action(async (manifest) => {
16234
16301
  await handleCollectionPublish(manifest);
16235
16302
  });
16303
+ command.command("deprecate <collection>").description("Deprecate a collection (owner only)").option("--reason <reason>", "Reason for deprecation").option("--undo", "Remove deprecation status").action(async (collection, options) => {
16304
+ await handleCollectionDeprecate(collection, options);
16305
+ });
16236
16306
  return command;
16237
16307
  }
16238
16308
  var import_commander10, import_registry_client4;
@@ -19270,7 +19340,7 @@ Include examples if helpful.
19270
19340
 
19271
19341
  // src/index.ts
19272
19342
  init_cjs_shims();
19273
- var import_commander29 = require("commander");
19343
+ var import_commander30 = require("commander");
19274
19344
  var import_fs21 = require("fs");
19275
19345
  var import_path25 = require("path");
19276
19346
 
@@ -22319,9 +22389,82 @@ function createPublishCommand() {
22319
22389
  });
22320
22390
  }
22321
22391
 
22322
- // src/commands/login.ts
22392
+ // src/commands/deprecate.ts
22323
22393
  init_cjs_shims();
22324
22394
  var import_commander14 = require("commander");
22395
+ var import_registry_client7 = require("@pr-pm/registry-client");
22396
+ init_user_config();
22397
+ init_telemetry();
22398
+ init_errors();
22399
+ async function handleDeprecate(packageName, options) {
22400
+ const startTime = Date.now();
22401
+ let success = false;
22402
+ let error;
22403
+ let deprecated;
22404
+ let reason;
22405
+ try {
22406
+ const config = await getConfig();
22407
+ if (!config.token) {
22408
+ throw new CLIError("\u274C Authentication required. Run `prpm login` first.", 1);
22409
+ }
22410
+ const client = (0, import_registry_client7.getRegistryClient)(config);
22411
+ const action = options.undo ? "Undeprecating" : "Deprecating";
22412
+ console.log(`\u26A0\uFE0F ${action} package: ${packageName}...
22413
+ `);
22414
+ const result = await client.deprecatePackage(packageName, {
22415
+ deprecated: !options.undo,
22416
+ reason: options.reason
22417
+ });
22418
+ deprecated = result.deprecated;
22419
+ reason = result.reason;
22420
+ if (result.success) {
22421
+ console.log(`\u2705 ${result.message}`);
22422
+ console.log("");
22423
+ if (result.deprecated && result.reason) {
22424
+ console.log(` Reason: ${result.reason}`);
22425
+ console.log("");
22426
+ }
22427
+ if (result.deprecated) {
22428
+ console.log("\u{1F4A1} To undo: prpm deprecate --undo " + packageName);
22429
+ }
22430
+ } else {
22431
+ throw new Error("Failed to update deprecation status");
22432
+ }
22433
+ success = true;
22434
+ } catch (err) {
22435
+ if (err instanceof CLIError) {
22436
+ error = err.message;
22437
+ throw err;
22438
+ }
22439
+ error = err instanceof Error ? err.message : String(err);
22440
+ throw new CLIError(`\u274C Failed to update deprecation status: ${error}`, 1);
22441
+ } finally {
22442
+ await telemetry.track({
22443
+ command: "deprecate",
22444
+ success,
22445
+ error,
22446
+ duration: Date.now() - startTime,
22447
+ data: {
22448
+ packageName,
22449
+ deprecated,
22450
+ reason,
22451
+ undo: options.undo
22452
+ }
22453
+ });
22454
+ await telemetry.shutdown();
22455
+ }
22456
+ }
22457
+ function createDeprecateCommand() {
22458
+ const command = new import_commander14.Command("deprecate");
22459
+ command.description("Deprecate a package (owner only)").argument("<package>", "Package name to deprecate").option("--reason <reason>", "Reason for deprecation").option("--undo", "Remove deprecation status").action(async (packageName, options) => {
22460
+ await handleDeprecate(packageName, options);
22461
+ });
22462
+ return command;
22463
+ }
22464
+
22465
+ // src/commands/login.ts
22466
+ init_cjs_shims();
22467
+ var import_commander15 = require("commander");
22325
22468
  var jwt = __toESM(require("jsonwebtoken"));
22326
22469
  init_telemetry();
22327
22470
  init_user_config();
@@ -22488,16 +22631,16 @@ async function handleLogin(options) {
22488
22631
  }
22489
22632
  }
22490
22633
  function createLoginCommand() {
22491
- return new import_commander14.Command("login").description("Login to the PRMP registry").option("--token <token>", "Login with a personal access token").action(async (options) => {
22634
+ return new import_commander15.Command("login").description("Login to the PRMP registry").option("--token <token>", "Login with a personal access token").action(async (options) => {
22492
22635
  await handleLogin(options);
22493
22636
  });
22494
22637
  }
22495
22638
 
22496
22639
  // src/commands/whoami.ts
22497
22640
  init_cjs_shims();
22498
- var import_commander15 = require("commander");
22641
+ var import_commander16 = require("commander");
22499
22642
  init_user_config();
22500
- var import_registry_client7 = require("@pr-pm/registry-client");
22643
+ var import_registry_client8 = require("@pr-pm/registry-client");
22501
22644
  init_telemetry();
22502
22645
  init_errors();
22503
22646
  async function handleWhoami() {
@@ -22513,7 +22656,7 @@ async function handleWhoami() {
22513
22656
  return;
22514
22657
  }
22515
22658
  try {
22516
- const client = (0, import_registry_client7.getRegistryClient)(config);
22659
+ const client = (0, import_registry_client8.getRegistryClient)(config);
22517
22660
  const userProfile = await client.getUserProfile(config.username);
22518
22661
  console.log(`
22519
22662
  \u{1F464} ${userProfile.username}${userProfile.verified_author ? " \u2713" : ""}`);
@@ -22553,7 +22696,7 @@ async function handleWhoami() {
22553
22696
  }
22554
22697
  }
22555
22698
  function createWhoamiCommand() {
22556
- return new import_commander15.Command("whoami").description("Show current logged-in user").action(async () => {
22699
+ return new import_commander16.Command("whoami").description("Show current logged-in user").action(async () => {
22557
22700
  await handleWhoami();
22558
22701
  });
22559
22702
  }
@@ -22563,8 +22706,8 @@ init_collections();
22563
22706
 
22564
22707
  // src/commands/outdated.ts
22565
22708
  init_cjs_shims();
22566
- var import_commander16 = require("commander");
22567
- var import_registry_client8 = require("@pr-pm/registry-client");
22709
+ var import_commander17 = require("commander");
22710
+ var import_registry_client9 = require("@pr-pm/registry-client");
22568
22711
  init_user_config();
22569
22712
  init_lockfile();
22570
22713
  init_telemetry();
@@ -22576,7 +22719,7 @@ async function handleOutdated() {
22576
22719
  try {
22577
22720
  console.log("\u{1F50D} Checking for package updates...\n");
22578
22721
  const config = await getConfig();
22579
- const client = (0, import_registry_client8.getRegistryClient)(config);
22722
+ const client = (0, import_registry_client9.getRegistryClient)(config);
22580
22723
  const installedPackages = await listPackages();
22581
22724
  if (installedPackages.length === 0) {
22582
22725
  console.log("No packages installed.");
@@ -22666,15 +22809,15 @@ function getUpdateType(current, latest) {
22666
22809
  return "patch";
22667
22810
  }
22668
22811
  function createOutdatedCommand() {
22669
- return new import_commander16.Command("outdated").description("Check for package updates").action(async () => {
22812
+ return new import_commander17.Command("outdated").description("Check for package updates").action(async () => {
22670
22813
  await handleOutdated();
22671
22814
  });
22672
22815
  }
22673
22816
 
22674
22817
  // src/commands/update.ts
22675
22818
  init_cjs_shims();
22676
- var import_commander17 = require("commander");
22677
- var import_registry_client9 = require("@pr-pm/registry-client");
22819
+ var import_commander18 = require("commander");
22820
+ var import_registry_client10 = require("@pr-pm/registry-client");
22678
22821
  init_user_config();
22679
22822
  init_lockfile();
22680
22823
  init_install();
@@ -22687,7 +22830,7 @@ async function handleUpdate(packageName, options = {}) {
22687
22830
  let updatedCount = 0;
22688
22831
  try {
22689
22832
  const config = await getConfig();
22690
- const client = (0, import_registry_client9.getRegistryClient)(config);
22833
+ const client = (0, import_registry_client10.getRegistryClient)(config);
22691
22834
  const installedPackages = await listPackages();
22692
22835
  if (installedPackages.length === 0) {
22693
22836
  console.log("No packages installed.");
@@ -22779,7 +22922,7 @@ function getUpdateType2(current, latest) {
22779
22922
  return "patch";
22780
22923
  }
22781
22924
  function createUpdateCommand() {
22782
- return new import_commander17.Command("update").description(
22925
+ return new import_commander18.Command("update").description(
22783
22926
  "Update packages to latest compatible versions (minor/patch only)"
22784
22927
  ).argument("[package]", "Specific package to update (optional)").option("--all", "Update all packages").action(async (packageName, options) => {
22785
22928
  await handleUpdate(packageName, options);
@@ -22788,8 +22931,8 @@ function createUpdateCommand() {
22788
22931
 
22789
22932
  // src/commands/upgrade.ts
22790
22933
  init_cjs_shims();
22791
- var import_commander18 = require("commander");
22792
- var import_registry_client10 = require("@pr-pm/registry-client");
22934
+ var import_commander19 = require("commander");
22935
+ var import_registry_client11 = require("@pr-pm/registry-client");
22793
22936
  init_user_config();
22794
22937
  init_lockfile();
22795
22938
  init_install();
@@ -22803,7 +22946,7 @@ async function handleUpgrade(packageName, options = {}) {
22803
22946
  let upgradedCount = 0;
22804
22947
  try {
22805
22948
  const config = await getConfig();
22806
- const client = (0, import_registry_client10.getRegistryClient)(config);
22949
+ const client = (0, import_registry_client11.getRegistryClient)(config);
22807
22950
  const installedPackages = await listPackages();
22808
22951
  if (installedPackages.length === 0) {
22809
22952
  console.log("No packages installed.");
@@ -22970,7 +23113,7 @@ function getUpdateType3(current, latest) {
22970
23113
  return "patch";
22971
23114
  }
22972
23115
  function createUpgradeCommand() {
22973
- return new import_commander18.Command("upgrade").description(
23116
+ return new import_commander19.Command("upgrade").description(
22974
23117
  "Upgrade packages to latest versions (including major updates)"
22975
23118
  ).argument("[package]", "Specific package to upgrade (optional)").option("--all", "Upgrade all packages").option("--force", "Skip warning for major version upgrades").action(
22976
23119
  async (packageName, options) => {
@@ -22981,7 +23124,7 @@ function createUpgradeCommand() {
22981
23124
 
22982
23125
  // src/commands/schema.ts
22983
23126
  init_cjs_shims();
22984
- var import_commander19 = require("commander");
23127
+ var import_commander20 = require("commander");
22985
23128
  init_errors();
22986
23129
  async function handleSchema() {
22987
23130
  try {
@@ -22998,7 +23141,7 @@ async function handleSchema() {
22998
23141
  }
22999
23142
  }
23000
23143
  function createSchemaCommand() {
23001
- const command = new import_commander19.Command("schema");
23144
+ const command = new import_commander20.Command("schema");
23002
23145
  command.description("Display the PRPM manifest JSON schema").action(async () => {
23003
23146
  await handleSchema();
23004
23147
  });
@@ -23010,7 +23153,7 @@ init_init();
23010
23153
 
23011
23154
  // src/commands/config.ts
23012
23155
  init_cjs_shims();
23013
- var import_commander20 = require("commander");
23156
+ var import_commander21 = require("commander");
23014
23157
  init_user_config();
23015
23158
  init_errors();
23016
23159
  async function handleConfigGet(key) {
@@ -23101,7 +23244,7 @@ async function handleConfigDelete(key) {
23101
23244
  }
23102
23245
  }
23103
23246
  function createConfigCommand() {
23104
- const command = new import_commander20.Command("config").description("Manage CLI configuration");
23247
+ const command = new import_commander21.Command("config").description("Manage CLI configuration");
23105
23248
  command.command("list").alias("ls").description("List all configuration values").action(async () => {
23106
23249
  await handleConfigList();
23107
23250
  });
@@ -23122,9 +23265,9 @@ function createConfigCommand() {
23122
23265
 
23123
23266
  // src/commands/catalog.ts
23124
23267
  init_cjs_shims();
23125
- var import_commander21 = require("commander");
23268
+ var import_commander22 = require("commander");
23126
23269
  function createCatalogCommand() {
23127
- return new import_commander21.Command("catalog").description(
23270
+ return new import_commander22.Command("catalog").description(
23128
23271
  "[DEPRECATED] Use 'prpm init --scan' instead. Discover and catalog packages."
23129
23272
  ).argument("[directories...]", "Directories to scan for packages").option("-o, --output <path>", "Output path for prpm.json").option("-a, --append", "Append to existing prpm.json").option("--dry-run", "Show what would be cataloged without making changes").action(
23130
23273
  async (directories, options) => {
@@ -23163,7 +23306,7 @@ function createCatalogCommand() {
23163
23306
 
23164
23307
  // src/commands/playground.ts
23165
23308
  init_cjs_shims();
23166
- var import_commander22 = require("commander");
23309
+ var import_commander23 = require("commander");
23167
23310
  init_user_config();
23168
23311
  init_telemetry();
23169
23312
  var readline5 = __toESM(require("readline"));
@@ -23603,7 +23746,7 @@ async function handlePlayground(options) {
23603
23746
  }
23604
23747
  }
23605
23748
  function createPlaygroundCommand() {
23606
- const command = new import_commander22.Command("playground");
23749
+ const command = new import_commander23.Command("playground");
23607
23750
  command.description("Test a package or custom prompt with AI models in the playground").option("-p, --package <name>", "Package name to test").option("--input <text>", "Input text to send to the model (omit for interactive mode)").option(
23608
23751
  "-m, --model <model>",
23609
23752
  "AI model to use (sonnet, opus, gpt-4o, gpt-4o-mini, gpt-4-turbo)",
@@ -23672,7 +23815,7 @@ Note: Playground usage requires credits. Run 'prpm credits' to check balance.
23672
23815
 
23673
23816
  // src/commands/credits.ts
23674
23817
  init_cjs_shims();
23675
- var import_commander23 = require("commander");
23818
+ var import_commander24 = require("commander");
23676
23819
  init_user_config();
23677
23820
  init_telemetry();
23678
23821
  init_errors();
@@ -23799,7 +23942,7 @@ async function handleCredits(options) {
23799
23942
  }
23800
23943
  }
23801
23944
  function createCreditsCommand() {
23802
- const command = new import_commander23.Command("credits");
23945
+ const command = new import_commander24.Command("credits");
23803
23946
  command.description("Check playground credits balance and transaction history").option("-h, --history", "Show transaction history instead of balance", false).option("-l, --limit <number>", "Number of transactions to show in history", "10").addHelpText(
23804
23947
  "after",
23805
23948
  `
@@ -23834,7 +23977,7 @@ Get more credits:
23834
23977
 
23835
23978
  // src/commands/subscribe.ts
23836
23979
  init_cjs_shims();
23837
- var import_commander24 = require("commander");
23980
+ var import_commander25 = require("commander");
23838
23981
  init_user_config();
23839
23982
  init_telemetry();
23840
23983
  var import_child_process2 = require("child_process");
@@ -23993,7 +24136,7 @@ async function handleSubscribe() {
23993
24136
  }
23994
24137
  }
23995
24138
  function createSubscribeCommand() {
23996
- const command = new import_commander24.Command("subscribe");
24139
+ const command = new import_commander25.Command("subscribe");
23997
24140
  command.description("Subscribe to PRPM+ for monthly playground credits and benefits").addHelpText(
23998
24141
  "after",
23999
24142
  `
@@ -24034,7 +24177,7 @@ Note: You can cancel anytime from https://prpm.dev/settings/billing
24034
24177
 
24035
24178
  // src/commands/buy-credits.ts
24036
24179
  init_cjs_shims();
24037
- var import_commander25 = require("commander");
24180
+ var import_commander26 = require("commander");
24038
24181
  init_user_config();
24039
24182
  init_telemetry();
24040
24183
  var import_child_process3 = require("child_process");
@@ -24175,7 +24318,7 @@ async function handleBuyCredits(options) {
24175
24318
  }
24176
24319
  }
24177
24320
  function createBuyCreditsCommand() {
24178
- const command = new import_commander25.Command("buy-credits");
24321
+ const command = new import_commander26.Command("buy-credits");
24179
24322
  command.description("Purchase one-time playground credits (never expire)").option(
24180
24323
  "-p, --package <package>",
24181
24324
  "Credit package to purchase (small, medium, large)"
@@ -24228,8 +24371,8 @@ Note: Purchased credits are one-time and never expire, unlike monthly credits.
24228
24371
 
24229
24372
  // src/commands/starred.ts
24230
24373
  init_cjs_shims();
24231
- var import_commander26 = require("commander");
24232
- var import_registry_client11 = require("@pr-pm/registry-client");
24374
+ var import_commander27 = require("commander");
24375
+ var import_registry_client12 = require("@pr-pm/registry-client");
24233
24376
  init_user_config();
24234
24377
  init_telemetry();
24235
24378
  init_errors();
@@ -24242,7 +24385,7 @@ async function handleStarred(options) {
24242
24385
  throw new CLIError("You must be logged in to view starred items. Run `prpm login` first.");
24243
24386
  }
24244
24387
  const registryUrl = config.registryUrl || process.env.PRPM_REGISTRY_URL || "https://registry.prpm.dev";
24245
- const client = (0, import_registry_client11.getRegistryClient)({ registryUrl, token });
24388
+ const client = (0, import_registry_client12.getRegistryClient)({ registryUrl, token });
24246
24389
  const showPackages = options.packages || !options.packages && !options.collections;
24247
24390
  const showCollections = options.collections || !options.packages && !options.collections;
24248
24391
  const limit = options.limit || 100;
@@ -24344,14 +24487,14 @@ Total: ${packages.length + collections.length} starred items`);
24344
24487
  }
24345
24488
  }
24346
24489
  function createStarredCommand() {
24347
- const command = new import_commander26.Command("starred");
24490
+ const command = new import_commander27.Command("starred");
24348
24491
  command.description("List your starred packages and collections").option("--packages", "Show only starred packages").option("--collections", "Show only starred collections").option("--format <format>", "Filter packages by format (cursor, claude, continue, windsurf, etc.)").option("--limit <number>", "Maximum number of items to fetch (default: 100)", (val) => parseInt(val, 10)).action(handleStarred);
24349
24492
  return command;
24350
24493
  }
24351
24494
 
24352
24495
  // src/commands/convert.ts
24353
24496
  init_cjs_shims();
24354
- var import_commander27 = require("commander");
24497
+ var import_commander28 = require("commander");
24355
24498
  var import_promises10 = require("fs/promises");
24356
24499
  var import_path23 = require("path");
24357
24500
  var import_fs19 = require("fs");
@@ -24716,7 +24859,7 @@ async function handleConvert(sourcePath, options) {
24716
24859
  }
24717
24860
  }
24718
24861
  function createConvertCommand() {
24719
- const command = new import_commander27.Command("convert").description("Convert AI prompt files between formats").argument("<source>", "Source file path to convert").option("-t, --to <format>", `Target format (${CLI_SUPPORTED_FORMATS.join(", ")})`).option("-s, --subtype <subtype>", "Target subtype (agent, skill, slash-command, rule, hook, prompt, etc.)").option("-o, --output <path>", "Output path (defaults to format-specific location)").option("-n, --name <name>", 'Custom output filename (without extension, e.g., "my-rule")').option("--hook-mapping <strategy>", "Hook mapping strategy: auto (default), strict, skip", "auto").option("-y, --yes", "Skip confirmation prompts").action(async (source, options) => {
24862
+ const command = new import_commander28.Command("convert").description("Convert AI prompt files between formats").argument("<source>", "Source file path to convert").option("-t, --to <format>", `Target format (${CLI_SUPPORTED_FORMATS.join(", ")})`).option("-s, --subtype <subtype>", "Target subtype (agent, skill, slash-command, rule, hook, prompt, etc.)").option("-o, --output <path>", "Output path (defaults to format-specific location)").option("-n, --name <name>", 'Custom output filename (without extension, e.g., "my-rule")').option("--hook-mapping <strategy>", "Hook mapping strategy: auto (default), strict, skip", "auto").option("-y, --yes", "Skip confirmation prompts").action(async (source, options) => {
24720
24863
  try {
24721
24864
  if (!options.to) {
24722
24865
  throw new CLIError("Target format is required. Use --to <format>");
@@ -24765,7 +24908,7 @@ Valid subtypes: ${validSubtypes.join(", ")}`
24765
24908
 
24766
24909
  // src/commands/export.ts
24767
24910
  init_cjs_shims();
24768
- var import_commander28 = require("commander");
24911
+ var import_commander29 = require("commander");
24769
24912
  var import_fs20 = require("fs");
24770
24913
  var import_path24 = require("path");
24771
24914
  var import_chalk3 = __toESM(require_source());
@@ -24914,7 +25057,7 @@ async function handleExport(options) {
24914
25057
  }
24915
25058
  }
24916
25059
  function createExportCommand() {
24917
- const command = new import_commander28.Command("export");
25060
+ const command = new import_commander29.Command("export");
24918
25061
  command.description("Export installed packages to external tools").option("--to <tool>", "Export target (currently supports: ruler)", "ruler").option("-o, --output <dir>", "Custom output directory").option("-y, --yes", "Skip confirmation prompts").action(async (options) => {
24919
25062
  try {
24920
25063
  if (!options.to) {
@@ -24955,7 +25098,7 @@ function getVersion() {
24955
25098
  return "0.0.0";
24956
25099
  }
24957
25100
  }
24958
- var program = new import_commander29.Command();
25101
+ var program = new import_commander30.Command();
24959
25102
  program.name("prpm").description("Prompt Package Manager - Install and manage prompt-based files").version(getVersion());
24960
25103
  program.addCommand(createInitCommand());
24961
25104
  program.addCommand(createCatalogCommand());
@@ -24966,6 +25109,7 @@ program.addCommand(createInfoCommand());
24966
25109
  program.addCommand(createTrendingCommand());
24967
25110
  program.addCommand(createPopularCommand());
24968
25111
  program.addCommand(createPublishCommand());
25112
+ program.addCommand(createDeprecateCommand());
24969
25113
  program.addCommand(createLoginCommand());
24970
25114
  program.addCommand(createWhoamiCommand());
24971
25115
  program.addCommand(createCollectionsCommand());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prpm",
3
- "version": "2.1.10",
3
+ "version": "2.1.12",
4
4
  "description": "Prompt Package Manager CLI - Install and manage prompt-based files",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -45,9 +45,9 @@
45
45
  "license": "MIT",
46
46
  "dependencies": {
47
47
  "@octokit/rest": "^22.0.0",
48
- "@pr-pm/converters": "^2.1.11",
49
- "@pr-pm/registry-client": "^2.3.10",
50
- "@pr-pm/types": "^2.1.11",
48
+ "@pr-pm/converters": "^2.1.13",
49
+ "@pr-pm/registry-client": "^2.3.12",
50
+ "@pr-pm/types": "^2.1.13",
51
51
  "ajv": "^8.17.1",
52
52
  "ajv-formats": "^3.0.1",
53
53
  "commander": "^11.1.0",