Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4b51244
Merge pull request #9 from Enkryptify/development
SiebeBaree Oct 14, 2025
16ac80b
Merge pull request #10 from Enkryptify/development
SiebeBaree Oct 14, 2025
6de4067
feat: remove old files, will migrate to new CLI in TypeScript
SiebeBaree Dec 3, 2025
be655b7
Create LICENSE
SiebeBaree Dec 3, 2025
97b419c
initial commit
SiebeBaree Dec 3, 2025
b6607be
Added ESLINT & Prettier
SiebeBaree Dec 3, 2025
de25a72
Move start file
SiebeBaree Dec 3, 2025
02e31fc
created imp of the Enkryptify provider and the login logic.
alizamili00 Dec 3, 2025
d3e9cde
Implement all legacy CLI functionality and add new features
alizamili00 Dec 4, 2025
0745fd8
Re-implement legacy CLI with new functionality: update, delete, and l…
alizamili00 Dec 5, 2025
e85181c
working on the ui the login part looks better now
alizamili00 Dec 6, 2025
31339f3
imporving the ui and fixing.
Dec 7, 2025
da6b671
fixing a bug
Dec 7, 2025
ae94984
made the update now it run on each command and show you a message. fi…
alizamili00 Dec 8, 2025
c2d3e41
making enkryptify default for login and configure command.
alizamili00 Dec 8, 2025
32e2645
did the migration for the config file.
alizamili00 Dec 8, 2025
3765d69
Reimplemented and standardized frontend UI components, created reusa…
alizamili00 Dec 14, 2025
d2b1e92
add AWS login, Secrets Manager CRUD with prefix support, autocomple…
alizamili00 Dec 15, 2025
2c858f1
Implement authentication, Google Cloud CRUD operations, create basic…
alizamili00 Dec 16, 2025
27445df
removing a test file
alizamili00 Dec 16, 2025
7c3d2d1
implement authentication and CRUD operations for OnePassword
alizamili00 Dec 16, 2025
ebdc3d2
removing comments
alizamili00 Dec 16, 2025
a920162
testing out the github action and Completion script
alizamili00 Dec 17, 2025
f8e4052
fixing bugs from coderabbit
alizamili00 Dec 17, 2025
c1f1297
Refactor OnePassword integration to use One Note; verified all method…
alizamili00 Dec 17, 2025
0e31933
testing out the binary for mac
alizamili00 Dec 18, 2025
ef8cfd9
testing out the binary for mac
alizamili00 Dec 18, 2025
c7eda5b
testing out the binary for mac
alizamili00 Dec 18, 2025
57cd7fa
fixing the dev reac tools import
alizamili00 Dec 18, 2025
8587470
fixing the dev reac tools import
alizamili00 Dec 18, 2025
d64891b
fixing the dev reac tools import
alizamili00 Dec 18, 2025
b276ff3
fixing the dev reac tools import
alizamili00 Dec 18, 2025
dafef25
fixing the dev reac tools import
alizamili00 Dec 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc
Binary file removed .github/.DS_Store
Binary file not shown.
158 changes: 143 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,157 @@
name: Release CLI
name: Release CLI (macOS test)

on:
workflow_dispatch:
inputs:
publish_release:
description: "Publish / update the test prerelease (v0.0.0-test)"
type: boolean
required: false
default: true

push:
tags:
- 'v*'
branches:
- 1password/integration

concurrency:
group: release-test-macos
cancel-in-progress: true

jobs:
goreleaser:
runs-on: ubuntu-latest
build-and-release-macos:
runs-on: macos-latest
permissions:
contents: write

steps:
- name: Checkout
- name: Checkout (full history for tagging)
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
go-version: '1.23'
bun-version: latest

- name: Install deps
run: bun install --ignore-scripts

- name: Patch 1Password SDK for bundling
shell: bash
run: |
echo "🔧 Patching 1Password SDK..."
bun run scripts/patch-1password.ts

echo ""
echo "Verifying patch..."
if grep -q "ENKRYPTIFY BUNDLING PATCH" node_modules/@1password/sdk-core/nodejs/index.js; then
echo "✅ SDK successfully patched"
else
echo "❌ SDK patch verification failed"
exit 1
fi

- name: Build macOS binaries (x64 + arm64)
shell: bash
run: |
set -euo pipefail
mkdir -p dist/bin dist/archives

