lynxprompt 0.5.6 → 0.6.0

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
@@ -125,12 +125,10 @@ var ApiClient = class {
125
125
  );
126
126
  }
127
127
  async getBlueprint(id) {
128
- if (id.startsWith("usr_")) {
129
- const blueprint = await this.request(`/api/blueprints/${id}`);
130
- const visibility = blueprint.isPublic ? "PUBLIC" : "PRIVATE";
131
- return { blueprint: { ...blueprint, visibility, type: blueprint.tier || "GENERIC" } };
128
+ let apiId = id;
129
+ if (!id.startsWith("bp_") && !id.startsWith("usr_")) {
130
+ apiId = `bp_${id}`;
132
131
  }
133
- const apiId = id.startsWith("bp_") ? id : `bp_${id}`;
134
132
  return this.request(`/api/v1/blueprints/${apiId}`);
135
133
  }
136
134
  async searchBlueprints(query, limit = 20) {
@@ -681,14 +679,10 @@ function getSourceFromVisibility(visibility) {
681
679
  }
682
680
  }
683
681
  async function pullCommand(id, options) {
684
- const isPublicBlueprint = id.startsWith("usr_");
685
- if (!isPublicBlueprint && !isAuthenticated()) {
682
+ if (!isAuthenticated()) {
686
683
  console.log(
687
684
  chalk5.yellow("Not logged in. Run 'lynxp login' to authenticate.")
688
685
  );
689
- console.log(
690
- chalk5.gray("Note: Public marketplace blueprints (usr_...) can be downloaded without login.")
691
- );
692
686
  process.exit(1);
693
687
  }
694
688
  const cwd = process.cwd();