@capgo/cli 4.13.9 → 4.13.10-beta.0

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.
Files changed (57) hide show
  1. package/dist/index.js +381 -114689
  2. package/package.json +33 -33
  3. package/.github/FUNDING.yml +0 -1
  4. package/.github/workflows/build.yml +0 -46
  5. package/.github/workflows/bump_version.yml +0 -56
  6. package/.github/workflows/test.yml +0 -30
  7. package/.prettierignore +0 -6
  8. package/.vscode/launch.json +0 -23
  9. package/.vscode/settings.json +0 -46
  10. package/.vscode/tasks.json +0 -42
  11. package/CHANGELOG.md +0 -2739
  12. package/build.mjs +0 -23
  13. package/bun.lockb +0 -0
  14. package/capacitor.config.ts +0 -33
  15. package/crypto_explained.png +0 -0
  16. package/eslint.config.js +0 -10
  17. package/renovate.json +0 -23
  18. package/src/api/app.ts +0 -55
  19. package/src/api/channels.ts +0 -140
  20. package/src/api/crypto.ts +0 -116
  21. package/src/api/devices_override.ts +0 -41
  22. package/src/api/update.ts +0 -13
  23. package/src/api/versions.ts +0 -101
  24. package/src/app/add.ts +0 -158
  25. package/src/app/debug.ts +0 -222
  26. package/src/app/delete.ts +0 -106
  27. package/src/app/info.ts +0 -90
  28. package/src/app/list.ts +0 -67
  29. package/src/app/set.ts +0 -94
  30. package/src/bundle/check.ts +0 -42
  31. package/src/bundle/cleanup.ts +0 -127
  32. package/src/bundle/compatibility.ts +0 -70
  33. package/src/bundle/decrypt.ts +0 -54
  34. package/src/bundle/delete.ts +0 -53
  35. package/src/bundle/encrypt.ts +0 -60
  36. package/src/bundle/list.ts +0 -43
  37. package/src/bundle/unlink.ts +0 -86
  38. package/src/bundle/upload.ts +0 -532
  39. package/src/bundle/zip.ts +0 -139
  40. package/src/channel/add.ts +0 -74
  41. package/src/channel/currentBundle.ts +0 -72
  42. package/src/channel/delete.ts +0 -52
  43. package/src/channel/list.ts +0 -49
  44. package/src/channel/set.ts +0 -178
  45. package/src/index.ts +0 -307
  46. package/src/init.ts +0 -342
  47. package/src/key.ts +0 -131
  48. package/src/login.ts +0 -70
  49. package/src/types/capacitor__cli.d.ts +0 -6
  50. package/src/types/supabase.types.ts +0 -2193
  51. package/src/user/account.ts +0 -11
  52. package/src/utils.ts +0 -956
  53. package/test/chunk_convert.ts +0 -28
  54. package/test/data.ts +0 -18769
  55. package/test/test_headers_rls.ts +0 -24
  56. package/test/test_semver.ts +0 -13
  57. package/tsconfig.json +0 -39
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
- "version": "4.13.9",
3
+ "version": "4.13.10-beta.0",
4
4
  "description": "A CLI to upload to capgo servers",
5
5
  "author": "github.com/riderx",
6
6
  "license": "Apache 2.0",
@@ -33,58 +33,58 @@
33
33
  },
34
34
  "scripts": {
35
35
  "build": "node build.mjs",
36
- "dev": "NODE_ENV=development node build.mjs",
36
+ "dev": "NODE_ENV=development ncc build",
37
37
  "no-debug": "node dist/index.js",
38
38
  "test": "npx --yes ts-node -T src/index.ts",
39
- "dev-build": "SUPA_DB=development node build.mjs",
39
+ "dev-build": "SUPA_DB=development ncc build",
40
40
  "pack": "pkg",
41
41
  "types": "npx --yes supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",
42
42
  "test_rls": "ts-node ./test/test_headers_rls.ts",
43
- "lint": "eslint \"src/**/*.ts\" --fix"
43
+ "lint": "eslint \"src/**/*.ts\" --fix",
44
+ "check-posix-paths": "node test/check-posix-paths.js"
44
45
  },
