Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .agents/product-marketing.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ B2C, single-actor product — skipped per skill guidance (no multi-stakeholder b

## Goals
**Business goal:** none revenue-related — goal is working software, honest positioning, and (per user) a Product Hunt launch for visibility among developers.
**Conversion action:** `git clone`/`npm install` + first successful `hinge tier` call.
**Conversion action:** `git clone`/`cargo build --release` + first successful `hinge tier` call.
**Current metrics:** 0 installs, 0 GitHub stars tracked at time of writing (repo just made public).

## Paid Ads
Expand Down
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ HINGE_SESSION_FILE=
# or bw://hinge-session. When set, nothing is written to disk. See docs/auth.md.
HINGE_SESSION_REF=

# Only needed for `hinge inspect` (Appium/WebDriverAgent exploration), not for tier/limits/auth.
# Only needed for `hinge doctor` and `hinge inspect` (Appium/WebDriverAgent exploration), not for tier/limits/auth.
HINGE_APPIUM_URL=http://127.0.0.1:4723
HINGE_UDID=
HINGE_BUNDLE_ID=co.hinge.mobile.ios
Expand Down
Binary file modified .github/assets/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion .github/assets/demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Wait
Type 'BIN="$(mktemp -d)"'
Enter
Wait
Type `printf '#!/bin/sh\nexec node "%s/dist/cli.js" "$@"\n' "$REPO_ROOT" > "$BIN/hinge"`
Type `printf '#!/bin/sh\nexec "%s/target/release/hinge" "$@"\n' "$REPO_ROOT" > "$BIN/hinge"`
Enter
Wait
Type 'chmod +x "$BIN/hinge"'
Expand Down
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ updates:
directory: "/"
schedule:
interval: weekly
- package-ecosystem: npm
- package-ecosystem: cargo
directory: "/"
schedule:
interval: weekly
6 changes: 1 addition & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .node-version
cache: npm
- run: npm ci
- run: rustup update stable --no-self-update
- run: bash scripts/verify
11 changes: 4 additions & 7 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version-file: .node-version
cache: npm
- run: npm ci
- run: npm audit --audit-level=high
- run: cargo install cargo-audit --locked
- run: cargo audit

secret-scan:
runs-on: ubuntu-latest
Expand All @@ -44,5 +40,6 @@ jobs:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v4
with:
languages: javascript-typescript
languages: rust
build-mode: none
- uses: github/codeql-action/analyze@v4
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

7 changes: 4 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
- Purpose and non-goals: `intent.md`. Architecture: `docs/architecture.md`. Decisions: `docs/adr/`.

## Stack
- Language-neutral repository; see README.md.
- Rust (edition 2024, Cargo). Single binary `hinge`; modules in `src/`, unit tests inline (`#[cfg(test)]`).

## Commands
- Verify everything: `scripts/verify`
- Verify everything: `scripts/verify` (`cargo fmt --check`, `cargo clippy -D warnings`, `cargo test`)
- Build: `cargo build --release`

## Verification
- Run `scripts/verify` before handing work back; it must pass. CI runs the same command and is the authoritative gate.
- Add or update tests for behaviour you change. Live or state-changing tests must be opt-in.

## Constraints
- Commit messages follow Conventional Commits (see `.gitmessage.txt`). Keep changes small and focused.
- Do not reformat unrelated code. Do not edit generated files, lockfiles by hand, or the single version source.
- Do not reformat unrelated code. Do not edit generated files or `Cargo.lock` by hand; the version lives only in `Cargo.toml`.
- Never commit secrets or `.env` files. `.env.example` holds names and safe placeholders only.

## Approval boundaries
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ rather than editing several version sources by hand. Format: [Keep a Changelog](

## [Unreleased]

## [0.2.0] - 2026-11-28
### Changed
- **Rewritten in Rust** (edition 2024; clap, tokio, reqwest with rustls, serde). All commands and
output formats are preserved: `doctor`, `tier`, `limits`, `auth import|status|logout`, `inspect`,
`secret`, the global `--json` flag, `HINGE_*` environment variables and the `op://`, `bw://`,
`keychain://`, `cmd://`, `env://` secret references. Appium is now spoken over the W3C WebDriver HTTP
protocol directly. Build with `cargo build --release` (binary `target/release/hinge`); Node.js is no
longer needed.
- Every HTTP request now sends the user agent of a generic Android phone. The session's own
`user-agent` is no longer stored (`hinge_token.py` and `auth import` drop it).
- CI, the Security workflow (`cargo audit`, CodeQL for Rust), Dependabot (cargo), `CONTRIBUTING.md`, the
README, `AGENTS.md` and `docs/` updated for the Rust toolchain; the demo GIF was re-recorded.
- The version source is now `Cargo.toml` (was `package.json`).
### Removed
- The TypeScript sources, `package.json`, `package-lock.json`, `tsconfig*.json` and `.node-version`.

## [0.1.6] - 2026-11-28
### Added
- `docs/index.html`: single-file landing page for GitHub Pages with an animated ASCII background
Expand Down
14 changes: 7 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ Enable the template once: `git config commit.template .gitmessage.txt`.
- `scripts/verify` green; tests added or updated for changed behaviour.
- Docs, ADR or changelog updated when behaviour, contracts or architecture change.
- Dependency changes reviewed explicitly (new packages, version bumps, lockfile diff).
- **Every PR bumps `package.json`'s version per [SemVer 2.0.0](https://semver.org/):** patch for
- **Every PR bumps `Cargo.toml`'s version per [SemVer 2.0.0](https://semver.org/):** patch for
fixes/docs/internal changes, minor for backward-compatible additions, major for breaking changes.
Use `npm version <major|minor|patch> --no-git-tag-version` (never hand-edit the version field —
see AGENTS.md) and add a matching entry to `CHANGELOG.md`. Git tags are still created only at
actual npm publish time (`docs/deployment.md`'s Release steps), not on every PR.
Edit the `version` line in `Cargo.toml` (the single version source) and run `cargo build` so
`Cargo.lock` follows; add a matching entry to `CHANGELOG.md`. Git tags are still created only at
actual release time (`docs/deployment.md`'s Release steps), not on every PR.

## README demo GIF
`.github/assets/demo.gif` is recorded, not hand-made. After a change to the CLI's output or
command list, re-record it with [VHS](https://github.com/charmbracelet/vhs): `npm run build && vhs
command list, re-record it with [VHS](https://github.com/charmbracelet/vhs): `cargo build --release && vhs
.github/assets/demo.tape` (run from the repo root; the tape builds a throwaway `hinge` shim and a
fake `$HOME`, so it never touches a real session or calls the live Hinge API).

## Review roles
- Reviewer: @ifthenelse approves all changes; CODEOWNERS requires their review on every path, and on
`.github/` and `docs/security/` specifically.
- Single-maintainer repository: self-review follows the PR requirements above (verify green, tests
updated, docs/ADR updated) plus a 24h cooling-off before merging anything touching `src/secrets.ts`,
`src/session-store.ts`, `src/api.ts`, or `.github/workflows/`.
updated, docs/ADR updated) plus a 24h cooling-off before merging anything touching `src/secrets.rs`,
`src/session_store.rs`, `src/api.rs`, or `.github/workflows/`.

## Escalation
Security concerns: see [SECURITY.md](SECURITY.md). Blocked reviews or anything else: open a GitHub
Expand Down
Loading