@flowscripter/flowscripter-io-cli 3.0.2 → 3.0.4
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/bun.lock +61 -61
- package/functional_tests/README.md +6 -4
- package/functional_tests/features/environment.py +53 -6
- package/functional_tests/features/s3.feature +53 -0
- package/functional_tests/features/steps/executable.py +2 -0
- package/functional_tests/features/steps/s3.py +33 -0
- package/functional_tests/pip-requirements.txt +6 -0
- package/package.json +12 -12
- package/src/util/zodToComplexOption.ts +5 -1
- package/tests/util/zodToComplexOption.test.ts +7 -0
package/bun.lock
CHANGED
|
@@ -5,20 +5,20 @@
|
|
|
5
5
|
"": {
|
|
6
6
|
"name": "@flowscripter/flowscripter-io-cli",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@flowscripter/dynamic-cli-framework": "^9.1.
|
|
9
|
-
"@flowscripter/dynamic-cli-framework-api": "^5.0.
|
|
10
|
-
"@flowscripter/dynamic-plugin-framework": "^2.2.
|
|
11
|
-
"@flowscripter/flowscripter-io-cli-hash-native": "^1.0.
|
|
12
|
-
"@flowscripter/pluggable-io-framework": "^2.1.
|
|
13
|
-
"@flowscripter/pluggable-io-framework-api": "^3.1.
|
|
14
|
-
"zod": "^4.6.
|
|
8
|
+
"@flowscripter/dynamic-cli-framework": "^9.1.3",
|
|
9
|
+
"@flowscripter/dynamic-cli-framework-api": "^5.0.2",
|
|
10
|
+
"@flowscripter/dynamic-plugin-framework": "^2.2.22",
|
|
11
|
+
"@flowscripter/flowscripter-io-cli-hash-native": "^1.0.16",
|
|
12
|
+
"@flowscripter/pluggable-io-framework": "^2.1.2",
|
|
13
|
+
"@flowscripter/pluggable-io-framework-api": "^3.1.3",
|
|
14
|
+
"zod": "^4.6.7",
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@flowscripter/io-plugin-filesystem": "^2.0.
|
|
18
|
-
"@types/bun": "^1.4.
|
|
17
|
+
"@flowscripter/io-plugin-filesystem": "^2.0.3",
|
|
18
|
+
"@types/bun": "^1.4.3",
|
|
19
19
|
"@types/node": "^26.6.5",
|
|
20
|
-
"oxfmt": "0.
|
|
21
|
-
"oxlint": "1.
|
|
20
|
+
"oxfmt": "0.73.0",
|
|
21
|
+
"oxlint": "1.88.0",
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"typescript": "^7.0.2",
|
|
@@ -26,97 +26,97 @@
|
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
28
|
"packages": {
|
|
29
|
-
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@9.1.
|
|
29
|
+
"@flowscripter/dynamic-cli-framework": ["@flowscripter/dynamic-cli-framework@9.1.3", "", { "dependencies": { "@flowscripter/dynamic-cli-framework-api": "^5.0.2", "@flowscripter/dynamic-plugin-framework": "^2.2.22", "emphasize": "^7.0.0", "fastest-levenshtein": "^1.0.16", "figlet": "^1.12.0", "highlight.js": "^11.12.0", "prettier": "^3.9.10", "semver": "^7.8.5", "supports-color": "^11.0.0", "supports-terminal-graphics": "^0.1.0" }, "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-Mz5JIAkNWw+SHajpqVhsep+ECTdVJj6+bUmojacllbnPbihZj2WIf2bSdGKqFlvrF+lA/weyjufxuHvjvQC1VQ=="],
|
|
30
30
|
|
|
31
|
-
"@flowscripter/dynamic-cli-framework-api": ["@flowscripter/dynamic-cli-framework-api@5.0.
|
|
31
|
+
"@flowscripter/dynamic-cli-framework-api": ["@flowscripter/dynamic-cli-framework-api@5.0.2", "", { "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-e5eUP/6S9KTY6Va0mhe/UmIrt0W9k5KDnugvhiQxlGbqcGnzuwjhHvmXdeYSjHTaUSxcj8YTWvDIsj7m2P1c1w=="],
|
|
32
32
|
|
|
33
|
-
"@flowscripter/dynamic-plugin-framework": ["@flowscripter/dynamic-plugin-framework@2.2.
|
|
33
|
+
"@flowscripter/dynamic-plugin-framework": ["@flowscripter/dynamic-plugin-framework@2.2.22", "", { "dependencies": { "semver": "^7.8.5" }, "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-OOWux0t4ttGuiGMRS6hbc1B6NkFQLAha1DZjhSOtoF7CzHEZneUvix4FDnpzlRp8GPCy/sOaCpqMJTeQEHSpVA=="],
|
|
34
34
|
|
|
35
|
-
"@flowscripter/flowscripter-io-cli-hash-native": ["@flowscripter/flowscripter-io-cli-hash-native@1.0.
|
|
35
|
+
"@flowscripter/flowscripter-io-cli-hash-native": ["@flowscripter/flowscripter-io-cli-hash-native@1.0.16", "", { "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-xv+OXu2rsh8OxVe3YsqwtNOUEu+fHvGNMJlPRQEGJ1cyVDdIG7QlNFj6brkglMNmHJIZKBOpmPyNXikUFo5PhQ=="],
|
|
36
36
|
|
|
37
|
-
"@flowscripter/io-plugin-filesystem": ["@flowscripter/io-plugin-filesystem@2.0.
|
|
37
|
+
"@flowscripter/io-plugin-filesystem": ["@flowscripter/io-plugin-filesystem@2.0.3", "", { "dependencies": { "@flowscripter/pluggable-io-framework-api": "^3.1.2", "zod": "^4.6.6" }, "peerDependencies": { "@flowscripter/dynamic-plugin-framework": "*", "typescript": "^7.0.2" } }, "sha512-RYYXfy3t7Nt0w3b+BmxIn1CdsyMh6z/3BoCTFLqkhMSe+3tcQs+jLnZp1f456FQKR3hq5dS4MxAalaepfdy4fg=="],
|
|
38
38
|
|
|
39
|
-
"@flowscripter/pluggable-io-framework": ["@flowscripter/pluggable-io-framework@2.1.
|
|
39
|
+
"@flowscripter/pluggable-io-framework": ["@flowscripter/pluggable-io-framework@2.1.2", "", { "dependencies": { "@flowscripter/dynamic-plugin-framework": "^2.2.22", "@flowscripter/pluggable-io-framework-api": "^3.1.3" }, "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-95YoKYQPFYC2DLA5IaZ5tlFjB4Ev+Ww+7jZ3UPrMhHDvQC8KVo5IBim0w0Xy6+qlUyQqHSXgRExjCatoworrbA=="],
|
|
40
40
|
|
|
41
|
-
"@flowscripter/pluggable-io-framework-api": ["@flowscripter/pluggable-io-framework-api@3.1.
|
|
41
|
+
"@flowscripter/pluggable-io-framework-api": ["@flowscripter/pluggable-io-framework-api@3.1.3", "", { "dependencies": { "zod": "^4.6.7", "zod-to-json-schema": "^3.25.2" }, "peerDependencies": { "typescript": "^7.0.2" } }, "sha512-rmyPJd7O/bbSRqwrfxmsVDyjTHwxb4VDaqpbqrIwj8+t/g8hPoxcuUGfLZnYBaIMIMN2QN3IZkQN84IEBHSQOQ=="],
|
|
42
42
|
|
|
43
|
-
"@oxfmt/binding-android-arm-eabi": ["@oxfmt/binding-android-arm-eabi@0.
|
|
43
|
+
"@oxfmt/binding-android-arm-eabi": ["@oxfmt/binding-android-arm-eabi@0.73.0", "", { "os": "android", "cpu": "arm" }, "sha512-dhunAdMbi/4o0Y66/+Wl6rpsNqpvE4i26Qw6bB77A97L2lJoktWg6m+X9QOon8iOEEqzD9rEZqFi5uZ4oIzhCA=="],
|
|
44
44
|
|
|
45
|
-
"@oxfmt/binding-android-arm64": ["@oxfmt/binding-android-arm64@0.
|
|
45
|
+
"@oxfmt/binding-android-arm64": ["@oxfmt/binding-android-arm64@0.73.0", "", { "os": "android", "cpu": "arm64" }, "sha512-dBoypjC2/xeyKyIhN2waX0/XeoccH9k0lVVe+sGRc4X8HSJVRtqyZDoXdr7bGY9A75c51dX0z0dLDpGQKwCdCg=="],
|
|
46
46
|
|
|
47
|
-
"@oxfmt/binding-darwin-arm64": ["@oxfmt/binding-darwin-arm64@0.
|
|
47
|
+
"@oxfmt/binding-darwin-arm64": ["@oxfmt/binding-darwin-arm64@0.73.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-Tn7Y+qWIpCQK+qdYwBcn6YvqeBuPiuG3tcNlYg16a5QL2o3rSmrgBB1nCyYqo0uvc1LNrfQW9/CK2tzFuID/Fg=="],
|
|
48
48
|
|
|
49
|
-
"@oxfmt/binding-darwin-x64": ["@oxfmt/binding-darwin-x64@0.
|
|
49
|
+
"@oxfmt/binding-darwin-x64": ["@oxfmt/binding-darwin-x64@0.73.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-yVb0E0tg/+9Xc9YJCBq66qF1DC/aN5mhb5nnHz0k4ikwkMANtSul2VPDSwjYdXR6/DFimc+pPUgLBqkIa5Ctuw=="],
|
|
50
50
|
|
|
51
|
-
"@oxfmt/binding-freebsd-x64": ["@oxfmt/binding-freebsd-x64@0.
|
|
51
|
+
"@oxfmt/binding-freebsd-x64": ["@oxfmt/binding-freebsd-x64@0.73.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-IKR4lFnBkYNL9Uqdxa5GMTQLvnLj+3sDwTvh2atHCzah0xeo+1xR5bigRU8uyXlOsA4VpXUn0UAimq4E4RBGmQ=="],
|
|
52
52
|
|
|
53
|
-
"@oxfmt/binding-linux-arm-gnueabihf": ["@oxfmt/binding-linux-arm-gnueabihf@0.
|
|
53
|
+
"@oxfmt/binding-linux-arm-gnueabihf": ["@oxfmt/binding-linux-arm-gnueabihf@0.73.0", "", { "os": "linux", "cpu": "arm" }, "sha512-7qnZ4g0ZCO3aZevOOQpZIABYwwXJW1lLDo2elviGdPQ0i11255xKEMFsi97fC1/nauQFseCJfELUy/k2JoOP+g=="],
|
|
54
54
|
|
|
55
|
-
"@oxfmt/binding-linux-arm-musleabihf": ["@oxfmt/binding-linux-arm-musleabihf@0.
|
|
55
|
+
"@oxfmt/binding-linux-arm-musleabihf": ["@oxfmt/binding-linux-arm-musleabihf@0.73.0", "", { "os": "linux", "cpu": "arm" }, "sha512-36eBico2j/WPB84gb4FYd/jjqGCKOwU4M+TWLBUIqlnzTozQueLy0joA5BwsSp2OZFVkOlpCwvA3ndPamdiyLw=="],
|
|
56
56
|
|
|
57
|
-
"@oxfmt/binding-linux-arm64-gnu": ["@oxfmt/binding-linux-arm64-gnu@0.
|
|
57
|
+
"@oxfmt/binding-linux-arm64-gnu": ["@oxfmt/binding-linux-arm64-gnu@0.73.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-VZ3cSgCAT18knKo52DcACmAuIoqG6qVEyeZRFbJd0xmYQ8GyYjuBc6IAh6MZHijT6q7p4/HPI+6ZWsCuhdV6iw=="],
|
|
58
58
|
|
|
59
|
-
"@oxfmt/binding-linux-arm64-musl": ["@oxfmt/binding-linux-arm64-musl@0.
|
|
59
|
+
"@oxfmt/binding-linux-arm64-musl": ["@oxfmt/binding-linux-arm64-musl@0.73.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-8YVzH59XSHcqwXNgc5qK851zCqwpmBgOifARXEPPe5/xTsIbHceYoPZAyqfpYV0CfKmzSaEDBgYHFza4rhx+Zw=="],
|
|
60
60
|
|
|
61
|
-
"@oxfmt/binding-linux-ppc64-gnu": ["@oxfmt/binding-linux-ppc64-gnu@0.
|
|
61
|
+
"@oxfmt/binding-linux-ppc64-gnu": ["@oxfmt/binding-linux-ppc64-gnu@0.73.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-MqRJnmCys0rwOgpWyEidSA7v/bvOqfNDJhPkQoR9mPVYrvSmMaW2Xhdpl28cbTA+brOM1is62GjIvJplVlUVpw=="],
|
|
62
62
|
|
|
63
|
-
"@oxfmt/binding-linux-riscv64-gnu": ["@oxfmt/binding-linux-riscv64-gnu@0.
|
|
63
|
+
"@oxfmt/binding-linux-riscv64-gnu": ["@oxfmt/binding-linux-riscv64-gnu@0.73.0", "", { "os": "linux", "cpu": "none" }, "sha512-4t2F3SWJSK/O/kRRFnL0elJzn75fJGGu71gs1HtiWcS80SmJOpkHiwwLnTp9suGdns8VHEPxYS0GTcyVwHKWBA=="],
|
|
64
64
|
|
|
65
|
-
"@oxfmt/binding-linux-riscv64-musl": ["@oxfmt/binding-linux-riscv64-musl@0.
|
|
65
|
+
"@oxfmt/binding-linux-riscv64-musl": ["@oxfmt/binding-linux-riscv64-musl@0.73.0", "", { "os": "linux", "cpu": "none" }, "sha512-D8b4I8I1kLdJQFwdFXNV+cwh3xWSiNKofjdGUk0nDpc0AHOds8T+poGbP9RWQMvgsvMb9OMgp/aV7ahBR37TbQ=="],
|
|
66
66
|
|
|
67
|
-
"@oxfmt/binding-linux-s390x-gnu": ["@oxfmt/binding-linux-s390x-gnu@0.
|
|
67
|
+
"@oxfmt/binding-linux-s390x-gnu": ["@oxfmt/binding-linux-s390x-gnu@0.73.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-QrC1S5VL1+N5rvorB15jH7CPvjVHA7GyUI5oVEd8Bd9m5605RDBQYTxDQ920DuylRoZOh2V7/xXpfCtFUrojUQ=="],
|
|
68
68
|
|
|
69
|
-
"@oxfmt/binding-linux-x64-gnu": ["@oxfmt/binding-linux-x64-gnu@0.
|
|
69
|
+
"@oxfmt/binding-linux-x64-gnu": ["@oxfmt/binding-linux-x64-gnu@0.73.0", "", { "os": "linux", "cpu": "x64" }, "sha512-dFcUKQPltCEPa+YlkF3zqufn6nJPZdG73LpnjBvZFFsU3laCMssDXSYB99mVaj43FqdEgjpz5TO6gbYXcczd9g=="],
|
|
70
70
|
|
|
71
|
-
"@oxfmt/binding-linux-x64-musl": ["@oxfmt/binding-linux-x64-musl@0.
|
|
71
|
+
"@oxfmt/binding-linux-x64-musl": ["@oxfmt/binding-linux-x64-musl@0.73.0", "", { "os": "linux", "cpu": "x64" }, "sha512-LmQe+nV8e+eUwfPNCxDF+owbsg88toBiR/8rZRgVOeKQP3MaGefXZRvBoc1UG37iWEQ/9JlCXG9Mc4nf4N3agw=="],
|
|
72
72
|
|
|
73
|
-
"@oxfmt/binding-openharmony-arm64": ["@oxfmt/binding-openharmony-arm64@0.
|
|
73
|
+
"@oxfmt/binding-openharmony-arm64": ["@oxfmt/binding-openharmony-arm64@0.73.0", "", { "os": "none", "cpu": "arm64" }, "sha512-8weOr1OKknE0G2DbR6ejJUT9AOsoBU6cXlsetmbihHv1K+bK7qP61T6lJxY0k/aAO7GyOJiRGNlL+04r4eH8Xg=="],
|
|
74
74
|
|
|
75
|
-
"@oxfmt/binding-win32-arm64-msvc": ["@oxfmt/binding-win32-arm64-msvc@0.
|
|
75
|
+
"@oxfmt/binding-win32-arm64-msvc": ["@oxfmt/binding-win32-arm64-msvc@0.73.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-mZV+QxXYgb8E18gzAFItb937VIsE4dqWdStrD3tRRC52UubOYEuU+e7NaIqUsGdB5YsJqNeuck3Ue/af2r9wyA=="],
|
|
76
76
|
|
|
77
|
-
"@oxfmt/binding-win32-ia32-msvc": ["@oxfmt/binding-win32-ia32-msvc@0.
|
|
77
|
+
"@oxfmt/binding-win32-ia32-msvc": ["@oxfmt/binding-win32-ia32-msvc@0.73.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-QJPUsbgUb97ZPPMkFUq6VQq0fLhC4Np19KL9aB/qKVwXnpKE6MIiILXqzhKnQ/UbnEDjKJ7Xv1d6zH4bYPCUdQ=="],
|
|
78
78
|
|
|
79
|
-
"@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.
|
|
79
|
+
"@oxfmt/binding-win32-x64-msvc": ["@oxfmt/binding-win32-x64-msvc@0.73.0", "", { "os": "win32", "cpu": "x64" }, "sha512-cGcze2fu+ykIaFtkEvZlkZ3HvnCLk+WISthtq99zWTWn0x13t5L9TxvGdLZMUMvtfYR+ICkiCwKnguVubdcw0w=="],
|
|
80
80
|
|
|
81
|
-
"@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.
|
|
81
|
+
"@oxlint/binding-android-arm-eabi": ["@oxlint/binding-android-arm-eabi@1.88.0", "", { "os": "android", "cpu": "arm" }, "sha512-k6Fgkf86ubfeH4GvqYsRolfuVAp0pfYVZvifSlXNHPdMaWUOfxUrmLEeDD7hF6U2oJuhsVxhSWq86/xCJ+9MmA=="],
|
|
82
82
|
|
|
83
|
-
"@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.
|
|
83
|
+
"@oxlint/binding-android-arm64": ["@oxlint/binding-android-arm64@1.88.0", "", { "os": "android", "cpu": "arm64" }, "sha512-AsIyhl9o1ejwtac7NMbhKpMdSml6NWR0ljKjZERxC8OHYDAW8o/Om9n1QHVLi4VCEUo42Zte2/Op9kyoGpJZMg=="],
|
|
84
84
|
|
|
85
|
-
"@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.
|
|
85
|
+
"@oxlint/binding-darwin-arm64": ["@oxlint/binding-darwin-arm64@1.88.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-qgBjB7eEKcCB4RqjXGuoSZq74g0wD09fWFJ+HWcCJcKaga8TeUHtb+BY0SsxdleSLBgx4RZ7qmgo0EzqEq7JoQ=="],
|
|
86
86
|
|
|
87
|
-
"@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.
|
|
87
|
+
"@oxlint/binding-darwin-x64": ["@oxlint/binding-darwin-x64@1.88.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-sCz3X5Mw/xdzEzn4fsCt1Iq8NKJnGNfhR+b9B5k+4DysYAHsmIhYoocnBPiQ9kvY3+pUun2A0Z8Vtun/Nv6YoQ=="],
|
|
88
88
|
|
|
89
|
-
"@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.
|
|
89
|
+
"@oxlint/binding-freebsd-x64": ["@oxlint/binding-freebsd-x64@1.88.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-xTOdYOIqCufgIj0knvxu86FBfovP6QBiD7ngNva01gb8xPQCD5gXkE5APGczH35zStim1O3zqvFbLQmY85xXRg=="],
|
|
90
90
|
|
|
91
|
-
"@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.
|
|
91
|
+
"@oxlint/binding-linux-arm-gnueabihf": ["@oxlint/binding-linux-arm-gnueabihf@1.88.0", "", { "os": "linux", "cpu": "arm" }, "sha512-BLadtw88NdYJBrAtC1dYzrPfSP2d5zgx6iuZycdD0YmZBJ2Nqbit9Z4PSaIb6gxK25dweArGMPbOmq/0ugwUPg=="],
|
|
92
92
|
|
|
93
|
-
"@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.
|
|
93
|
+
"@oxlint/binding-linux-arm-musleabihf": ["@oxlint/binding-linux-arm-musleabihf@1.88.0", "", { "os": "linux", "cpu": "arm" }, "sha512-wILSczl/DaZsCcf7j7tvNbssp8hxEHIJxrv4j7+JjI3TAL1U/JTWbeUtoJJC/vo8+2hkTmHLYoKJjmiNbijdXw=="],
|
|
94
94
|
|
|
95
|
-
"@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.
|
|
95
|
+
"@oxlint/binding-linux-arm64-gnu": ["@oxlint/binding-linux-arm64-gnu@1.88.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-jutT2Hy8JCuZuMwIFHo2HtyxfOfBJHyQxlBHBK1SL9W2f8n/WhjAP0FnDMz9d/mjhv9+QA0mx5AdQ9fDjsrFFg=="],
|
|
96
96
|
|
|
97
|
-
"@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.
|
|
97
|
+
"@oxlint/binding-linux-arm64-musl": ["@oxlint/binding-linux-arm64-musl@1.88.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-8N8iGV9hh4Lkeuq7QsEkjoXNRRflqR1G2qyoGYXcA0k5qllrdqmfylKEXyHIVERxqNDyMO4StqDQ0uLxXcBQAg=="],
|
|
98
98
|
|
|
99
|
-
"@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.
|
|
99
|
+
"@oxlint/binding-linux-ppc64-gnu": ["@oxlint/binding-linux-ppc64-gnu@1.88.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-5ydcQt3znNQ/rGEWYRvpS2cK9+T18P2VYgnyJ+eloEAwi9YUmsXy5VGrRqNWIK6qzWwHGnEE3ojVqqQNo+f0hA=="],
|
|
100
100
|
|
|
101
|
-
"@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.
|
|
101
|
+
"@oxlint/binding-linux-riscv64-gnu": ["@oxlint/binding-linux-riscv64-gnu@1.88.0", "", { "os": "linux", "cpu": "none" }, "sha512-iGx0uvFT54b/5DPJdEBCxYIrVB3v0uTy+JhRh3CyEp8/22BXDkG8rffkFwREdLsdj9mOrPbJYVOZw8ipcBuzjw=="],
|
|
102
102
|
|
|
103
|
-
"@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.
|
|
103
|
+
"@oxlint/binding-linux-riscv64-musl": ["@oxlint/binding-linux-riscv64-musl@1.88.0", "", { "os": "linux", "cpu": "none" }, "sha512-Wt47mKMWelVjRjuR7BCFxXkB0m79K1sTEbqMHRWciKUgo5iv7sWsF4RXSOyFYHD9zerNrkRZblnN273rhwOA1Q=="],
|
|
104
104
|
|
|
105
|
-
"@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.
|
|
105
|
+
"@oxlint/binding-linux-s390x-gnu": ["@oxlint/binding-linux-s390x-gnu@1.88.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-g3L12KCS4+1gtUt3RbJ4F+Yxx4LNmmZLEPfhd8rAHEJjJk2lAgNfnjGoP/phJyhG5WS6VbNYbJtadJelNfvTMA=="],
|
|
106
106
|
|
|
107
|
-
"@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.
|
|
107
|
+
"@oxlint/binding-linux-x64-gnu": ["@oxlint/binding-linux-x64-gnu@1.88.0", "", { "os": "linux", "cpu": "x64" }, "sha512-og/XHVDOD9ZJgRiZkT9DgzQd4sr+JZW7e4l17Q/jVMZiIbeEd4uIu9iAoUbTF1gIvVZoRc4QDOxyVUvQGp4WHg=="],
|
|
108
108
|
|
|
109
|
-
"@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.
|
|
109
|
+
"@oxlint/binding-linux-x64-musl": ["@oxlint/binding-linux-x64-musl@1.88.0", "", { "os": "linux", "cpu": "x64" }, "sha512-EmhBsp+xuKb6YbZNEMLBo80Xw71AZOIm18do8ni/GLX/Lw1XzNhVYpbxO1KasYtoAvrGtCOdCPULRlIE0bPbTQ=="],
|
|
110
110
|
|
|
111
|
-
"@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.
|
|
111
|
+
"@oxlint/binding-openharmony-arm64": ["@oxlint/binding-openharmony-arm64@1.88.0", "", { "os": "none", "cpu": "arm64" }, "sha512-DBUcx/KwYdg1DAz+G01P/GFv512J04EsZadbHptx2FTpWT/MWRg21ZToNHt9pnsfQRBQ3et/g+vqzbvrdAVbuA=="],
|
|
112
112
|
|
|
113
|
-
"@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.
|
|
113
|
+
"@oxlint/binding-win32-arm64-msvc": ["@oxlint/binding-win32-arm64-msvc@1.88.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-xeVd0n4XG5HvynxfYvXi6uB+JvZbVZataowPS8cYpMbYg9mwE4sSyElFQd4LVJFifq8bRLDSR18XgEildmcXAg=="],
|
|
114
114
|
|
|
115
|
-
"@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.
|
|
115
|
+
"@oxlint/binding-win32-ia32-msvc": ["@oxlint/binding-win32-ia32-msvc@1.88.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-MA6iOw//amleaz2mVMsZrA7NHlEexjTrhIxSMFCXQi6IUuQO+3Od00GZhr2iCYw6RFzMW36jkKK/WHBXMsoQAw=="],
|
|
116
116
|
|
|
117
|
-
"@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.
|
|
117
|
+
"@oxlint/binding-win32-x64-msvc": ["@oxlint/binding-win32-x64-msvc@1.88.0", "", { "os": "win32", "cpu": "x64" }, "sha512-3Sz6rVWe8Dy+ufsXurFN1GX2dX43F/lQMSLelK9gFjiba7nHvLlqlhR5cHlWVnCpSqUY1hN9pyCX9XToe6ve6g=="],
|
|
118
118
|
|
|
119
|
-
"@types/bun": ["@types/bun@1.4.
|
|
119
|
+
"@types/bun": ["@types/bun@1.4.3", "", { "dependencies": { "bun-types": "1.4.3" } }, "sha512-N67Pqy8JXbAY/j0tNraS3V5mubGvc6rrrNDmDCtZLlFzccbUJPDb0tvgUBC5q4m8ybkP93Jcn1QB+RYQ6PvBhw=="],
|
|
120
120
|
|
|
121
121
|
"@types/hast": ["@types/hast@3.0.5", "", { "dependencies": { "@types/unist": "*" } }, "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g=="],
|
|
122
122
|
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
|
|
165
165
|
"@typescript/typescript-win32-x64": ["@typescript/typescript-win32-x64@7.0.2", "", { "os": "win32", "cpu": "x64" }, "sha512-0BQ3HkAHHlKLSp1qRvf3SUhGpGsDuhB/jgFw75guyqbxJqEaS0Cw/VFO8i2nHglJUzQCRtMMR/IBAKE3ETMC4g=="],
|
|
166
166
|
|
|
167
|
-
"bun-types": ["bun-types@1.4.
|
|
167
|
+
"bun-types": ["bun-types@1.4.3", "", { "dependencies": { "@types/node": "*", "undici-types": "*" } }, "sha512-tinRJNGOmUN+tEAsn2y2e942n9JHRHR42iUYzDH75NmhJqVBokGSQkkfSFdNWwsANIdrK6ACH9t01M452YyTwg=="],
|
|
168
168
|
|
|
169
169
|
"chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="],
|
|
170
170
|
|
|
@@ -184,9 +184,9 @@
|
|
|
184
184
|
|
|
185
185
|
"lowlight": ["lowlight@3.1.0", "", { "dependencies": { "@types/hast": "^3.0.0", "devlop": "^1.0.0", "highlight.js": "~11.9.0" } }, "sha512-CEbNVoSikAxwDMDPjXlqlFYiZLkDJHwyGu/MfOsJnF3d7f3tds5J3z8s/l9TMXhzfsJCCJEAsD78842mwmg0PQ=="],
|
|
186
186
|
|
|
187
|
-
"oxfmt": ["oxfmt@0.
|
|
187
|
+
"oxfmt": ["oxfmt@0.73.0", "", { "dependencies": { "tinypool": "2.2.0" }, "optionalDependencies": { "@oxfmt/binding-android-arm-eabi": "0.73.0", "@oxfmt/binding-android-arm64": "0.73.0", "@oxfmt/binding-darwin-arm64": "0.73.0", "@oxfmt/binding-darwin-x64": "0.73.0", "@oxfmt/binding-freebsd-x64": "0.73.0", "@oxfmt/binding-linux-arm-gnueabihf": "0.73.0", "@oxfmt/binding-linux-arm-musleabihf": "0.73.0", "@oxfmt/binding-linux-arm64-gnu": "0.73.0", "@oxfmt/binding-linux-arm64-musl": "0.73.0", "@oxfmt/binding-linux-ppc64-gnu": "0.73.0", "@oxfmt/binding-linux-riscv64-gnu": "0.73.0", "@oxfmt/binding-linux-riscv64-musl": "0.73.0", "@oxfmt/binding-linux-s390x-gnu": "0.73.0", "@oxfmt/binding-linux-x64-gnu": "0.73.0", "@oxfmt/binding-linux-x64-musl": "0.73.0", "@oxfmt/binding-openharmony-arm64": "0.73.0", "@oxfmt/binding-win32-arm64-msvc": "0.73.0", "@oxfmt/binding-win32-ia32-msvc": "0.73.0", "@oxfmt/binding-win32-x64-msvc": "0.73.0" }, "peerDependencies": { "@astrojs/compiler-rs": "^0.4.0 || ^0.5.0", "svelte": "^5.0.0", "vite-plus": "*" }, "optionalPeers": ["@astrojs/compiler-rs", "svelte", "vite-plus"], "bin": { "oxfmt": "bin/oxfmt" } }, "sha512-Ke4xbpuzqIBP4bkd48q815RhqWNJqOBzxVA9199M4qcF0y0LtpUv7UTg1dJ5ea6jw0RBUDZvX3qOUMNmmxfxbw=="],
|
|
188
188
|
|
|
189
|
-
"oxlint": ["oxlint@1.
|
|
189
|
+
"oxlint": ["oxlint@1.88.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.88.0", "@oxlint/binding-android-arm64": "1.88.0", "@oxlint/binding-darwin-arm64": "1.88.0", "@oxlint/binding-darwin-x64": "1.88.0", "@oxlint/binding-freebsd-x64": "1.88.0", "@oxlint/binding-linux-arm-gnueabihf": "1.88.0", "@oxlint/binding-linux-arm-musleabihf": "1.88.0", "@oxlint/binding-linux-arm64-gnu": "1.88.0", "@oxlint/binding-linux-arm64-musl": "1.88.0", "@oxlint/binding-linux-ppc64-gnu": "1.88.0", "@oxlint/binding-linux-riscv64-gnu": "1.88.0", "@oxlint/binding-linux-riscv64-musl": "1.88.0", "@oxlint/binding-linux-s390x-gnu": "1.88.0", "@oxlint/binding-linux-x64-gnu": "1.88.0", "@oxlint/binding-linux-x64-musl": "1.88.0", "@oxlint/binding-openharmony-arm64": "1.88.0", "@oxlint/binding-win32-arm64-msvc": "1.88.0", "@oxlint/binding-win32-ia32-msvc": "1.88.0", "@oxlint/binding-win32-x64-msvc": "1.88.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2003", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-uIcFgw8BmqvFRGzH5+r7d2zJMEexwNSrEmM6WQNnGh3VkO0XYTEFoyxyNE6tjKMUib9Cue4XJA2DoWruO5D6aw=="],
|
|
190
190
|
|
|
191
191
|
"prettier": ["prettier@3.9.10", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA=="],
|
|
192
192
|
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
|
|
203
203
|
"undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="],
|
|
204
204
|
|
|
205
|
-
"zod": ["zod@4.6.
|
|
205
|
+
"zod": ["zod@4.6.7", "", {}, "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg=="],
|
|
206
206
|
|
|
207
207
|
"zod-to-json-schema": ["zod-to-json-schema@3.25.2", "", { "peerDependencies": { "zod": "^3.25.28 || ^4" } }, "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA=="],
|
|
208
208
|
|
|
@@ -17,10 +17,12 @@ Run the functional tests:
|
|
|
17
17
|
export EXECUTABLE=./executable
|
|
18
18
|
behave
|
|
19
19
|
|
|
20
|
-
`before_all` installs `@flowscripter/io-plugin-filesystem`
|
|
21
|
-
`plugin:add` into a fresh
|
|
22
|
-
|
|
23
|
-
registry.
|
|
20
|
+
`before_all` installs `@flowscripter/io-plugin-filesystem` and
|
|
21
|
+
`@flowscripter/io-plugin-s3` via `plugin:add` into a fresh
|
|
22
|
+
`~/.flowscripter-io-cli` plugin store before any scenario runs - these tests
|
|
23
|
+
require network access to the real npm registry. It also starts a local moto
|
|
24
|
+
S3 server on a free port (stopped in `after_all`) which the `s3.feature`
|
|
25
|
+
scenarios use with static test credentials.
|
|
24
26
|
|
|
25
27
|
To run with logging output from the test steps:
|
|
26
28
|
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import shutil
|
|
3
|
+
import socket
|
|
3
4
|
import subprocess
|
|
4
5
|
import sys
|
|
6
|
+
import time
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
import boto3
|
|
5
10
|
|
|
6
11
|
IS_WINDOWS = sys.platform.startswith('win')
|
|
7
12
|
|
|
@@ -26,17 +31,59 @@ def before_all(context):
|
|
|
26
31
|
if os.path.isdir(plugins_dir):
|
|
27
32
|
shutil.rmtree(plugins_dir)
|
|
28
33
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
34
|
+
for plugin in ['@flowscripter/io-plugin-filesystem', '@flowscripter/io-plugin-s3']:
|
|
35
|
+
result = subprocess.run(
|
|
36
|
+
[executable, 'plugin:add', plugin],
|
|
37
|
+
capture_output=True, text=True, timeout=120,
|
|
38
|
+
)
|
|
39
|
+
assert result.returncode == 0, \
|
|
40
|
+
'failed to install {}: stdout={!r} stderr={!r}'.format(
|
|
41
|
+
plugin, result.stdout, result.stderr)
|
|
42
|
+
|
|
43
|
+
start_s3_server(context)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def after_all(context):
|
|
47
|
+
server = getattr(context, 's3_server', None)
|
|
48
|
+
if server:
|
|
49
|
+
server.terminate()
|
|
50
|
+
try:
|
|
51
|
+
server.wait(timeout=10)
|
|
52
|
+
except subprocess.TimeoutExpired:
|
|
53
|
+
server.kill()
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def start_s3_server(context):
|
|
57
|
+
with socket.socket() as s:
|
|
58
|
+
s.bind(('127.0.0.1', 0))
|
|
59
|
+
port = s.getsockname()[1]
|
|
60
|
+
|
|
61
|
+
context.s3_server = subprocess.Popen(
|
|
62
|
+
[sys.executable, '-m', 'moto.server', '--host', '127.0.0.1', '--port', str(port)],
|
|
63
|
+
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL,
|
|
64
|
+
)
|
|
65
|
+
context.s3_endpoint = 'http://127.0.0.1:{}'.format(port)
|
|
66
|
+
|
|
67
|
+
deadline = time.time() + 60
|
|
68
|
+
while time.time() < deadline:
|
|
69
|
+
assert context.s3_server.poll() is None, 'moto server exited early'
|
|
70
|
+
try:
|
|
71
|
+
socket.create_connection(('127.0.0.1', port), timeout=1).close()
|
|
72
|
+
break
|
|
73
|
+
except OSError:
|
|
74
|
+
time.sleep(0.2)
|
|
75
|
+
else:
|
|
76
|
+
raise AssertionError('moto server did not start listening on port {}'.format(port))
|
|
77
|
+
|
|
78
|
+
context.s3_client = boto3.client(
|
|
79
|
+
's3', endpoint_url=context.s3_endpoint, region_name='us-east-1',
|
|
80
|
+
aws_access_key_id='test', aws_secret_access_key='test',
|
|
32
81
|
)
|
|
33
|
-
assert result.returncode == 0, \
|
|
34
|
-
'failed to install io-plugin-filesystem: stdout={!r} stderr={!r}'.format(
|
|
35
|
-
result.stdout, result.stderr)
|
|
36
82
|
|
|
37
83
|
|
|
38
84
|
def before_scenario(context, scenario):
|
|
39
85
|
context.workdir = None
|
|
86
|
+
context.s3_bucket = None
|
|
40
87
|
|
|
41
88
|
|
|
42
89
|
def after_scenario(context, scenario):
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Feature: S3 IO commands
|
|
2
|
+
|
|
3
|
+
Note: these scenarios use the real @flowscripter/io-plugin-s3 from npm
|
|
4
|
+
(installed by before_all) against a local moto S3 server started by
|
|
5
|
+
before_all.
|
|
6
|
+
|
|
7
|
+
Background:
|
|
8
|
+
Given an empty S3 bucket
|
|
9
|
+
|
|
10
|
+
Scenario: list shows an object that was written
|
|
11
|
+
Given an S3 object "data/a.txt" containing "hello"
|
|
12
|
+
When the executable stdout is captured for "list --location.protocol=s3 --location.s3.bucket={bucket} --location.s3.endpoint={endpoint} --location.s3.region=us-east-1 --location.s3.accessKeyId=test --location.s3.secretAccessKey=test --location.s3.path=data"
|
|
13
|
+
Then the captured process should complete with exit code 0
|
|
14
|
+
And the stdout should contain "a.txt"
|
|
15
|
+
|
|
16
|
+
Scenario: get-properties reports size
|
|
17
|
+
Given an S3 object "data/a.txt" containing "hello"
|
|
18
|
+
When the executable stdout is captured for "get-properties --location.protocol=s3 --location.s3.bucket={bucket} --location.s3.endpoint={endpoint} --location.s3.region=us-east-1 --location.s3.accessKeyId=test --location.s3.secretAccessKey=test --location.s3.path=data --location.s3.filename=a.txt"
|
|
19
|
+
Then the captured process should complete with exit code 0
|
|
20
|
+
And the stdout should contain '"size": 5'
|
|
21
|
+
|
|
22
|
+
Scenario: copy duplicates an object, leaving the original in place
|
|
23
|
+
Given an S3 object "data/a.txt" containing "hello"
|
|
24
|
+
When the executable stdout is captured for "copy --source.protocol=s3 --source.s3.bucket={bucket} --source.s3.endpoint={endpoint} --source.s3.region=us-east-1 --source.s3.accessKeyId=test --source.s3.secretAccessKey=test --source.s3.path=data --source.s3.filename=a.txt --dest.protocol=s3 --dest.s3.bucket={bucket} --dest.s3.endpoint={endpoint} --dest.s3.region=us-east-1 --dest.s3.accessKeyId=test --dest.s3.secretAccessKey=test --dest.s3.path=data --dest.s3.filename=b.txt"
|
|
25
|
+
Then the captured process should complete with exit code 0
|
|
26
|
+
And the S3 object "data/b.txt" should contain "hello"
|
|
27
|
+
And the S3 object "data/a.txt" should contain "hello"
|
|
28
|
+
|
|
29
|
+
Scenario: copy uploads a local file to S3
|
|
30
|
+
Given a temporary working directory
|
|
31
|
+
And a file "a.txt" containing "hello" in the working directory
|
|
32
|
+
When the executable stdout is captured for "copy --source.protocol=file --source.file.path={workdir} --source.file.filename=a.txt --dest.protocol=s3 --dest.s3.bucket={bucket} --dest.s3.endpoint={endpoint} --dest.s3.region=us-east-1 --dest.s3.accessKeyId=test --dest.s3.secretAccessKey=test --dest.s3.path=up --dest.s3.filename=a.txt"
|
|
33
|
+
Then the captured process should complete with exit code 0
|
|
34
|
+
And the S3 object "up/a.txt" should contain "hello"
|
|
35
|
+
|
|
36
|
+
Scenario: copy downloads an object to a local file
|
|
37
|
+
Given a temporary working directory
|
|
38
|
+
And an S3 object "data/a.txt" containing "hello"
|
|
39
|
+
When the executable stdout is captured for "copy --source.protocol=s3 --source.s3.bucket={bucket} --source.s3.endpoint={endpoint} --source.s3.region=us-east-1 --source.s3.accessKeyId=test --source.s3.secretAccessKey=test --source.s3.path=data --source.s3.filename=a.txt --dest.protocol=file --dest.file.path={workdir} --dest.file.filename=down.txt"
|
|
40
|
+
Then the captured process should complete with exit code 0
|
|
41
|
+
And a file "down.txt" should exist in the working directory
|
|
42
|
+
|
|
43
|
+
Scenario: hash outputs the expected sha256 digest
|
|
44
|
+
Given an S3 object "data/a.txt" containing "hello"
|
|
45
|
+
When the executable stdout is captured for "hash --location.protocol=s3 --location.s3.bucket={bucket} --location.s3.endpoint={endpoint} --location.s3.region=us-east-1 --location.s3.accessKeyId=test --location.s3.secretAccessKey=test --location.s3.path=data --location.s3.filename=a.txt"
|
|
46
|
+
Then the captured process should complete with exit code 0
|
|
47
|
+
And the stdout should contain "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
|
|
48
|
+
|
|
49
|
+
Scenario: delete removes an object
|
|
50
|
+
Given an S3 object "data/a.txt" containing "hello"
|
|
51
|
+
When the executable stdout is captured for "delete --location.protocol=s3 --location.s3.bucket={bucket} --location.s3.endpoint={endpoint} --location.s3.region=us-east-1 --location.s3.accessKeyId=test --location.s3.secretAccessKey=test --location.s3.path=data --location.s3.filename=a.txt"
|
|
52
|
+
Then the captured process should complete with exit code 0
|
|
53
|
+
And the S3 object "data/a.txt" should not exist
|
|
@@ -9,6 +9,8 @@ from support.subprocess_wrapper import SubprocessWrapper
|
|
|
9
9
|
@when('the executable stdout is captured for "{args}"')
|
|
10
10
|
def step_impl(context, args):
|
|
11
11
|
args = args.replace('{workdir}', context.workdir or '')
|
|
12
|
+
args = args.replace('{endpoint}', getattr(context, 's3_endpoint', ''))
|
|
13
|
+
args = args.replace('{bucket}', context.s3_bucket or '')
|
|
12
14
|
wrapper = SubprocessWrapper(context.executable)
|
|
13
15
|
wrapper.run(args)
|
|
14
16
|
context.subprocess_wrapper = wrapper
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import uuid
|
|
2
|
+
|
|
3
|
+
from behave import given, then
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@given('an empty S3 bucket')
|
|
7
|
+
def step_impl(context):
|
|
8
|
+
context.s3_bucket = 'functest-{}'.format(uuid.uuid4().hex[:12])
|
|
9
|
+
context.s3_client.create_bucket(Bucket=context.s3_bucket)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@given('an S3 object "{key}" containing "{content}"')
|
|
13
|
+
def step_impl(context, key, content):
|
|
14
|
+
context.s3_client.put_object(Bucket=context.s3_bucket, Key=key, Body=content.encode('utf-8'))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def get_object(context, key):
|
|
18
|
+
try:
|
|
19
|
+
return context.s3_client.get_object(Bucket=context.s3_bucket, Key=key)['Body'].read()
|
|
20
|
+
except context.s3_client.exceptions.NoSuchKey:
|
|
21
|
+
return None
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@then('the S3 object "{key}" should contain "{content}"')
|
|
25
|
+
def step_impl(context, key, content):
|
|
26
|
+
body = get_object(context, key)
|
|
27
|
+
assert body == content.encode('utf-8'), 'unexpected S3 object {!r}: {!r}'.format(key, body)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@then('the S3 object "{key}" should not exist')
|
|
31
|
+
def step_impl(context, key):
|
|
32
|
+
body = get_object(context, key)
|
|
33
|
+
assert body is None, 'expected S3 object {!r} not to exist'.format(key)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowscripter/flowscripter-io-cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "CLI for https://github.com/flowscripter/pluggable-io-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@flowscripter/dynamic-cli-framework": "^9.1.
|
|
25
|
-
"@flowscripter/dynamic-cli-framework-api": "^5.0.
|
|
26
|
-
"@flowscripter/dynamic-plugin-framework": "^2.2.
|
|
27
|
-
"@flowscripter/flowscripter-io-cli-hash-native": "^1.0.
|
|
28
|
-
"@flowscripter/pluggable-io-framework": "^2.1.
|
|
29
|
-
"@flowscripter/pluggable-io-framework-api": "^3.1.
|
|
30
|
-
"zod": "^4.6.
|
|
24
|
+
"@flowscripter/dynamic-cli-framework": "^9.1.3",
|
|
25
|
+
"@flowscripter/dynamic-cli-framework-api": "^5.0.2",
|
|
26
|
+
"@flowscripter/dynamic-plugin-framework": "^2.2.22",
|
|
27
|
+
"@flowscripter/flowscripter-io-cli-hash-native": "^1.0.16",
|
|
28
|
+
"@flowscripter/pluggable-io-framework": "^2.1.2",
|
|
29
|
+
"@flowscripter/pluggable-io-framework-api": "^3.1.3",
|
|
30
|
+
"zod": "^4.6.7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@flowscripter/io-plugin-filesystem": "^2.0.
|
|
34
|
-
"@types/bun": "^1.4.
|
|
33
|
+
"@flowscripter/io-plugin-filesystem": "^2.0.3",
|
|
34
|
+
"@types/bun": "^1.4.3",
|
|
35
35
|
"@types/node": "^26.6.5",
|
|
36
|
-
"oxfmt": "0.
|
|
37
|
-
"oxlint": "1.
|
|
36
|
+
"oxfmt": "0.73.0",
|
|
37
|
+
"oxlint": "1.88.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"typescript": "^7.0.2"
|
|
@@ -73,7 +73,9 @@ function toOption(name: string, schema: ZodNode): Option | ComplexOption {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
function toOptions(node: ZodNode): ReadonlyArray<Option | ComplexOption> {
|
|
76
|
-
return Object.entries(node.shape ?? {})
|
|
76
|
+
return Object.entries(node.shape ?? {})
|
|
77
|
+
.filter(([, child]) => unwrap(child).node.def.type !== "record")
|
|
78
|
+
.map(([name, child]) => toOption(name, child));
|
|
77
79
|
}
|
|
78
80
|
|
|
79
81
|
/**
|
|
@@ -83,6 +85,8 @@ function toOptions(node: ZodNode): ReadonlyArray<Option | ComplexOption> {
|
|
|
83
85
|
* values, nested objects become nested `ComplexOption`s and arrays of objects
|
|
84
86
|
* become array `ComplexOption`s. Optional and defaulted fields are optional.
|
|
85
87
|
* A field's `.describe()` text is its description, defaulting to its name.
|
|
88
|
+
* Record fields (free-form key/value maps) have no command line form and are
|
|
89
|
+
* left out.
|
|
86
90
|
*/
|
|
87
91
|
export function zodToComplexOption(schema: ZodType): ReadonlyArray<Option | ComplexOption> {
|
|
88
92
|
const { node } = unwrap(schema as unknown as ZodNode);
|
|
@@ -110,6 +110,13 @@ describe("zodToComplexOption", () => {
|
|
|
110
110
|
);
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
+
test("leaves out record fields", () => {
|
|
114
|
+
const options = zodToComplexOption(
|
|
115
|
+
z.object({ name: z.string(), tags: z.record(z.string(), z.string()).optional() }),
|
|
116
|
+
);
|
|
117
|
+
expect(options.map((o) => o.name)).toEqual(["name"]);
|
|
118
|
+
});
|
|
119
|
+
|
|
113
120
|
test("rejects a non-object schema", () => {
|
|
114
121
|
expect(() => zodToComplexOption(z.string())).toThrow('Expected an object schema, got "string"');
|
|
115
122
|
});
|