@link-assistant/claude-profiles 1.2.3 → 1.3.1
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 +126 -0
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -201,6 +201,24 @@ claude-profiles --store work --log
|
|
|
201
201
|
claude-profiles --store work --log=claude-backup.log
|
|
202
202
|
```
|
|
203
203
|
|
|
204
|
+
#### Skip Projects Folder
|
|
205
|
+
Exclude the projects folder from backups to reduce profile size:
|
|
206
|
+
```bash
|
|
207
|
+
# Store profile without projects folder
|
|
208
|
+
claude-profiles --store work --skip-projects
|
|
209
|
+
|
|
210
|
+
# Restore and watch without projects
|
|
211
|
+
claude-profiles --restore work --watch work --skip-projects
|
|
212
|
+
|
|
213
|
+
# Useful when projects folder is large
|
|
214
|
+
claude-profiles --watch work --skip-projects
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
**Use Cases:**
|
|
218
|
+
- Reduce backup size when projects folder contains large conversation histories
|
|
219
|
+
- Avoid hitting GitHub's 10MB gist size limit
|
|
220
|
+
- Focus on configuration and settings without project data
|
|
221
|
+
|
|
204
222
|
## Profile Names
|
|
205
223
|
|
|
206
224
|
Profile names must follow these rules:
|
|
@@ -527,6 +545,114 @@ This project is released into the public domain under The Unlicense. See [LICENS
|
|
|
527
545
|
Contributions are welcome! Please feel free to submit issues or pull requests at:
|
|
528
546
|
https://github.com/link-assistant/claude-profiles
|
|
529
547
|
|
|
548
|
+
### Development Workflow
|
|
549
|
+
|
|
550
|
+
This project uses [Changesets](https://github.com/changesets/changesets) for version management and automated releases.
|
|
551
|
+
|
|
552
|
+
#### Making Changes
|
|
553
|
+
|
|
554
|
+
1. **Create a branch** for your changes:
|
|
555
|
+
```bash
|
|
556
|
+
git checkout -b feature/my-feature
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
2. **Make your changes** and commit them
|
|
560
|
+
|
|
561
|
+
3. **Create a changeset** to document your changes:
|
|
562
|
+
```bash
|
|
563
|
+
npm run changeset
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
This will prompt you to:
|
|
567
|
+
- Select the version bump type (patch/minor/major)
|
|
568
|
+
- Provide a description of your changes
|
|
569
|
+
|
|
570
|
+
A new file will be created in `.changeset/` directory.
|
|
571
|
+
|
|
572
|
+
4. **Commit the changeset** along with your changes:
|
|
573
|
+
```bash
|
|
574
|
+
git add .changeset/
|
|
575
|
+
git commit -m "Add changeset for my feature"
|
|
576
|
+
```
|
|
577
|
+
|
|
578
|
+
5. **Create a pull request** - the CI will validate that a changeset is present
|
|
579
|
+
|
|
580
|
+
#### Release Process
|
|
581
|
+
|
|
582
|
+
Releases are fully automated via GitHub Actions with OIDC trusted publishing to npm:
|
|
583
|
+
|
|
584
|
+
1. **Merge PR to main** - Once your PR with a changeset is merged:
|
|
585
|
+
- The `release.yml` workflow automatically detects the changeset
|
|
586
|
+
- It bumps the version in `package.json`
|
|
587
|
+
- Updates `CHANGELOG.md` with your changes
|
|
588
|
+
- Commits the version bump back to main
|
|
589
|
+
- Continues publishing in the same workflow run; the bot's `GITHUB_TOKEN` push does not need to trigger another run
|
|
590
|
+
- Publishes to npm using OIDC (no npm tokens needed!)
|
|
591
|
+
- Creates a GitHub release with release notes
|
|
592
|
+
|
|
593
|
+
2. **Manual Releases** - Maintainers can also trigger releases manually via GitHub Actions:
|
|
594
|
+
```
|
|
595
|
+
Actions → Checks and release → Run workflow
|
|
596
|
+
```
|
|
597
|
+
Choose between:
|
|
598
|
+
- **Instant Release**: Immediately bump version and publish
|
|
599
|
+
- **Publish Existing Version**: Publish the version already committed in `package.json`, without a changeset or another bump
|
|
600
|
+
- **Changeset PR**: Create a PR with changeset for review
|
|
601
|
+
|
|
602
|
+
Automatic releases and manual instant releases run from `main`, after automated checks pass. Manual `publish-existing` recovery publishes the selected workflow branch without writing a version commit, so release fixes can be verified before merging. Both paths check the actual package name and version on npm. A consumed changeset or an already published version is safe to retry. GitHub releases are created or updated only after the npm version has been verified.
|
|
603
|
+
|
|
604
|
+
#### Recovering an unpublished version
|
|
605
|
+
|
|
606
|
+
If `package.json` has a version that npm does not have (for example, committed `1.3.0` with only `1.2.3` on npm), recover it using **Checks and release → Run workflow → main → release_mode=publish-existing**. The `bump_type` input is ignored in this mode. This also repairs a failed publish after the version commit consumed its changeset. Use **instant**, `bump_type=patch` if you want a new version instead (for example, `1.3.0` → `1.3.1`).
|
|
607
|
+
|
|
608
|
+
Configure the package's trusted publisher before publishing. The package already exists, so an npm package administrator can register GitHub directly; a token-based bootstrap publish is optional:
|
|
609
|
+
|
|
610
|
+
```bash
|
|
611
|
+
# Run as an authenticated npm package administrator with a CLI supporting npm trust.
|
|
612
|
+
npm trust github @link-assistant/claude-profiles \
|
|
613
|
+
--file release.yml --repo link-assistant/claude-profiles --allow-publish -y
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
Alternatively, open the package's npm settings and add a GitHub Actions trusted publisher with organization `link-assistant`, repository `claude-profiles`, workflow filename `release.yml`, no environment, and direct `npm publish` allowed. The workflow uses GitHub-hosted runners, Node 24, npm 11, and `id-token: write`. See [npm's trusted publishing documentation](https://docs.npmjs.com/trusted-publishers/).
|
|
617
|
+
|
|
618
|
+
If the repository's `NPM_TOKEN` secret has permission to administer trusted publishers, set `configure_trusted_publisher=true` on a manual recovery run. This runs the registration command before publishing. Leave `use_npm_token=false` to test OIDC immediately afterward; the administration credential is passed only to the registration step. Registration requiring interactive npm authentication must be completed from an authenticated administrator session.
|
|
619
|
+
|
|
620
|
+
If a bootstrap credential is necessary, add a granular npm token authorized for this package as the repository's `NPM_TOKEN` Actions secret. Dispatch the manual release with `use_npm_token=true` for that one run. The default is `false`; automatic releases never receive this secret. A failed authentication or registry lookup fails the release with an explicit error rather than reporting a successful publication.
|
|
621
|
+
|
|
622
|
+
After the bootstrap succeeds, configure trusted publishing, delete the temporary secret, and publish a **new** version with OIDC only:
|
|
623
|
+
|
|
624
|
+
```bash
|
|
625
|
+
gh secret delete NPM_TOKEN --repo link-assistant/claude-profiles
|
|
626
|
+
gh workflow run release.yml --repo link-assistant/claude-profiles --ref main \
|
|
627
|
+
-f release_mode=instant -f bump_type=patch -F use_npm_token=false
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
Verify that this run succeeds, and check its exact version and provenance:
|
|
631
|
+
|
|
632
|
+
```bash
|
|
633
|
+
RELEASE_VERSION=1.3.1 # Replace with the exact version from the successful run
|
|
634
|
+
npm view "@link-assistant/claude-profiles@$RELEASE_VERSION" version dist.attestations --json
|
|
635
|
+
```
|
|
636
|
+
|
|
637
|
+
An already published version is skipped, so a `publish-existing` run for that same version does **not** prove OIDC authentication. A successful publish of a new version with the secret removed does. Keep the failed workflow logs when investigating recovery, and retry using `publish-existing` if the version was already committed.
|
|
638
|
+
|
|
639
|
+
For authentication failures, retry the manual workflow with `debug=true`. This enables npm's verbose OIDC diagnostics and reports whether an Actions OIDC request and npm token are available, without printing credential values. Diagnostics are disabled by default; local script runs can enable them with `DEBUG=1`.
|
|
640
|
+
|
|
641
|
+
#### Version Bump Guidelines
|
|
642
|
+
|
|
643
|
+
- **Patch** (0.0.x): Bug fixes, minor improvements, documentation
|
|
644
|
+
- **Minor** (0.x.0): New features, non-breaking changes
|
|
645
|
+
- **Major** (x.0.0): Breaking changes, major rewrites
|
|
646
|
+
|
|
647
|
+
### CI/CD Pipeline
|
|
648
|
+
|
|
649
|
+
The project uses GitHub Actions for continuous integration and deployment:
|
|
650
|
+
|
|
651
|
+
- **PR Checks**: Validates changesets, syntax, and offline release regression tests on Node.js 18, 20, 22 (`npm ci && npm test`)
|
|
652
|
+
- **Automated Releases**: Versions changesets on merge to main and checks for unpublished committed versions on every main push
|
|
653
|
+
- **OIDC Publishing**: Secure, token-free publishing to npm registry
|
|
654
|
+
- **Optional bootstrap credential**: Manual releases can opt in to a temporary token; OIDC remains the default
|
|
655
|
+
|
|
530
656
|
## Support
|
|
531
657
|
|
|
532
658
|
For issues, questions, or feature requests, please open an issue on GitHub:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@link-assistant/claude-profiles",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Manage multiple Claude configuration profiles using GitHub Gists as secure cloud storage",
|
|
5
5
|
"main": "claude-profiles.mjs",
|
|
6
6
|
"bin": {
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
"node": ">=18.0.0"
|
|
12
12
|
},
|
|
13
13
|
"scripts": {
|
|
14
|
-
"test": "node --check claude-profiles.mjs"
|
|
14
|
+
"test": "node --check claude-profiles.mjs && node --test examples/test-release.mjs",
|
|
15
|
+
"changeset": "changeset",
|
|
16
|
+
"changeset:version": "node scripts/changeset-version.mjs",
|
|
17
|
+
"changeset:publish": "changeset publish",
|
|
18
|
+
"changeset:status": "changeset status --since=origin/main"
|
|
15
19
|
},
|
|
16
20
|
"repository": {
|
|
17
21
|
"type": "git",
|
|
@@ -44,5 +48,9 @@
|
|
|
44
48
|
"publishConfig": {
|
|
45
49
|
"access": "public",
|
|
46
50
|
"registry": "https://registry.npmjs.org/"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@changesets/cli": "^2.29.7",
|
|
54
|
+
"js-yaml": "^4.1.1"
|
|
47
55
|
}
|
|
48
|
-
}
|
|
56
|
+
}
|