@naganpm/fetch-prompts 1.0.4 → 1.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/README.md CHANGED
@@ -1,23 +1,35 @@
1
1
  # fetch-prompts
2
2
 
3
- Fetch prompts from a private GitLab repository.
3
+ Fetch prompts from a public GitLab repository.
4
4
 
5
5
  ## Quick Start
6
6
 
7
- **This package fetches from a private GitLab repository.** Users need:
7
+ **Simple - no authentication required!**
8
+
9
+ ```bash
10
+ npx -y @naganpm/fetch-prompts
11
+ ```
12
+
13
+ This downloads all `.md` prompt files from https://gitlab.com/prompts4/prompt-manager into a local `prompts/` folder.
14
+
15
+ ---
16
+
17
+ ## Alternative: For Private Repos
18
+
19
+ If the GitLab repo becomes private, users will need:
8
20
  1. Access to the GitLab repo (ask owner to add you as member)
9
21
  2. A GitLab personal access token
10
22
 
11
23
  ### Step 1: Get Added to GitLab Repo
12
24
  Ask the repo owner to add you at:
13
- https://gitlab.com/npm-packages713505/prompt-manager/-/project_members
25
+ https://gitlab.com/prompts4/prompt-manager/-/project_members
14
26
 
15
27
  ### Step 2: Create GitLab Token
16
28
  1. Go to: https://gitlab.com/-/profile/personal_access_tokens
17
29
  2. Create token with scopes: `read_api`, `read_repository`
18
30
  3. Copy your token (starts with `glpat-`)
19
31
 
20
- ### Step 3: Run the Package
32
+ ### Step 3: Run with Token
21
33
  ```bash
22
34
  GITLAB_TOKEN=glpat-your-token-here npx -y @naganpm/fetch-prompts
23
35
  ```
@@ -28,13 +40,13 @@ export GITLAB_TOKEN=glpat-your-token-here
28
40
  npx -y @naganpm/fetch-prompts
29
41
  ```
30
42
 
31
- This downloads all `.md` prompt files from the GitLab repo into a local `prompts/` folder.
43
+ ---
32
44
 
33
- ## For Repo Owner: Adding Users
45
+ ## For Repo Owner: Adding Users (Private Repos Only)
34
46
 
35
47
  To grant someone access to fetch prompts:
36
48
 
37
- 1. Go to: https://gitlab.com/npm-packages713505/prompt-manager/-/project_members
49
+ 1. Go to: https://gitlab.com/prompts4/prompt-manager/-/project_members
38
50
  2. Click **"Invite members"**
39
51
  3. Add their GitLab username or email
40
52
  4. Set role to **"Reporter"** (read-only access)
package/bin/index.js CHANGED
@@ -12,7 +12,7 @@ if (fs.existsSync(envPath)) {
12
12
  }
13
13
 
14
14
  // Configuration - update these with your GitLab details
15
- const GITLAB_PROJECT = 'npm-packages713505/prompt-manager'; // group/project
15
+ const GITLAB_PROJECT = 'prompts4/prompt-manager'; // group/project
16
16
  const GITLAB_BRANCH = 'main'; // or 'master'
17
17
  const PROMPTS_PATH = 'prompts'; // folder in your GitLab repo
18
18
  const GITLAB_HOST = 'gitlab.com'; // or your self-hosted GitLab domain
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naganpm/fetch-prompts",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Fetch prompts from GitLab repository",
5
5
  "bin": {
6
6
  "fetch-prompts": "bin/index.js"