Skip to content
Open
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions BOUNTY.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@

Anyone from the community can review the pull request and leave comments.

Review are rewarded with a tip of $20 when requested on merged pull request.
AI review does not qualify.

## What is a good review?

Check code pattern repetition, and things that can be done better.
Expand Down
34 changes: 0 additions & 34 deletions SECURITY.md

This file was deleted.

21 changes: 5 additions & 16 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions cli/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,3 @@ To reduce CI failures, run the relevant local checks after finishing a task.
- Do not treat backend E2E as a blocker to add in this repo unless the task specifically requires coordinating with the Capgo repo.

This is critical to prevent hardcoded build paths or MCP regressions from reaching customers.

## Security (do not regress)

Canonical researcher policy: https://github.com/Cap-go/.github/blob/main/SECURITY.md and https://capgo.app/security/.

- Do **not** put GHSA ids or unpublished advisory/PoC text in public PRs, issues, or changelogs.
- Zip / bundle extract and write paths: canonicalize and keep writes inside the intended root. Do not follow symlinks out of the target directory.
- Treat project-controlled config (`localApi`, `localSupa`, app/id paths, custom endpoints) as untrusted for filesystem and network side effects.
- Prefer containment checks before delete or overwrite of paths derived from user/project input.
- Report and fix CLI security issues via private advisories: https://github.com/Cap-go/capgo.app/security/advisories/new
48 changes: 6 additions & 42 deletions cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ For an app that is already configured, upload a new bundle with:
npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel production
```

Cordova projects without `capacitor.config.*`:

```bash
npx @capgo/cli@latest bundle upload com.example.app --mode cordova --path www --channel production
```

## CI Upload Example

```bash
Expand Down Expand Up @@ -148,7 +142,6 @@ Capgo continues to load the root config while writing only the selected source.
- [Add](#app-add)
- [Delete](#app-delete)
- [List](#app-list)
- [Todo](#app-todo)
- [Debug](#app-debug)
- [Setting](#app-setting)
- [Set](#app-set)
Expand All @@ -163,7 +156,7 @@ Capgo continues to load the root config while writing only the selected source.
- [Create](#key-create)
- [Delete_old](#key-delete_old)
- 👤 [Account](#account)
- [Whoami](#account-whoami)
- [Id](#account-id)
- 🔹 [Organization](#organization)
- [List](#organization-list)
- [Add](#organization-add)
Expand Down Expand Up @@ -391,7 +384,6 @@ npx @capgo/cli@latest bundle upload
Version must be > 0.0.0 and unique. Deleted versions cannot be reused for security.
External option: Store only a URL link (useful for apps >200MB or privacy requirements).
Capgo never inspects external content. Add encryption for trustless security.
Cordova example: npx @capgo/cli@latest bundle upload com.example.app --mode cordova --path www --channel production

**Example:**

Expand All @@ -404,8 +396,7 @@ npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel prod
| Param | Type | Description |
| -------------- | ------------- | -------------------- |
| **-a** | <code>string</code> | API key to link to your account |
| **--mode** | <code>string</code> | Project framework mode. Use cordova for Cordova apps without capacitor.config (webDir defaults to www) |
| **-p** | <code>string</code> | Path of the folder to upload, if not provided it will use the webDir set in capacitor.config (or www with --mode cordova) |
| **-p** | <code>string</code> | Path of the folder to upload, if not provided it will use the webDir set in capacitor.config |
| **-c** | <code>string</code> | Channel to link to. Use commas for multiple channels, for example production,beta |
| **--rollout** | <code>string</code> | Set the uploaded bundle as this channel's rollout target at a percentage from 0 to 100 |
| **--rollout-percentage-bps** | <code>string</code> | Set the uploaded bundle rollout percentage in basis points from 0 to 10000 |
Expand Down Expand Up @@ -752,31 +743,6 @@ npx @capgo/cli@latest app list
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |

### <a id="app-todo"></a> 🔹 **Todo**

**Alias:** `todoList`

```bash
npx @capgo/cli@latest app todo
```

📋 Show your app's onboarding todo list with done, skipped, and pending tasks.
Uses the same live progress checks as the Capgo dashboard. The app ID can be inferred from your Capacitor project.

**Example:**

```bash
npx @capgo/cli@latest app todo com.example.app
```

**Options:**

| Param | Type | Description |
| -------------- | ------------- | -------------------- |
| **-a** | <code>string</code> | API key to link to your account |
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |

### <a id="app-debug"></a> 🐞 **Debug**

```bash
Expand Down Expand Up @@ -1119,20 +1085,18 @@ npx @capgo/cli@latest key delete_old

👤 Manage your Capgo account details and retrieve information for support or collaboration.

### <a id="account-whoami"></a> 🔹 **Whoami**

**Alias:** `id`
### <a id="account-id"></a> 🔹 **Id**

```bash
npx @capgo/cli@latest account whoami
npx @capgo/cli@latest account id
```

🪪 Retrieve your account ID and email address.
🪪 Retrieve your account ID, safe to share for collaboration or support purposes in Discord or other platforms.

**Example:**

```bash
npx @capgo/cli@latest account whoami
npx @capgo/cli@latest account id
```

**Options:**
Expand Down
38 changes: 0 additions & 38 deletions cli/SECURITY.md

This file was deleted.

4 changes: 2 additions & 2 deletions cli/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@ const fixCapacitorCliDirname = {

// Build CLI
const buildCLI = Bun.build({
entrypoints: ['src/index.ts', 'src/onboarding-worker.ts', 'src/notify-app-ready-worker.ts', 'src/updater-installed-worker.ts'],
entrypoints: ['src/index.ts'],
target: 'node',
outdir: 'dist',
external: [...EXTERNAL_PACKAGES, 'typescript'],
external: EXTERNAL_PACKAGES,
sourcemap: env.NODE_ENV === 'development' ? 'linked' : 'none',
minify: true,
// Keep env access runtime-only unless explicitly defined below.
Expand Down
Loading
Loading