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.
Files changed (125) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE.md +660 -0
  3. package/eslint.config.cjs +3 -0
  4. package/package.json +13 -6
  5. package/project.json +40 -0
  6. package/src/commands/install/copy-migrations.ts +101 -0
  7. package/src/commands/install/index.ts +45 -0
  8. package/src/commands/install/supabase-path-prompt.ts +28 -0
  9. package/src/commands/install/update-config-toml.ts +130 -0
  10. package/src/index.ts +76 -0
  11. package/src/types.d.ts +1 -0
  12. package/tsconfig.json +20 -0
  13. package/tsconfig.lib.json +19 -0
  14. package/tsconfig.spec.json +33 -0
  15. package/vite.config.ts +25 -0
  16. package/dist/node_modules/.package-lock.json +0 -129
  17. package/dist/node_modules/@commander-js/extra-typings/LICENSE +0 -21
  18. package/dist/node_modules/@commander-js/extra-typings/README.md +0 -66
  19. package/dist/node_modules/@commander-js/extra-typings/esm.d.mts +0 -2
  20. package/dist/node_modules/@commander-js/extra-typings/esm.mjs +0 -16
  21. package/dist/node_modules/@commander-js/extra-typings/index.d.ts +0 -1467
  22. package/dist/node_modules/@commander-js/extra-typings/index.js +0 -25
  23. package/dist/node_modules/@commander-js/extra-typings/package.json +0 -63
  24. package/dist/node_modules/@esbuild/linux-x64/README.md +0 -3
  25. package/dist/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
  26. package/dist/node_modules/@esbuild/linux-x64/package.json +0 -20
  27. package/dist/node_modules/commander/LICENSE +0 -22
  28. package/dist/node_modules/commander/Readme.md +0 -1149
  29. package/dist/node_modules/commander/esm.mjs +0 -16
  30. package/dist/node_modules/commander/index.js +0 -24
  31. package/dist/node_modules/commander/lib/argument.js +0 -149
  32. package/dist/node_modules/commander/lib/command.js +0 -2662
  33. package/dist/node_modules/commander/lib/error.js +0 -39
  34. package/dist/node_modules/commander/lib/help.js +0 -709
  35. package/dist/node_modules/commander/lib/option.js +0 -367
  36. package/dist/node_modules/commander/lib/suggestSimilar.js +0 -101
  37. package/dist/node_modules/commander/package-support.json +0 -16
  38. package/dist/node_modules/commander/package.json +0 -82
  39. package/dist/node_modules/commander/typings/esm.d.mts +0 -3
  40. package/dist/node_modules/commander/typings/index.d.ts +0 -1045
  41. package/dist/node_modules/esbuild/LICENSE.md +0 -21
  42. package/dist/node_modules/esbuild/README.md +0 -3
  43. package/dist/node_modules/esbuild/bin/esbuild +0 -0
  44. package/dist/node_modules/esbuild/install.js +0 -287
  45. package/dist/node_modules/esbuild/lib/main.d.ts +0 -705
  46. package/dist/node_modules/esbuild/lib/main.js +0 -2251
  47. package/dist/node_modules/esbuild/package.json +0 -48
  48. package/dist/node_modules/get-tsconfig/LICENSE +0 -21
  49. package/dist/node_modules/get-tsconfig/README.md +0 -235
  50. package/dist/node_modules/get-tsconfig/dist/index.cjs +0 -7
  51. package/dist/node_modules/get-tsconfig/dist/index.d.cts +0 -1439
  52. package/dist/node_modules/get-tsconfig/dist/index.d.mts +0 -1439
  53. package/dist/node_modules/get-tsconfig/dist/index.mjs +0 -7
  54. package/dist/node_modules/get-tsconfig/package.json +0 -46
  55. package/dist/node_modules/resolve-pkg-maps/LICENSE +0 -21
  56. package/dist/node_modules/resolve-pkg-maps/README.md +0 -216
  57. package/dist/node_modules/resolve-pkg-maps/dist/index.cjs +0 -1
  58. package/dist/node_modules/resolve-pkg-maps/dist/index.d.cts +0 -11
  59. package/dist/node_modules/resolve-pkg-maps/dist/index.d.mts +0 -11
  60. package/dist/node_modules/resolve-pkg-maps/dist/index.mjs +0 -1
  61. package/dist/node_modules/resolve-pkg-maps/package.json +0 -42
  62. package/dist/node_modules/tsx/LICENSE +0 -21
  63. package/dist/node_modules/tsx/README.md +0 -32
  64. package/dist/node_modules/tsx/dist/cjs/api/index.cjs +0 -1
  65. package/dist/node_modules/tsx/dist/cjs/api/index.d.cts +0 -35
  66. package/dist/node_modules/tsx/dist/cjs/api/index.d.mts +0 -35
  67. package/dist/node_modules/tsx/dist/cjs/api/index.mjs +0 -1
  68. package/dist/node_modules/tsx/dist/cjs/index.cjs +0 -1
  69. package/dist/node_modules/tsx/dist/cjs/index.mjs +0 -1
  70. package/dist/node_modules/tsx/dist/cli.cjs +0 -54
  71. package/dist/node_modules/tsx/dist/cli.mjs +0 -55
  72. package/dist/node_modules/tsx/dist/client-BQVF1NaW.mjs +0 -1
  73. package/dist/node_modules/tsx/dist/client-D6NvIMSC.cjs +0 -1
  74. package/dist/node_modules/tsx/dist/esm/api/index.cjs +0 -1
  75. package/dist/node_modules/tsx/dist/esm/api/index.d.cts +0 -35
  76. package/dist/node_modules/tsx/dist/esm/api/index.d.mts +0 -35
  77. package/dist/node_modules/tsx/dist/esm/api/index.mjs +0 -1
  78. package/dist/node_modules/tsx/dist/esm/index.cjs +0 -2
  79. package/dist/node_modules/tsx/dist/esm/index.mjs +0 -2
  80. package/dist/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +0 -1
  81. package/dist/node_modules/tsx/dist/get-pipe-path-BoR10qr8.cjs +0 -1
  82. package/dist/node_modules/tsx/dist/index-B4SIRlEU.cjs +0 -16
  83. package/dist/node_modules/tsx/dist/index-DlKgSVBb.mjs +0 -16
  84. package/dist/node_modules/tsx/dist/loader.cjs +0 -1
  85. package/dist/node_modules/tsx/dist/loader.mjs +0 -1
  86. package/dist/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +0 -1
  87. package/dist/node_modules/tsx/dist/node-features-roYmp9jK.cjs +0 -1
  88. package/dist/node_modules/tsx/dist/package--YiorJOq.mjs +0 -1
  89. package/dist/node_modules/tsx/dist/package-BUuKnQXZ.cjs +0 -1
  90. package/dist/node_modules/tsx/dist/patch-repl.cjs +0 -1
  91. package/dist/node_modules/tsx/dist/patch-repl.mjs +0 -1
  92. package/dist/node_modules/tsx/dist/preflight.cjs +0 -1
  93. package/dist/node_modules/tsx/dist/preflight.mjs +0 -1
  94. package/dist/node_modules/tsx/dist/register-C3TE0KFF.mjs +0 -3
  95. package/dist/node_modules/tsx/dist/register-CVZT-Tul.cjs +0 -1
  96. package/dist/node_modules/tsx/dist/register-DCnOAxY2.cjs +0 -3
  97. package/dist/node_modules/tsx/dist/register-RyGUjI6j.mjs +0 -1
  98. package/dist/node_modules/tsx/dist/repl.cjs +0 -3
  99. package/dist/node_modules/tsx/dist/repl.mjs +0 -3
  100. package/dist/node_modules/tsx/dist/require-BnyFnlmk.mjs +0 -1
  101. package/dist/node_modules/tsx/dist/require-DBpSESet.cjs +0 -1
  102. package/dist/node_modules/tsx/dist/suppress-warnings.cjs +0 -1
  103. package/dist/node_modules/tsx/dist/suppress-warnings.mjs +0 -1
  104. package/dist/node_modules/tsx/dist/temporary-directory-B83uKxJF.cjs +0 -1
  105. package/dist/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +0 -1
  106. package/dist/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +0 -5
  107. package/dist/node_modules/tsx/package.json +0 -68
  108. package/dist/package.json +0 -27
  109. package/dist/sql/000000_schema.sql +0 -150
  110. package/dist/sql/000005_create_flow.sql +0 -29
  111. package/dist/sql/000010_add_step.sql +0 -48
  112. package/dist/sql/000015_start_ready_steps.sql +0 -45
  113. package/dist/sql/000020_start_flow.sql +0 -46
  114. package/dist/sql/000030_read_with_poll_backport.sql +0 -70
  115. package/dist/sql/000040_poll_for_tasks.sql +0 -100
  116. package/dist/sql/000045_maybe_complete_run.sql +0 -30
  117. package/dist/sql/000050_complete_task.sql +0 -98
  118. package/dist/sql/000055_calculate_retry_delay.sql +0 -11
  119. package/dist/sql/000060_fail_task.sql +0 -124
  120. package/dist/sql/000_edge_worker_initial.sql +0 -86
  121. package/dist/src/commands/install.d.ts +0 -4
  122. package/dist/src/commands/install.d.ts.map +0 -1
  123. package/dist/src/index.d.ts +0 -2
  124. package/dist/src/index.d.ts.map +0 -1
  125. package/dist/tsconfig.lib.tsbuildinfo +0 -1
