Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hypermodeinc/hyp-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.6
Choose a base ref
...
head repository: hypermodeinc/hyp-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing with 4,944 additions and 14,619 deletions.
  1. +0 −2 .eslintignore
  2. +0 −3 .eslintrc.json
  3. +4 −0 .github/CODEOWNERS
  4. +28 −0 .github/ISSUE_TEMPLATE/bug_report.md
  5. +5 −0 .github/ISSUE_TEMPLATE/config.yml
  6. +17 −0 .github/ISSUE_TEMPLATE/feature_request.md
  7. +4 −0 .github/actionlint.yml
  8. +24 −0 .github/pull_request_template.md
  9. +4 −0 .github/renovate.json
  10. +29 −0 .github/workflows/ci-cli-build.yml
  11. +32 −8 .github/workflows/release-cli.yml
  12. +14 −0 .github/workflows/trunk.yml
  13. +2 −3 .gitignore
  14. +0 −8 .mocharc.json
  15. +0 −1 .prettierrc.json
  16. +9 −0 .trunk/.gitignore
  17. +8 −0 .trunk/configs/.markdownlint.json
  18. +6 −0 .trunk/configs/.prettierrc
  19. +7 −0 .trunk/configs/.shellcheckrc
  20. +7 −0 .trunk/configs/.yamllint.yaml
  21. +261 −0 .trunk/configs/biome.json
  22. +18 −0 .trunk/configs/cspell.json
  23. +49 −0 .trunk/trunk.yaml
  24. +3 −0 .vscode/extensions.json
  25. +5 −1 .vscode/launch.json
  26. +9 −0 .vscode/settings.json
  27. +113 −0 CODE_OF_CONDUCT.md
  28. +33 −51 README.md
  29. +10 −0 SECURITY.md
  30. +2 −3 bin/dev.js
  31. +2 −2 bin/run.js
  32. +206 −204 install.sh
  33. +2,895 −14,033 package-lock.json
  34. +21 −48 package.json
  35. +4 −0 src/.prettierrc
  36. +298 −0 src/commands/link/index.ts
  37. +149 −73 src/commands/login/index.ts
  38. +28 −8 src/commands/logout/index.ts
  39. +19 −15 src/commands/org/switch.ts
  40. +2 −6 src/custom/header.ts
  41. +143 −79 src/custom/help.ts
  42. +1 −5 src/custom/logo.ts
  43. +6 −1 src/index.ts
  44. +65 −0 src/util/ci.ts
  45. +16 −0 src/util/fs.ts
  46. +161 −0 src/util/graphql.ts
  47. +200 −63 src/util/index.ts
  48. +24 −0 src/util/types.ts
  49. +1 −1 tsconfig.json
  50. +0 −1 tsconfig.tsbuildinfo
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# CODEOWNERS info: https://help.github.com/en/articles/about-code-owners
# Owners are automatically requested for review for PRs that changes code
# that they own.
* @hypermodeinc/app
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
title: ""
labels: bug
assignees: ""
---

**Describe the bug** A clear and concise description of what the bug is.

**To Reproduce** Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior** A clear and concise description of what you expected to happen.

**Screenshots** If applicable, add screenshots to help explain your problem.

**Environment**

- OS: [e.g. macOS, Windows, Ubuntu]
- Language [e.g. AssemblyScript, Go]
- Version [e.g. v0.xx]

**Additional context** Add any other context about the problem here.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Hypermode Community Support
url: https://discord.hypermode.com
about: Please ask and answer questions here
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.** A clear and concise description
of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like** A clear and concise description of what you want to happen.

**Describe alternatives you've considered** A clear and concise description of any alternative
solutions or features you've considered.

**Additional context** Add any other context or screenshots about the feature request here.
4 changes: 4 additions & 0 deletions .github/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
self-hosted-runner:
# Labels of self-hosted runner in array of string
labels:
- warp-ubuntu-latest-x64-2x
24 changes: 24 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
**Description**

Please explain the changes you made here.

**Checklist**