bun build src/cli.ts \
--compile \
--minify-whitespace \
--compile-autoload-tsconfig \
--compile-autoload-package-json \
--target=bun-darwin-x64 \
--outfile=dist/bin/ek-darwin-x64

bun build src/cli.ts \
--compile \
--minify-whitespace \
--compile-autoload-tsconfig \
--compile-autoload-package-json \
--target=bun-darwin-arm64 \
--outfile=dist/bin/ek-darwin-arm64

# Copy WASM file needed by 1Password SDK
if [ -f "node_modules/@1password/sdk-core/nodejs/core_bg.wasm" ]; then
cp node_modules/@1password/sdk-core/nodejs/core_bg.wasm dist/bin/
echo "✅ Copied 1Password WASM file"
else
echo "❌ ERROR: 1Password WASM file not found!"
exit 1
fi

# Create archives with binary and WASM file
tar -czf dist/archives/enkryptify_Darwin_x86_64.tar.gz -C dist/bin ek-darwin-x64 core_bg.wasm
tar -czf dist/archives/enkryptify_Darwin_arm64.tar.gz -C dist/bin ek-darwin-arm64 core_bg.wasm

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
# Generate checksums
(cd dist/archives && shasum -a 256 * > checksums.txt)

# Show what we built
echo ""
echo "📦 Built artifacts:"
ls -lh dist/archives/
echo ""
echo "Archive contents:"
tar -tzf dist/archives/enkryptify_Darwin_arm64.tar.gz

- name: Move tag v0.0.0-test to this commit
if: ${{ github.event_name == 'push' || inputs.publish_release }}
shell: bash
run: |
set -euo pipefail
git config user.name "Enkryptify Bot"
git config user.email "bot@enkryptify.com"
git tag -f v0.0.0-test
git push -f origin v0.0.0-test

- name: Publish / update GitHub prerelease (v0.0.0-test)
if: ${{ github.event_name == 'push' || inputs.publish_release }}
uses: softprops/action-gh-release@v2
with:
distribution: goreleaser
version: latest
args: release --clean
tag_name: v0.0.0-test
name: Test Release v0.0.0-test
prerelease: true
overwrite_files: true
files: |
dist/archives/*
body: |
⚠️ Test prerelease from branch `1password/integration`
Commit: ${{ github.sha }}

## Installation & Usage

### macOS (Apple Silicon - M1/M2/M3)
```bash
# Download and extract
curl -L -O https://github.com/${{ github.repository }}/releases/download/v0.0.0-test/enkryptify_Darwin_arm64.tar.gz
tar -xzf enkryptify_Darwin_arm64.tar.gz

# Make executable and remove quarantine
chmod +x ek-darwin-arm64
xattr -dr com.apple.quarantine ek-darwin-arm64 || true

# Run (ensure core_bg.wasm is in the same directory)
./ek-darwin-arm64 --help
```

### macOS (Intel)
```bash
# Download and extract
curl -L -O https://github.com/${{ github.repository }}/releases/download/v0.0.0-test/enkryptify_Darwin_x86_64.tar.gz
tar -xzf enkryptify_Darwin_x86_64.tar.gz

# Make executable and remove quarantine
chmod +x ek-darwin-x64
xattr -dr com.apple.quarantine ek-darwin-x64 || true

# Run (ensure core_bg.wasm is in the same directory)
./ek-darwin-x64 --help
```

⚠️ **Important**: Both the executable and `core_bg.wasm` must be in the same directory for the CLI to work.
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36 changes: 35 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
# dependencies (bun install)
node_modules

# output
out
dist
*.tgz

# code coverage
coverage
*.lcov


# logs
logs
_.log
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# caches
.eslintcache
.cache
*.tsbuildinfo

# IntelliJ based IDEs
.idea

# Finder (MacOS) folder config
.DS_Store
ek
.DS_Store
111 changes: 0 additions & 111 deletions .goreleaser.yaml

This file was deleted.

15 changes: 15 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"singleQuote": false,
"semi": true,
"trailingComma": "all",
"printWidth": 120,
"tabWidth": 4,
"overrides": [
{
"files": ["bun.lock", "package.json"],
"options": {
"requirePragma": true
}
}
]
}
17 changes: 17 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "always",
"source.organizeImports": "always"
},
"[mdx]": {
"editor.defaultFormatter": null,
"editor.formatOnSave": false
}
}
Loading
Loading