@@ -1,25 +0,0 @@
1
- const commander = require('commander');
2
-
3
- exports = module.exports = {};
4
-
5
- // Return a different global program than commander,
6
- // and don't also return it as default export.
7
- exports.program = new commander.Command();
8
-
9
- /**
10
- * Expose classes. The FooT versions are just types, so return Commander original implementations!
11
- */
12
-
13
- exports.Argument = commander.Argument;
14
- exports.Command = commander.Command;
15
- exports.CommanderError = commander.CommanderError;
16
- exports.Help = commander.Help;
17
- exports.InvalidArgumentError = commander.InvalidArgumentError;
18
- exports.InvalidOptionArgumentError = commander.InvalidArgumentError; // Deprecated
19
- exports.Option = commander.Option;
20
-
21
- exports.createCommand = (name) => new commander.Command(name);
22
- exports.createOption = (flags, description) =>
23
- new commander.Option(flags, description);
24
- exports.createArgument = (name, description) =>
25
- new commander.Argument(name, description);
@@ -1,63 +0,0 @@
1
- {
2
- "name": "@commander-js/extra-typings",
3
- "version": "13.1.0",
4
- "description": "Infer strong typings for commander options and action handlers",
5
- "main": "index.js",
6
- "scripts": {
7
- "check": "npm run check:type && npm run check:lint && npm run check:format",
8
- "check:format": "prettier --check .",
9
- "check:lint": "eslint .",
10
- "check:type": "tsd && tsc",
11
- "fix": "npm run fix:lint && npm run fix:format",
12
- "fix:format": "prettier --write .",
13
- "fix:lint": "eslint --fix .",
14
- "prepublishOnly": "npm run --silent test",
15
- "test": "tsd && jest"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/commander-js/extra-typings.git"
20
- },
21
- "files": [
22
- "esm.mjs",
23
- "esm.d.mts",
24
- "index.js",
25
- "index.d.ts"
26
- ],
27
- "type": "commonjs",
28
- "exports": {
29
- ".": {
30
- "require": "./index.js",
31
- "import": "./esm.mjs"
32
- }
33
- },
34
- "types": "index.d.ts",
35
- "tsd": {
36
- "directory": "tests"
37
- },
38
- "keywords": [],
39
- "author": "",
40
- "license": "MIT",
41
- "bugs": {
42
- "url": "https://github.com/commander-js/extra-typings/issues"
43
- },
44
- "homepage": "https://github.com/commander-js/extra-typings#readme",
45
- "peerDependencies": {
46
- "commander": "~13.1.0"
47
- },
48
- "devDependencies": {
49
- "@jest/globals": "^29.3.1",
50
- "@types/node": "^22.10.1",
51
- "commander": "~13.1.0",
52
- "eslint": "^9.16.0",
53
- "eslint-config-prettier": "^10.0.1",
54
- "eslint-plugin-jest": "^28.9.0",
55
- "globals": "^15.0.0",
56
- "jest": "^29.3.1",
57
- "prettier": "^3.2.5",
58
- "ts-jest": "^29.0.5",
59
- "tsd": "^0.31.2",
60
- "typescript": "^5.3.3",
61
- "typescript-eslint": "^8.11.0"
62
- }
63
- }
@@ -1,3 +0,0 @@
1
- # esbuild
2
-
3
- This is the Linux 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
@@ -1,20 +0,0 @@
1
- {
2
- "name": "@esbuild/linux-x64",
3
- "version": "0.25.2",
4
- "description": "The Linux 64-bit binary for esbuild, a JavaScript bundler.",
5
- "repository": {
6
- "type": "git",
7
- "url": "git+https://github.com/evanw/esbuild.git"
8
- },
9
- "license": "MIT",
10
- "preferUnplugged": true,
11
- "engines": {
12
- "node": ">=18"
13
- },
14
- "os": [
15
- "linux"
16
- ],
17
- "cpu": [
18
- "x64"
19
- ]
20
- }
@@ -1,22 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2011 TJ Holowaychuk <tj@vision-media.ca>
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- 'Software'), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.