httpcat-cli 0.2.3 → 0.2.5-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.
- package/.github/workflows/release.yml +61 -7
- package/bun.lock +0 -1
- package/package.json +2 -1
|
@@ -540,13 +540,33 @@ jobs:
|
|
|
540
540
|
name: Update Homebrew Formula
|
|
541
541
|
runs-on: ubuntu-latest
|
|
542
542
|
needs: [prepare, publish-npm]
|
|
543
|
+
permissions:
|
|
544
|
+
contents: write # Required to push to homebrew tap repository
|
|
543
545
|
steps:
|
|
544
546
|
- name: Checkout homebrew tap
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
547
|
+
env:
|
|
548
|
+
GIT_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
|
549
|
+
run: |
|
|
550
|
+
# Clone the homebrew tap repository
|
|
551
|
+
if [ -z "$GIT_TOKEN" ]; then
|
|
552
|
+
echo "❌ HOMEBREW_TAP_TOKEN secret is not set!"
|
|
553
|
+
exit 1
|
|
554
|
+
fi
|
|
555
|
+
|
|
556
|
+
echo "Cloning homebrew tap repository..."
|
|
557
|
+
git clone https://${GIT_TOKEN}@github.com/hathbanger/homebrew-httpcat.git homebrew-tap
|
|
558
|
+
|
|
559
|
+
cd homebrew-tap
|
|
560
|
+
git checkout main
|
|
561
|
+
|
|
562
|
+
# Verify the clone was successful
|
|
563
|
+
if [ ! -f "Formula/httpcat.rb" ]; then
|
|
564
|
+
echo "❌ Formula file not found after clone!"
|
|
565
|
+
ls -la
|
|
566
|
+
exit 1
|
|
567
|
+
fi
|
|
568
|
+
|
|
569
|
+
echo "✅ Successfully checked out homebrew tap"
|
|
550
570
|
|
|
551
571
|
- name: Wait for npm CDN propagation
|
|
552
572
|
run: |
|
|
@@ -594,14 +614,48 @@ jobs:
|
|
|
594
614
|
cat "$FORMULA_FILE"
|
|
595
615
|
|
|
596
616
|
- name: Commit and push Homebrew formula update
|
|
617
|
+
env:
|
|
618
|
+
GIT_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
|
597
619
|
run: |
|
|
620
|
+
# Verify directory exists
|
|
621
|
+
if [ ! -d "homebrew-tap" ]; then
|
|
622
|
+
echo "❌ homebrew-tap directory not found!"
|
|
623
|
+
exit 1
|
|
624
|
+
fi
|
|
625
|
+
|
|
598
626
|
cd homebrew-tap
|
|
627
|
+
|
|
628
|
+
# Verify we're in the right directory
|
|
629
|
+
if [ ! -f "Formula/httpcat.rb" ]; then
|
|
630
|
+
echo "❌ Formula/httpcat.rb not found in current directory!"
|
|
631
|
+
pwd
|
|
632
|
+
ls -la
|
|
633
|
+
exit 1
|
|
634
|
+
fi
|
|
635
|
+
|
|
599
636
|
git config user.name "github-actions[bot]"
|
|
600
637
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
638
|
+
|
|
639
|
+
# Configure git to use token and avoid password prompts
|
|
640
|
+
git config credential.helper store
|
|
641
|
+
echo "https://${GIT_TOKEN}@github.com" > ~/.git-credentials
|
|
642
|
+
|
|
643
|
+
# Update remote URL to use token
|
|
644
|
+
git remote set-url origin https://${GIT_TOKEN}@github.com/hathbanger/homebrew-httpcat.git
|
|
645
|
+
|
|
646
|
+
# Check if there are changes to commit
|
|
601
647
|
git add Formula/httpcat.rb
|
|
602
|
-
git
|
|
603
|
-
|
|
648
|
+
if git diff --staged --quiet; then
|
|
649
|
+
echo "✅ No changes to commit (formula already up to date)"
|
|
650
|
+
else
|
|
651
|
+
git commit -m "Update httpcat to ${{ needs.prepare.outputs.version }}"
|
|
652
|
+
echo "✅ Committed changes"
|
|
653
|
+
fi
|
|
654
|
+
|
|
655
|
+
# Push to main branch
|
|
656
|
+
echo "Pushing to homebrew repository..."
|
|
604
657
|
git push origin main
|
|
658
|
+
echo "✅ Successfully pushed to homebrew repository"
|
|
605
659
|
|
|
606
660
|
# Job 5: Create GitHub Release
|
|
607
661
|
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.
|
|
3
|
+
"version": "0.2.5-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": {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"test:integration": "vitest run tests/integration"
|
|
20
20
|
},
|
|
21
21
|
"keywords": [
|
|
22
|
+
"402.cat",
|
|
22
23
|
"httpcat",
|
|
23
24
|
"x402",
|
|
24
25
|
"tokens",
|