- [ ] Code compiles correctly and linting passes locally
- [ ] Tests added for new functionality, or regression tests for bug fixes added as applicable
- [ ] For new features, etc., PR on [docs repo](https://github.com/hypermodeinc/docs) staged and
linked here

**Instructions**

- The PR title should follow the [Conventional Commits](https://www.conventionalcommits.org/)
syntax, leading with `fix:`, `feat:`, `chore:`, `ci:`, etc.
- The description should briefly explain what the PR is about. In the case of a bugfix, describe or
link to the bug.
- In the checklist section, check the boxes in that are applicable, using `[x]` syntax.
- If not applicable, remove the entire line. Only leave the box unchecked if you intend to come
back and check the box later.
- Delete the `Instructions` line and everything below it, to indicate you have read and are
following these instructions. 🙂

Thank you for your contribution to the Modus project!
4 changes: 4 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>hypermodeinc/renovate-config"]
}
29 changes: 29 additions & 0 deletions .github/workflows/ci-cli-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ci-cli-build

on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.17.1
- name: Install dependencies
run: npm install
- name: Build Program
run: npm run build
- name: Run Hyp CLI
run: ./bin/run.js
40 changes: 32 additions & 8 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
name: "Release CLI"
name: Release CLI

on:
push:
tags:
- "v*"
- v*

permissions:
contents: "write"
contents: write
id-token: write

jobs:
release:
# note: must use GitHub-hosted runner for publishing to NPM with --provenance flag
runs-on: ubuntu-latest
name: Release
steps:
- name: "Validate version"
- name: Validate version
if: ${{ !startsWith(github.ref_name, 'v') }}
run: 'echo "Hyp CLI version must start with `v` && exit 1'
run: echo "Hyp CLI version must start with `v` && exit 1
- uses: actions/checkout@v4
with:
ref: "${{ github.ref_name }}"
@@ -25,20 +29,40 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ">=22"
registry-url: "https://registry.npmjs.org"
node-version: 22.17.1
registry-url: https://registry.npmjs.org
- name: Prepare Release
run: npm version ${{ steps.parse_cli_version.outputs.cli_version }} --no-git-tag-version
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish NPM Package
run: npm publish --provenance --access public --tag ${{ steps.parse_cli_version.outputs.npm_tag }}
run:
npm publish --provenance --access public --tag ${{ steps.parse_cli_version.outputs.npm_tag
}}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create Release
uses: softprops/action-gh-release@v2
with:
prerelease: ${{ contains(steps.parse_cli_version.outputs.cli_version, '-') }}
make_latest: ${{ contains(steps.parse_cli_version.outputs.cli_version, '-') }}
release-install-script:
needs: release
name: Release Install Script
runs-on: warp-ubuntu-latest-x64-2x
steps:
- uses: actions/checkout@v4
with:
ref: "${{ github.ref_name }}"
- name: Push to R2 Bucket
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
wranglerVersion: 3.83.0
preCommands: |
cat install.sh
command: |
r2 object put install/hyp.sh -f install.sh --content-type text/x-sh
14 changes: 14 additions & 0 deletions .github/workflows/trunk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Trunk Code Quality
on:
pull_request:
branches: main

permissions:
contents: read
actions: write
checks: write

jobs:
trunk-code-quality:
name: Trunk Code Quality
uses: hypermodeinc/.github/.github/workflows/trunk.yml@main
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -6,8 +6,7 @@
/tmp
/node_modules
oclif.manifest.json


tsconfig.tsbuildinfo

yarn.lock
pnpm-lock.yaml
@@ -24,4 +23,4 @@ oclif.manifest.json
yarn.lock
pnpm-lock.yaml
bun.lockb
rt/
rt/
8 changes: 0 additions & 8 deletions .mocharc.json

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc.json

This file was deleted.

9 changes: 9 additions & 0 deletions .trunk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*out
*logs
*actions
*notifications
*tools
plugins
user_trunk.yaml
user.yaml
tmp
8 changes: 8 additions & 0 deletions .trunk/configs/.markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"line-length": { "line_length": 150, "tables": false },
"no-inline-html": false,
"no-bare-urls": false,
"no-space-in-emphasis": false,
"no-emphasis-as-heading": false,
"first-line-heading": false
}
6 changes: 6 additions & 0 deletions .trunk/configs/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"proseWrap": "always",
"printWidth": 100,
"singleQuote": false
}
7 changes: 7 additions & 0 deletions .trunk/configs/.shellcheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
enable=all
source-path=SCRIPTDIR
disable=SC2154

# If you're having issues with shellcheck following source, disable the errors via:
# disable=SC1090
# disable=SC1091
7 changes: 7 additions & 0 deletions .trunk/configs/.yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rules:
quoted-strings:
required: only-when-needed
extra-allowed: ["{|}"]
key-duplicates: {}
octal-values:
forbid-implicit-octal: true
Loading