httpcat-cli 0.2.5 → 0.2.6-rc.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.
@@ -42,6 +42,8 @@ jobs:
42
42
  uses: ./.github/workflows/release.yml
43
43
  with:
44
44
  version: ${{ github.event.inputs.version }}
45
+ secrets:
46
+ HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
45
47
  permissions:
46
48
  id-token: write
47
49
  contents: write
@@ -8,6 +8,10 @@ on:
8
8
  description: "Version to release (e.g., 1.2.3). Leave empty for auto-detection from commits."
9
9
  required: false
10
10
  type: string
11
+ secrets:
12
+ HOMEBREW_TAP_TOKEN:
13
+ description: "GitHub token for accessing homebrew tap repository"
14
+ required: true
11
15
 
12
16
  env:
13
17
  NODE_VERSION: "20"
@@ -544,10 +548,29 @@ jobs:
544
548
  contents: write # Required to push to homebrew tap repository
545
549
  steps:
546
550
  - name: Checkout homebrew tap
551
+ env:
552
+ GIT_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
547
553
  run: |
548
- git clone https://${{ secrets.HOMEBREW_TAP_TOKEN }}@github.com/hathbanger/homebrew-httpcat.git homebrew-tap
554
+ # Clone the homebrew tap repository
555
+ if [ -z "$GIT_TOKEN" ]; then
556
+ echo "❌ GIT_TOKEN environment variable is not set (HOMEBREW_TAP_TOKEN secret may not be passed to reusable workflow)"
557
+ exit 1
558
+ fi
559
+
560
+ echo "Cloning homebrew tap repository..."
561
+ git clone https://${GIT_TOKEN}@github.com/hathbanger/homebrew-httpcat.git homebrew-tap
562
+
549
563
  cd homebrew-tap
550
564
  git checkout main
565
+
566
+ # Verify the clone was successful
567
+ if [ ! -f "Formula/httpcat.rb" ]; then
568
+ echo "❌ Formula file not found after clone!"
569
+ ls -la
570
+ exit 1
571
+ fi
572
+
573
+ echo "✅ Successfully checked out homebrew tap"
551
574
 
552
575
  - name: Wait for npm CDN propagation
553
576
  run: |
@@ -598,13 +621,45 @@ jobs:
598
621
  env:
599
622
  GIT_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
600
623
  run: |
624
+ # Verify directory exists
625
+ if [ ! -d "homebrew-tap" ]; then
626
+ echo "❌ homebrew-tap directory not found!"
627
+ exit 1
628
+ fi
629
+
601
630
  cd homebrew-tap
631
+
632
+ # Verify we're in the right directory
633
+ if [ ! -f "Formula/httpcat.rb" ]; then
634
+ echo "❌ Formula/httpcat.rb not found in current directory!"
635
+ pwd
636
+ ls -la
637
+ exit 1
638
+ fi
639
+
602
640
  git config user.name "github-actions[bot]"
603
641
  git config user.email "github-actions[bot]@users.noreply.github.com"
642
+
643
+ # Configure git to use token and avoid password prompts
644
+ git config credential.helper store
645
+ echo "https://${GIT_TOKEN}@github.com" > ~/.git-credentials
646
+
647
+ # Update remote URL to use token
648
+ git remote set-url origin https://${GIT_TOKEN}@github.com/hathbanger/homebrew-httpcat.git
649
+
650
+ # Check if there are changes to commit
604
651
  git add Formula/httpcat.rb
605
- git commit -m "Update httpcat to ${{ needs.prepare.outputs.version }}" || exit 0
606
- # Push using token in URL (simplest approach)
607
- git push https://${GIT_TOKEN}@github.com/hathbanger/homebrew-httpcat.git HEAD:main
652
+ if git diff --staged --quiet; then
653
+ echo "✅ No changes to commit (formula already up to date)"
654
+ else
655
+ git commit -m "Update httpcat to ${{ needs.prepare.outputs.version }}"
656
+ echo "✅ Committed changes"
657
+ fi
658
+
659
+ # Push to main branch
660
+ echo "Pushing to homebrew repository..."
661
+ git push origin main
662
+ echo "✅ Successfully pushed to homebrew repository"
608
663
 
609
664
  # Job 5: Create GitHub Release
610
665
  create-release:
package/bun.lock CHANGED
@@ -38,7 +38,6 @@
38
38
  },
39
39
  "overrides": {
40
40
  "@solana/codecs-core": "5.1.0",
41
- "@solana/instruction-plans/@solana/codecs-core": "5.1.0",
42
41
  },
43
42
  "packages": {
44
43
  "@adraffy/ens-normalize": ["@adraffy/ens-normalize@1.11.1", "", {}, "sha512-nhCBV3quEgesuf7c7KYfperqSS14T8bYuvJ8PcLJp6znkZpFc0AuW4qBtr8eKVyPPe/8RSr7sglCWPU5eaxwKQ=="],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "httpcat-cli",
3
- "version": "0.2.5",
3
+ "version": "0.2.6-rc.1",
4
4
  "description": "CLI tool for interacting with httpcat agent - create, buy, and sell tokens with x402 payments",
5
5
  "main": "dist/index.js",
6
6
  "bin": {