pgflow 0.0.1-prealpha.0 → 0.0.12
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.
- package/CHANGELOG.md +13 -0
- package/LICENSE.md +660 -0
- package/eslint.config.cjs +3 -0
- package/package.json +13 -6
- package/project.json +40 -0
- package/src/commands/install/copy-migrations.ts +101 -0
- package/src/commands/install/index.ts +45 -0
- package/src/commands/install/supabase-path-prompt.ts +28 -0
- package/src/commands/install/update-config-toml.ts +130 -0
- package/src/index.ts +76 -0
- package/src/types.d.ts +1 -0
- package/tsconfig.json +20 -0
- package/tsconfig.lib.json +19 -0
- package/tsconfig.spec.json +33 -0
- package/vite.config.ts +25 -0
- package/dist/node_modules/.package-lock.json +0 -129
- package/dist/node_modules/@commander-js/extra-typings/LICENSE +0 -21
- package/dist/node_modules/@commander-js/extra-typings/README.md +0 -66
- package/dist/node_modules/@commander-js/extra-typings/esm.d.mts +0 -2
- package/dist/node_modules/@commander-js/extra-typings/esm.mjs +0 -16
- package/dist/node_modules/@commander-js/extra-typings/index.d.ts +0 -1467
- package/dist/node_modules/@commander-js/extra-typings/index.js +0 -25
- package/dist/node_modules/@commander-js/extra-typings/package.json +0 -63
- package/dist/node_modules/@esbuild/linux-x64/README.md +0 -3
- package/dist/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/dist/node_modules/@esbuild/linux-x64/package.json +0 -20
- package/dist/node_modules/commander/LICENSE +0 -22
- package/dist/node_modules/commander/Readme.md +0 -1149
- package/dist/node_modules/commander/esm.mjs +0 -16
- package/dist/node_modules/commander/index.js +0 -24
- package/dist/node_modules/commander/lib/argument.js +0 -149
- package/dist/node_modules/commander/lib/command.js +0 -2662
- package/dist/node_modules/commander/lib/error.js +0 -39
- package/dist/node_modules/commander/lib/help.js +0 -709
- package/dist/node_modules/commander/lib/option.js +0 -367
- package/dist/node_modules/commander/lib/suggestSimilar.js +0 -101
- package/dist/node_modules/commander/package-support.json +0 -16
- package/dist/node_modules/commander/package.json +0 -82
- package/dist/node_modules/commander/typings/esm.d.mts +0 -3
- package/dist/node_modules/commander/typings/index.d.ts +0 -1045
- package/dist/node_modules/esbuild/LICENSE.md +0 -21
- package/dist/node_modules/esbuild/README.md +0 -3
- package/dist/node_modules/esbuild/bin/esbuild +0 -0
- package/dist/node_modules/esbuild/install.js +0 -287
- package/dist/node_modules/esbuild/lib/main.d.ts +0 -705
- package/dist/node_modules/esbuild/lib/main.js +0 -2251
- package/dist/node_modules/esbuild/package.json +0 -48
- package/dist/node_modules/get-tsconfig/LICENSE +0 -21
- package/dist/node_modules/get-tsconfig/README.md +0 -235
- package/dist/node_modules/get-tsconfig/dist/index.cjs +0 -7
- package/dist/node_modules/get-tsconfig/dist/index.d.cts +0 -1439
- package/dist/node_modules/get-tsconfig/dist/index.d.mts +0 -1439
- package/dist/node_modules/get-tsconfig/dist/index.mjs +0 -7
- package/dist/node_modules/get-tsconfig/package.json +0 -46
- package/dist/node_modules/resolve-pkg-maps/LICENSE +0 -21
- package/dist/node_modules/resolve-pkg-maps/README.md +0 -216
- package/dist/node_modules/resolve-pkg-maps/dist/index.cjs +0 -1
- package/dist/node_modules/resolve-pkg-maps/dist/index.d.cts +0 -11
- package/dist/node_modules/resolve-pkg-maps/dist/index.d.mts +0 -11
- package/dist/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
- package/dist/node_modules/resolve-pkg-maps/package.json +0 -42
- package/dist/node_modules/tsx/LICENSE +0 -21
- package/dist/node_modules/tsx/README.md +0 -32
- package/dist/node_modules/tsx/dist/cjs/api/index.cjs +0 -1
- package/dist/node_modules/tsx/dist/cjs/api/index.d.cts +0 -35
- package/dist/node_modules/tsx/dist/cjs/api/index.d.mts +0 -35
- package/dist/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
- package/dist/node_modules/tsx/dist/cjs/index.cjs +0 -1
- package/dist/node_modules/tsx/dist/cjs/index.mjs +0 -1
- package/dist/node_modules/tsx/dist/cli.cjs +0 -54
- package/dist/node_modules/tsx/dist/cli.mjs +0 -55
- package/dist/node_modules/tsx/dist/client-BQVF1NaW.mjs +0 -1
- package/dist/node_modules/tsx/dist/client-D6NvIMSC.cjs +0 -1
- package/dist/node_modules/tsx/dist/esm/api/index.cjs +0 -1
- package/dist/node_modules/tsx/dist/esm/api/index.d.cts +0 -35
- package/dist/node_modules/tsx/dist/esm/api/index.d.mts +0 -35
- package/dist/node_modules/tsx/dist/esm/api/index.mjs +0 -1
- package/dist/node_modules/tsx/dist/esm/index.cjs +0 -2
- package/dist/node_modules/tsx/dist/esm/index.mjs +0 -2
- package/dist/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
- package/dist/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs +0 -1
- package/dist/node_modules/tsx/dist/index-B4SIRlEU.cjs +0 -16
- package/dist/node_modules/tsx/dist/index-DlKgSVBb.mjs +0 -16
- package/dist/node_modules/tsx/dist/loader.cjs +0 -1
- package/dist/node_modules/tsx/dist/loader.mjs +0 -1
- package/dist/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +0 -1
- package/dist/node_modules/tsx/dist/node-features-roYmp9jK.cjs +0 -1
- package/dist/node_modules/tsx/dist/package--YiorJOq.mjs +0 -1
- package/dist/node_modules/tsx/dist/package-BUuKnQXZ.cjs +0 -1
- package/dist/node_modules/tsx/dist/patch-repl.cjs +0 -1
- package/dist/node_modules/tsx/dist/patch-repl.mjs +0 -1
- package/dist/node_modules/tsx/dist/preflight.cjs +0 -1
- package/dist/node_modules/tsx/dist/preflight.mjs +0 -1
- package/dist/node_modules/tsx/dist/register-C3TE0KFF.mjs +0 -3
- package/dist/node_modules/tsx/dist/register-CVZT-Tul.cjs +0 -1
- package/dist/node_modules/tsx/dist/register-DCnOAxY2.cjs +0 -3
- package/dist/node_modules/tsx/dist/register-RyGUjI6j.mjs +0 -1
- package/dist/node_modules/tsx/dist/repl.cjs +0 -3
- package/dist/node_modules/tsx/dist/repl.mjs +0 -3
- package/dist/node_modules/tsx/dist/require-BnyFnlmk.mjs +0 -1
- package/dist/node_modules/tsx/dist/require-DBpSESet.cjs +0 -1
- package/dist/node_modules/tsx/dist/suppress-warnings.cjs +0 -1
- package/dist/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
- package/dist/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +0 -1
- package/dist/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +0 -1
- package/dist/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
- package/dist/node_modules/tsx/package.json +0 -68
- package/dist/package.json +0 -27
- package/dist/sql/000000_schema.sql +0 -150
- package/dist/sql/000005_create_flow.sql +0 -29
- package/dist/sql/000010_add_step.sql +0 -48
- package/dist/sql/000015_start_ready_steps.sql +0 -45
- package/dist/sql/000020_start_flow.sql +0 -46
- package/dist/sql/000030_read_with_poll_backport.sql +0 -70
- package/dist/sql/000040_poll_for_tasks.sql +0 -100
- package/dist/sql/000045_maybe_complete_run.sql +0 -30
- package/dist/sql/000050_complete_task.sql +0 -98
- package/dist/sql/000055_calculate_retry_delay.sql +0 -11
- package/dist/sql/000060_fail_task.sql +0 -124
- package/dist/sql/000_edge_worker_initial.sql +0 -86
- package/dist/src/commands/install.d.ts +0 -4
- package/dist/src/commands/install.d.ts.map +0 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lockfileVersion": 3,
|
|
3
|
-
"requires": true,
|
|
4
|
-
"packages": {
|
|
5
|
-
"node_modules/@commander-js/extra-typings": {
|
|
6
|
-
"version": "13.1.0",
|
|
7
|
-
"resolved": "https://registry.npmjs.org/@commander-js/extra-typings/-/extra-typings-13.1.0.tgz",
|
|
8
|
-
"integrity": "sha512-q5P52BYb1hwVWE6dtID7VvuJWrlfbCv4klj7BjUUOqMz4jbSZD4C9fJ9lRjL2jnBGTg+gDDlaXN51rkWcLk4fg==",
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"peerDependencies": {
|
|
11
|
-
"commander": "~13.1.0"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"node_modules/@esbuild/linux-x64": {
|
|
15
|
-
"version": "0.25.2",
|
|
16
|
-
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.2.tgz",
|
|
17
|
-
"integrity": "sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==",
|
|
18
|
-
"cpu": [
|
|
19
|
-
"x64"
|
|
20
|
-
],
|
|
21
|
-
"dev": true,
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"optional": true,
|
|
24
|
-
"os": [
|
|
25
|
-
"linux"
|
|
26
|
-
],
|
|
27
|
-
"engines": {
|
|
28
|
-
"node": ">=18"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"node_modules/commander": {
|
|
32
|
-
"version": "13.1.0",
|
|
33
|
-
"resolved": "https://registry.npmjs.org/commander/-/commander-13.1.0.tgz",
|
|
34
|
-
"integrity": "sha512-/rFeCpNJQbhSZjGVwO9RFV3xPqbnERS8MmIQzCtD/zl6gpJuV/bMLuN92oG3F7d8oDEHHRrujSXNUr8fpjntKw==",
|
|
35
|
-
"license": "MIT",
|
|
36
|
-
"engines": {
|
|
37
|
-
"node": ">=18"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"node_modules/esbuild": {
|
|
41
|
-
"version": "0.25.2",
|
|
42
|
-
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.2.tgz",
|
|
43
|
-
"integrity": "sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==",
|
|
44
|
-
"dev": true,
|
|
45
|
-
"hasInstallScript": true,
|
|
46
|
-
"license": "MIT",
|
|
47
|
-
"bin": {
|
|
48
|
-
"esbuild": "bin/esbuild"
|
|
49
|
-
},
|
|
50
|
-
"engines": {
|
|
51
|
-
"node": ">=18"
|
|
52
|
-
},
|
|
53
|
-
"optionalDependencies": {
|
|
54
|
-
"@esbuild/aix-ppc64": "0.25.2",
|
|
55
|
-
"@esbuild/android-arm": "0.25.2",
|
|
56
|
-
"@esbuild/android-arm64": "0.25.2",
|
|
57
|
-
"@esbuild/android-x64": "0.25.2",
|
|
58
|
-
"@esbuild/darwin-arm64": "0.25.2",
|
|
59
|
-
"@esbuild/darwin-x64": "0.25.2",
|
|
60
|
-
"@esbuild/freebsd-arm64": "0.25.2",
|
|
61
|
-
"@esbuild/freebsd-x64": "0.25.2",
|
|
62
|
-
"@esbuild/linux-arm": "0.25.2",
|
|
63
|
-
"@esbuild/linux-arm64": "0.25.2",
|
|
64
|
-
"@esbuild/linux-ia32": "0.25.2",
|
|
65
|
-
"@esbuild/linux-loong64": "0.25.2",
|
|
66
|
-
"@esbuild/linux-mips64el": "0.25.2",
|
|
67
|
-
"@esbuild/linux-ppc64": "0.25.2",
|
|
68
|
-
"@esbuild/linux-riscv64": "0.25.2",
|
|
69
|
-
"@esbuild/linux-s390x": "0.25.2",
|
|
70
|
-
"@esbuild/linux-x64": "0.25.2",
|
|
71
|
-
"@esbuild/netbsd-arm64": "0.25.2",
|
|
72
|
-
"@esbuild/netbsd-x64": "0.25.2",
|
|
73
|
-
"@esbuild/openbsd-arm64": "0.25.2",
|
|
74
|
-
"@esbuild/openbsd-x64": "0.25.2",
|
|
75
|
-
"@esbuild/sunos-x64": "0.25.2",
|
|
76
|
-
"@esbuild/win32-arm64": "0.25.2",
|
|
77
|
-
"@esbuild/win32-ia32": "0.25.2",
|
|
78
|
-
"@esbuild/win32-x64": "0.25.2"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"node_modules/get-tsconfig": {
|
|
82
|
-
"version": "4.10.0",
|
|
83
|
-
"resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.0.tgz",
|
|
84
|
-
"integrity": "sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==",
|
|
85
|
-
"dev": true,
|
|
86
|
-
"license": "MIT",
|
|
87
|
-
"dependencies": {
|
|
88
|
-
"resolve-pkg-maps": "^1.0.0"
|
|
89
|
-
},
|
|
90
|
-
"funding": {
|
|
91
|
-
"url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"node_modules/pgflow": {
|
|
95
|
-
"resolved": "",
|
|
96
|
-
"link": true
|
|
97
|
-
},
|
|
98
|
-
"node_modules/resolve-pkg-maps": {
|
|
99
|
-
"version": "1.0.0",
|
|
100
|
-
"resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
|
|
101
|
-
"integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
|
|
102
|
-
"dev": true,
|
|
103
|
-
"license": "MIT",
|
|
104
|
-
"funding": {
|
|
105
|
-
"url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"node_modules/tsx": {
|
|
109
|
-
"version": "4.19.3",
|
|
110
|
-
"resolved": "https://registry.npmjs.org/tsx/-/tsx-4.19.3.tgz",
|
|
111
|
-
"integrity": "sha512-4H8vUNGNjQ4V2EOoGw005+c+dGuPSnhpPBPHBtsZdGZBk/iJb4kguGlPWaZTZ3q5nMtFOEsY0nRDlh9PJyd6SQ==",
|
|
112
|
-
"dev": true,
|
|
113
|
-
"license": "MIT",
|
|
114
|
-
"dependencies": {
|
|
115
|
-
"esbuild": "~0.25.0",
|
|
116
|
-
"get-tsconfig": "^4.7.5"
|
|
117
|
-
},
|
|
118
|
-
"bin": {
|
|
119
|
-
"tsx": "dist/cli.mjs"
|
|
120
|
-
},
|
|
121
|
-
"engines": {
|
|
122
|
-
"node": ">=18.0.0"
|
|
123
|
-
},
|
|
124
|
-
"optionalDependencies": {
|
|
125
|
-
"fsevents": "~2.3.3"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 commander-js
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# extra-typings for commander
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.org/package/@commander-js/extra-typings)
|
|
4
|
-
[](https://npmcharts.com/compare/@commander-js/extra-typings?minimal=true)
|
|
5
|
-
|
|
6
|
-
This package offers TypeScript typings for `commander` which infer strong types for:
|
|
7
|
-
|
|
8
|
-
- all the parameters of the action handler, including the options
|
|
9
|
-
- options returned by `.opts()`
|
|
10
|
-
|
|
11
|
-
This package requires TypeScript 5.0 or higher.
|
|
12
|
-
|
|
13
|
-
The runtime is supplied by commander. This package is all about the typings.
|
|
14
|
-
|
|
15
|
-
Usage
|
|
16
|
-
|
|
17
|
-
- install `@commander-js/extra-typings` using your preferred package manager
|
|
18
|
-
- install `commander`, if not already installed (peer dependency)
|
|
19
|
-
- in code import from `@commander-js/extra-typings` instead of `commander`
|
|
20
|
-
|
|
21
|
-
The installed version of this package should match the major and minor version numbers of the installed commander package, but the patch version number is independent (following pattern used by [Definitely Typed](https://github.com/DefinitelyTyped/DefinitelyTyped#how-do-definitely-typed-package-versions-relate-to-versions-of-the-corresponding-library)).
|
|
22
|
-
|
|
23
|
-
Credit: this builds on work by @PaperStrike in <https://github.com/tj/commander.js/pull/1758>
|
|
24
|
-
|
|
25
|
-
## Limitations
|
|
26
|
-
|
|
27
|
-
- the generics lead to some noisy types visible in editor and errors
|
|
28
|
-
- some minor code changes required for subclasses of `Command`, `Argument`, or `Option` (see [subclass.test-d.ts](./tests/subclass.test-d.ts))
|
|
29
|
-
- chaining methods which do type inference return base class rather than `this`
|
|
30
|
-
- subclass of `Command` returns base class not subclass from `.command(name)`
|
|
31
|
-
- type parameter needed for class declaration of subclass of `Option` and `Argument`
|
|
32
|
-
|
|
33
|
-
## Usage tips
|
|
34
|
-
|
|
35
|
-
The types are built up as the options and arguments are defined. The usage pattern for action handlers is easy. Just chain the action handler after the options and arguments.
|
|
36
|
-
|
|
37
|
-
```typescript
|
|
38
|
-
import { program } from '@commander-js/extra-typings';
|
|
39
|
-
|
|
40
|
-
program.command('print')
|
|
41
|
-
.argument('<file>')
|
|
42
|
-
.option('--double-sided')
|
|
43
|
-
.action((targetFile, options) => {
|
|
44
|
-
// command-arguments and options are fully typed
|
|
45
|
-
});
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
For working with a single command without an action handler, the configuration need to be done at the same time as the variable is declared.
|
|
49
|
-
|
|
50
|
-
```typescript
|
|
51
|
-
import { Command } from '@commander-js/extra-typings';
|
|
52
|
-
|
|
53
|
-
// broken pattern
|
|
54
|
-
const program = new Command(); // program type does not include options or arguments
|
|
55
|
-
program.option('-d, --debug'); // adding option does not change type of program
|
|
56
|
-
const options = program.opts(); // dumb type
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
```typescript
|
|
60
|
-
import { Command } from '@commander-js/extra-typings';
|
|
61
|
-
|
|
62
|
-
// working pattern
|
|
63
|
-
const program = new Command()
|
|
64
|
-
.option('-d, --debug'); // program type includes chained options and arguments
|
|
65
|
-
const options = program.opts(); // smart type
|
|
66
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import extraTypingsCommander from './index.js';
|
|
2
|
-
|
|
3
|
-
// wrapper to provide named exports for ESM.
|
|
4
|
-
export const {
|
|
5
|
-
program,
|
|
6
|
-
createCommand,
|
|
7
|
-
createArgument,
|
|
8
|
-
createOption,
|
|
9
|
-
CommanderError,
|
|
10
|
-
InvalidArgumentError,
|
|
11
|
-
InvalidOptionArgumentError, // deprecated old name
|
|
12
|
-
Command,
|
|
13
|
-
Argument,
|
|
14
|
-
Option,
|
|
15
|
-
Help,
|
|
16
|
-
} = extraTypingsCommander;
|