45
- "dependencies": {
46
- "@aws-sdk/client-s3": "^3.574.0",
47
- "@capacitor/cli": "6.0.0",
46
+ "devDependencies": {
47
+ "@antfu/eslint-config": "^2.23.0",
48
+ "@bradenmacdonald/s3-lite-client": "npm:@jsr/bradenmacdonald__s3-lite-client",
49
+ "@capacitor/cli": "^6.1.1",
48
50
  "@capgo/find-package-manager": "^0.0.17",
49
51
  "@clack/prompts": "^0.7.0",
50
52
  "@manypkg/find-root": "^2.2.1",
51
- "@supabase/supabase-js": "^2.43.1",
53
+ "@supabase/supabase-js": "^2.44.4",
52
54
  "@tomasklaen/checksum": "^1.1.0",
53
- "@trufflesuite/spinnies": "^0.1.1",
54
- "adm-zip": "^0.5.12",
55
- "ci-info": "^4.0.0",
56
- "commander": "12.0.0",
57
- "console-table-printer": "^2.12.0",
58
- "get-latest-version": "^5.1.0",
59
- "ky": "^1.2.4",
60
- "logsnag": "1.0.0",
61
- "mime": "^4.0.3",
62
- "node-dir": "^0.1.17",
63
- "open": "^10.1.0",
64
- "prettyjson": "^1.2.5",
65
- "prompt-sync": "^4.2.0",
66
- "semver": "^7.6.2"
67
- },
68
- "devDependencies": {
69
- "@antfu/eslint-config": "^2.17.0",
70
55
  "@types/adm-zip": "0.5.5",
71
56
  "@types/mime": "^4.0.0",
72
- "@types/node": "^20.12.7",
73
- "@types/node-dir": "^0.0.37",
57
+ "@types/node": "^20.14.11",
74
58
  "@types/npmcli__ci-detect": "^2.0.3",
75
59
  "@types/prettyjson": "^0.0.33",
76
60
  "@types/prompt-sync": "^4.2.3",
77
61
  "@types/semver": "^7.5.8",
78
- "@typescript-eslint/eslint-plugin": "^7.8.0",
79
- "@typescript-eslint/parser": "^7.8.0",
80
- "esbuild": "^0.21.2",
81
- "eslint": "9.1.1",
62
+ "@types/tmp": "^0.2.6",
63
+ "@typescript-eslint/eslint-plugin": "^7.16.1",
64
+ "@typescript-eslint/parser": "^7.16.1",
65
+ "@vercel/ncc": "^0.38.1",
66
+ "adm-zip": "^0.5.14",
67
+ "ci-info": "^4.0.0",
68
+ "commander": "12.1.0",
69
+ "console-table-printer": "^2.12.1",
70
+ "esbuild": "^0.23.0",
71
+ "eslint": "9.7.0",
72
+ "get-latest-version": "^5.1.0",
82
73
  "git-format-staged": "3.1.1",
83
- "husky": "^9.0.11",
74
+ "husky": "^9.1.1",
75
+ "is-wsl": "^3.1.0",
76
+ "jszip": "^3.10.1",
77
+ "ky": "^1.4.0",
78
+ "logsnag": "1.0.0",
79
+ "mime": "^4.0.4",
80
+ "open": "^10.1.0",
84
81
  "pkg": "5.8.1",
82
+ "prettyjson": "^1.2.5",
83
+ "semver": "^7.6.2",
84
+ "tmp": "^0.2.3",
85
85
  "ts-loader": "^9.5.1",
86
86
  "ts-node": "^10.9.2",
87
87
  "tsconfig-paths": "4.2.0",
88
- "typescript": "5.4.5"
88
+ "typescript": "5.5.3"
89
89
  }
90
90
  }
@@ -1 +0,0 @@
1
- github: riderx
@@ -1,46 +0,0 @@
1
- name: Build source code and send to Capgo
2
-
3
- on:
4
- push:
5
- tags:
6
- - "*"
7
-
8
- jobs:
9
- deploy:
10
- runs-on: ubuntu-latest
11
- name: "Build code and release"
12
- permissions:
13
- contents: read
14
- id-token: write
15
- steps:
16
- - name: Checkout
17
- uses: actions/checkout@v4
18
- with:
19
- fetch-depth: 0
20
- - name: Setup bun
21
- uses: oven-sh/setup-bun@v1.1.1
22
- with:
23
- bun-version: latest
24
- - name: Install dependencies
25
- id: install_code
26
- run: bun install --frozen-lockfile
27
- - name: Lint
28
- id: lint_code
29
- run: bun lint
30
- - name: Build
31
- id: build_code
32
- run: bun run build
33
- - name: Run
34
- id: run_cli
35
- run: node dist/index.js --help
36
- - uses: JS-DevTools/npm-publish@v3
37
- if: ${{ !contains(github.ref, '-alpha.') }}
38
- with:
39
- token: ${{ secrets.NPM_TOKEN }}
40
- provenance: true
41
- - uses: JS-DevTools/npm-publish@v3
42
- if: ${{ contains(github.ref, '-alpha.') }}
43
- with:
44
- token: ${{ secrets.NPM_TOKEN }}
45
- tag: next
46
- provenance: true
@@ -1,56 +0,0 @@
1
- name: Bump version
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
- - development
8
-
9
- jobs:
10
- bump-version:
11
- if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
12
- runs-on: ubuntu-latest
13
- name: "Bump version and create changelog with standard version"
14
- steps:
15
- - name: Checkout
16
- uses: actions/checkout@v4
17
- with:
18
- fetch-depth: 0
19
- token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
20
- - name: Setup bun
21
- uses: oven-sh/setup-bun@v1.1.1
22
- with:
23
- bun-version: latest
24
- - name: Install dependencies
25
- id: install_code
26
- run: bun install --frozen-lockfile
27
- - name: Git config
28
- run: |
29
- git config --local user.name "github-actions[bot]"
30
- git config --local user.email "github-actions[bot]@users.noreply.github.com"
31
- - name: Create bump and changelog main
32
- if: github.ref == 'refs/heads/main'
33
- run: npx standard-version
34
- - name: Create bump and changelog development
35
- if: github.ref != 'refs/heads/main'
36
- run: npx standard-version --prerelease alpha
37
- - name: Push to origin
38
- run: |
39
- CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
40
- remote_repo="https://${GITHUB_ACTOR}:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
41
- git pull $remote_repo $CURRENT_BRANCH
42
- git push $remote_repo HEAD:$CURRENT_BRANCH --follow-tags --tags
43
- create-cache:
44
- if: ${{ !startsWith(github.event.head_commit.message, 'chore(release):') }}
45
- runs-on: ubuntu-latest
46
- name: "Create global cache on main branch"
47
- steps:
48
- - name: Checkout
49
- uses: actions/checkout@v4
50
- - name: Setup bun
51
- uses: oven-sh/setup-bun@v1.1.1
52
- with:
53
- bun-version: latest
54
- - name: Install dependencies
55
- id: install_code
56
- run: bun install --frozen-lockfile
@@ -1,30 +0,0 @@
1
- name: Build source code and test it
2
-
3
- on:
4
- push:
5
- branches:
6
- - renovate/**
7
-
8
- jobs:
9
- web:
10
- runs-on: ubuntu-latest
11
- name: "Build code and test"
12
- steps:
13
- - name: Check out
14
- uses: actions/checkout@v4
15
- - name: Setup bun
16
- uses: oven-sh/setup-bun@v1.1.1
17
- with:
18
- bun-version: latest
19
- - name: Install dependencies
20
- id: install_code
21
- run: bun install --frozen-lockfile
22
- - name: Lint
23
- id: lint_code
24
- run: bun run lint
25
- - name: Build
26
- id: build_code
27
- run: bun run build
28
- - name: Run
29
- id: run_cli
30
- run: node dist/index.js --help
package/.prettierignore DELETED
@@ -1,6 +0,0 @@
1
- dist
2
- __tests__/data
3
- __tests__/fixtures
4
- coverage
5
- output
6
- sample
@@ -1,23 +0,0 @@
1
- {
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
- "version": "0.2.0",
6
-
7
- "configurations": [
8
- {
9
- "type": "node",
10
- "request": "launch",
11
- "name": "Launch",
12
- "program": "${workspaceFolder}/dist/index.js",
13
- "args": ["-u", "Edwin Hubble", "-w", "y"]
14
- },
15
- {
16
- "type": "node",
17
- "request": "launch",
18
- "name": "Launch with other params",
19
- "program": "${workspaceFolder}/dist/index.js",
20
- "args": ["-u", "Enrico Fermi", "-w", "y"]
21
- }
22
- ]
23
- }
@@ -1,46 +0,0 @@
1
- {
2
- // Enable the ESlint flat config support
3
- "eslint.experimental.useFlatConfig": true,
4
-
5
- // Disable the default formatter, use eslint instead
6
- "prettier.enable": false,
7
- "editor.formatOnSave": false,
8
- "javascript.format.enable": false,
9
-
10
- // Auto fix
11
- "editor.codeActionsOnSave": {
12
- "source.fixAll.eslint": "explicit",
13
- "source.organizeImports": "never"
14
- },
15
-
16
- // Silent the stylistic rules in you IDE, but still auto fix them
17
- "eslint.rules.customizations": [
18
- { "rule": "style/*", "severity": "off" },
19
- { "rule": "format/*", "severity": "off" },
20
- { "rule": "*-indent", "severity": "off" },
21
- { "rule": "*-spacing", "severity": "off" },
22
- { "rule": "*-spaces", "severity": "off" },
23
- { "rule": "*-order", "severity": "off" },
24
- { "rule": "*-dangle", "severity": "off" },
25
- { "rule": "*-newline", "severity": "off" },
26
- { "rule": "*quotes", "severity": "off" },
27
- { "rule": "*semi", "severity": "off" }
28
- ],
29
-
30
- // Enable eslint for all supported languages
31
- "eslint.validate": [
32
- "javascript",
33
- "javascriptreact",
34
- "typescript",
35
- "typescriptreact",
36
- "vue",
37
- "html",
38
- "markdown",
39
- "json",
40
- "jsonc",
41
- "yaml",
42
- "toml",
43
- "gql",
44
- "graphql"
45
- ]
46
- }
@@ -1,42 +0,0 @@
1
- {
2
- // See https://go.microsoft.com/fwlink/?LinkId=733558
3
- // for the documentation about the tasks.json format
4
- "version": "2.0.0",
5
- "tasks": [
6
- {
7
- "type": "typescript",
8
- "tsconfig": "tsconfig.json",
9
- "problemMatcher": ["$tsc"],
10
- "group": "build"
11
- },
12
- {
13
- "type": "shell",
14
- "label": "webpack dev",
15
- "command": "npx",
16
- "options": {
17
- "env": {
18
- "NODE_ENV": "development"
19
- }
20
- },
21
- "isBackground": true,
22
- "args": ["webpack", "--config webpack.config.js"],
23
- "problemMatcher": [
24
- {
25
- "pattern": [
26
- {
27
- "regexp": ".",
28
- "file": 1,
29
- "location": 2,
30
- "message": 3
31
- }
32
- ],
33
- "background": {
34
- "activeOnStart": true,
35
- "beginsPattern": ".",
36
- "endsPattern": ".",
37
- }
38
- }
39
- ]
40
- }
41
- ]
42
- }