diff --git a/.github/actions/build-rpi-image/action.yml b/.github/actions/build-rpi-image/action.yml new file mode 100644 index 0000000..6a578b5 --- /dev/null +++ b/.github/actions/build-rpi-image/action.yml @@ -0,0 +1,206 @@ +name: 'Build RPi Image with Release Download' +description: 'Downloads latest release from a repo and builds a Raspberry Pi image' +inputs: + source_repo: + description: 'GitHub repository to download release from (e.g., owner/repo)' + required: true + version_prefix: + description: 'Version tag prefix to match releases (e.g., vapp-)' + required: true + gh_releases_token: + description: 'GitHub token for API access' + required: true + default: ${{ github.token }} + service_name: + description: 'Name of the service to create' + required: false + default: 'myapp' + esbuild_server_url: + description: 'URL of esbuild development server (enables esbuild mode when provided)' + required: false + chroot_commands: + description: 'Additional commands to run in chroot environment (multiline string)' + required: false + default: '' + service_command: + description: 'Command to run for the service (e.g., "/usr/bin/node /home/pi/code/artifacts/dist/server/dist/local-server.cjs")' + required: false + default: '/usr/bin/node /home/pi/code/artifacts/dist/server/dist/local-server.cjs' + +runs: + using: 'composite' + steps: + + - name: Free up disk space + uses: insightsengineering/disk-space-reclaimer@v1 + with: + android: true + dotnet: true + haskell: true + large-packages: false + swap-storage: true + docker-images: true + tools-cache: false + + - name: Check disk space + shell: bash + run: df -h + + - name: Update apt + shell: bash + run: sudo apt-get update + + - name: Install Dependencies + shell: bash + run: sudo apt install coreutils p7zip-full qemu-user-static python3-git + + - name: Find latest matching release by tag prefix + id: find_release + shell: bash + env: + GH_TOKEN: ${{ inputs.gh_releases_token }} + run: | + PREFIX="${{ inputs.version_prefix }}" + latest=$(gh release list --repo "${{ inputs.source_repo }}" --limit 100 --json tagName,publishedAt \ + | jq -r --arg prefix "$PREFIX" ' + map(select(.tagName | startswith($prefix))) + | sort_by(.publishedAt) + | last + | if . == null then "none" else .tagName[1:] end + ') + echo "latest_tag=$latest" >> $GITHUB_OUTPUT + echo "Found latest release: $latest" + + - name: Download artifact from latest release + if: steps.find_release.outputs.latest_tag != 'none' + uses: blauqs/actions-download-asset@master + with: + repo: ${{ inputs.source_repo }} + version: ${{ steps.find_release.outputs.latest_tag }} + file: dist.zip + out: previous_release.zip + token: ${{ inputs.gh_releases_token }} + + - name: Checkout CustomPiOS + uses: actions/checkout@v2 + with: + repository: 'guysoft/CustomPiOS' + path: CustomPiOS + + - name: Checkout Project Repository + uses: actions/checkout@v2 + with: + repository: ${{ github.repository }} + path: repository_temp + submodules: true + + - name: Move FullPageOS folder + shell: bash + run: | + mv repository_temp/FullPageOS repository + + - name: Place downloaded release zip + if: steps.find_release.outputs.latest_tag != 'none' + shell: bash + run: | + # Create the directory structure where updatecli expects the zip file on the RPi + mkdir -p repository/src/modules/rpi-deploy/filesystem/home/pi/code/artifacts/ + # Move the downloaded zip to where the updatecli scripts expect it + mv previous_release.zip repository/src/modules/rpi-deploy/filesystem/home/pi/code/artifacts/dist.zip + echo "Placed release zip at: repository/src/modules/rpi-deploy/filesystem/home/pi/code/artifacts/dist.zip" + + - name: Parameterize UpdateCLI configuration + shell: bash + run: | + # Extract owner and repository from source_repo input + OWNER=$(echo "${{ inputs.source_repo }}" | cut -d'/' -f1) + REPOSITORY=$(echo "${{ inputs.source_repo }}" | cut -d'/' -f2) + + # Create the directory for secrets + mkdir -p repository/src/modules/rpi-deploy/filesystem/home/pi/code/ + + # Create secrets.env file with GH_RELEASES_TOKEN and SERVICE_NAME + echo "GH_RELEASES_TOKEN=${{ inputs.gh_releases_token }}" > repository/src/modules/rpi-deploy/filesystem/home/pi/code/secrets.env + echo "SERVICE_NAME=${{ inputs.service_name }}" >> repository/src/modules/rpi-deploy/filesystem/home/pi/code/secrets.env + + # Parameterize the updatecli configuration file + UPDATECLI_CONFIG="repository/src/modules/rpi-deploy/filesystem/home/pi/code/updatecli_github_commit.yml" + + # Replace template variables using envsubst + export GITHUB_OWNER="$OWNER" + export GITHUB_REPOSITORY="$REPOSITORY" + export GITHUB_VERSION_PREFIX="${{ inputs.version_prefix }}" + export GITHUB_TAG_PREFIX="${GITHUB_VERSION_PREFIX}" + + # Process the template file + envsubst '$GITHUB_OWNER $GITHUB_REPOSITORY $GITHUB_TAG_PREFIX' < "$UPDATECLI_CONFIG" > "$UPDATECLI_CONFIG.tmp" + mv "$UPDATECLI_CONFIG.tmp" "$UPDATECLI_CONFIG" + + # Export additional template variables + export CHROOT_COMMANDS="${{ inputs.chroot_commands }}" + export SERVICE_COMMAND="${{ inputs.service_command }}" + + # Process start_chroot_script template + CHROOT_SCRIPT="repository/src/modules/rpi-deploy/start_chroot_script" + envsubst '$CHROOT_COMMANDS' < "$CHROOT_SCRIPT" > "$CHROOT_SCRIPT.tmp" + mv "$CHROOT_SCRIPT.tmp" "$CHROOT_SCRIPT" + + # Process run_from_github_release.sh template + RELEASE_SCRIPT="repository/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/run_from_github_release.sh" + envsubst '$SERVICE_COMMAND' < "$RELEASE_SCRIPT" > "$RELEASE_SCRIPT.tmp" + mv "$RELEASE_SCRIPT.tmp" "$RELEASE_SCRIPT" + + # Configure esbuild if server URL is provided + if [ -n "${{ inputs.esbuild_server_url }}" ]; then + echo "ESBUILD_SERVER_URL=${{ inputs.esbuild_server_url }}" >> repository/src/modules/rpi-deploy/filesystem/home/pi/code/esbuild.env + echo "SERVICE_NAME=${{ inputs.service_name }}-dev" >> repository/src/modules/rpi-deploy/filesystem/home/pi/code/esbuild.env + + # Enable esbuild service in start_chroot_script + sed -i 's/# systemctl enable check_esbuild.service/systemctl enable check_esbuild.service/' repository/src/modules/rpi-deploy/start_chroot_script + + echo "Esbuild mode enabled:" + echo " Server URL: ${{ inputs.esbuild_server_url }}" + echo " Service name: ${{ inputs.service_name }}-dev" + fi + + echo "Updated UpdateCLI config with:" + echo " Owner: $OWNER" + echo " Repository: $REPOSITORY" + echo " Version prefix: ${{ inputs.version_prefix }}" + echo " Service name: ${{ inputs.service_name }}" + if [ -n "${{ inputs.esbuild_server_url }}" ]; then + echo " Esbuild mode: enabled" + else + echo " Esbuild mode: disabled (GitHub releases only)" + fi + + - name: Download Raspbian Image + shell: bash + run: cd repository/src/image && wget -q -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf_latest' + + - name: Update CustomPiOS Paths + shell: bash + run: cd repository/src && ../../CustomPiOS/src/update-custompios-paths + + - name: Build Image + shell: bash + run: sudo modprobe loop && cd repository/src && sudo BASE_ARCH=armhf bash -x ./build_dist + + - name: Copy Output + shell: bash + run: cp ${{ github.workspace }}/repository/src/workspace/*-raspios-*-lite.img build.img + + - name: Zip Output + shell: bash + run: gzip build.img + + - name: Set artifact name + id: artifact + shell: bash + run: echo "name=$(date '+%Y%m%d_%H%M%S')_${{ github.sha }}_$(echo '${{ inputs.source_repo }}' | tr '/' '_')_rpi.img.gz" >> $GITHUB_OUTPUT + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: ${{ steps.artifact.outputs.name }} + path: build.img.gz diff --git a/.github/workflows/build_rpi.yml b/.github/workflows/build_rpi.yml new file mode 100644 index 0000000..e8cda7e --- /dev/null +++ b/.github/workflows/build_rpi.yml @@ -0,0 +1,40 @@ +name: Dispatched Build and publish RaspAP images + +permissions: + contents: write + +on: + workflow_dispatch: + +jobs: + build-raspap-image: + runs-on: ubuntu-latest + strategy: + matrix: + include: + - arch: "32-bit" + pi_gen_version: "master" + - arch: "64-bit" + pi_gen_version: "arm64" + fail-fast: false + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build RaspAP Image + id: build + uses: usimd/pi-gen-action@v1 + with: + image-name: "raspap-bookworm-${{ matrix.arch == '32-bit' && 'armhf' || 'arm64' }}-lite-${{ github.event.inputs.tag || github.ref_name }}" + enable-ssh: 1 + stage-list: stage0 stage1 stage2 + # stage-list: stage0 stage1 stage2 ./stage-raspap + verbose-output: true + pi-gen-version: ${{ matrix.pi_gen_version }} + pi-gen-repository: RaspAP/pi-gen + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: rpi-deploy-${{ matrix.arch }}.img.zip + path: ${{ steps.build.outputs.image-path }} diff --git a/.github/workflows/build_with_custompios.yml b/.github/workflows/build_with_custompios.yml new file mode 100644 index 0000000..a823755 --- /dev/null +++ b/.github/workflows/build_with_custompios.yml @@ -0,0 +1,25 @@ +name: Build Image + +on: push + +jobs: + build-image: + runs-on: ubuntu-latest + steps: + - name: Checkout releases repo into `.github/composite-actions` + uses: actions/checkout@v3 + with: + repository: jamtools/rpi-deploy + path: .github/composite-actions + ref: ${{ github.sha }} + + - name: Build RPi Image + uses: ./.github/composite-actions/.github/actions/build-rpi-image + with: + source_repo: 'jamtools/jamscribe' + version_prefix: 'vjamscribe-' + gh_releases_token: ${{ secrets.GH_RELEASES_TOKEN }} + service_name: 'jamscribe' + service_command: '/usr/bin/node /home/pi/code/artifacts/dist/server/dist/local-server.cjs' + chroot_commands: | + npm i better-sqlite3 easymidi diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83f0e13..a64e264 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,8 @@ jobs: run: npm run check-types test: + # skip tests for now + if: false runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml new file mode 100644 index 0000000..69dcc67 --- /dev/null +++ b/.github/workflows/claude.yml @@ -0,0 +1,63 @@ +name: Claude Code + +on: + issue_comment: + types: [created] + pull_request_review_comment: + types: [created] + issues: + types: [opened, assigned] + pull_request_review: + types: [submitted] + +jobs: + claude: + if: | + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || + (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + issues: read + id-token: write + actions: read # Required for Claude to read CI results on PRs + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + + - name: Run Claude Code + id: claude + uses: anthropics/claude-code-action@beta + with: + claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} + + # This is an optional setting that allows Claude to read CI results on PRs + additional_permissions: | + actions: read + + # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4) + # model: "claude-opus-4-20250514" + + # Optional: Customize the trigger phrase (default: @claude) + # trigger_phrase: "/claude" + + # Optional: Trigger when specific user is assigned to an issue + # assignee_trigger: "claude-bot" + + # Optional: Allow Claude to run specific commands + # allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)" + + # Optional: Add custom instructions for Claude to customize its behavior for your project + # custom_instructions: | + # Follow our coding standards + # Ensure all new code has tests + # Use TypeScript for new files + + # Optional: Custom environment variables for Claude + # claude_env: | + # NODE_ENV: test diff --git a/FullPageOS/.github/ISSUE_TEMPLATE.md b/FullPageOS/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..9b6f4c6 --- /dev/null +++ b/FullPageOS/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,19 @@ +#### What were you doing? + +[Please be as specific as possible here] + +#### What did you expect to happen? + +#### What happened instead? + +#### Was there an error message displayed? What did it say? + +#### Version of FullPageOS? + +[Can be found in /etc/fullpageos_version ALWAYS INCLUDE.] + +#### Screenshot(s) showing the problem: + +[If applicable. Always include if unsure or reporting UI issues.] + +#### If you are building FullPageOS - provide a build.log that is created for the build diff --git a/FullPageOS/.github/workflows/main.yml b/FullPageOS/.github/workflows/main.yml new file mode 100644 index 0000000..caef7b2 --- /dev/null +++ b/FullPageOS/.github/workflows/main.yml @@ -0,0 +1,37 @@ +name: Build Image + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Update apt + run: sudo apt-get update + - name: Install Dependencies + run: sudo apt install coreutils p7zip-full qemu-user-static python3-git + - name: Checkout CustomPiOS + uses: actions/checkout@v2 + with: + repository: 'guysoft/CustomPiOS' + path: CustomPiOS + - name: Checkout Project Repository + uses: actions/checkout@v2 + with: + repository: ${{ github.repository }} + path: repository + submodules: true + - name: Download Raspbian Image + run: cd repository/src/image && wget -q -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf_latest' + - name: Update CustomPiOS Paths + run: cd repository/src && ../../CustomPiOS/src/update-custompios-paths + - name: Build Image + run: sudo modprobe loop && cd repository/src && sudo bash -x ./build_dist + - name: Copy Output + run: cp ${{ github.workspace }}/repository/src/workspace/*-raspios-*-lite.img build.img + - name: Zip Output + run: gzip build.img + - uses: actions/upload-artifact@v4 + with: + name: build.img.gz + path: build.img.gz diff --git a/FullPageOS/.gitignore b/FullPageOS/.gitignore new file mode 100644 index 0000000..ee3ff5a --- /dev/null +++ b/FullPageOS/.gitignore @@ -0,0 +1,10 @@ +src/config.local +src/image/*.zip +src/custompios_path +src/build.log +src/vagrant/.vagrant/* +src/vagrant/*.log +src/workspace/* +src/workspace*/* +src/variants/* +!src/variants/no-acceleration diff --git a/FullPageOS/LICENSE b/FullPageOS/LICENSE new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/FullPageOS/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/FullPageOS/README.rst b/FullPageOS/README.rst new file mode 100644 index 0000000..226a3ec --- /dev/null +++ b/FullPageOS/README.rst @@ -0,0 +1,158 @@ +FullPageOS +========== + +.. image:: https://github.com/guysoft/FullPageOS/blob/secularstevelogo/media/FullPageOS.png?raw=true +.. :scale: 50 % +.. :alt: FullPageOS logo + +A `Raspberry Pi `_ distribution to display one webpage in full screen. It includes `Chromium `_ out of the box and the scripts necessary to load it at boot. +This repository contains the source script to generate the distribution out of an existing `Raspbian `_ distro image. + +FullPageOS started as a fork from `OctoPi `_, but then joined the distros that use `CustomPiOS `_. + +Donate +------ +FullPageOS is 100% free and open source and maintained by Guy Sheffer. If it's helping your life, your organisation or makes you happy, please consider making a donation. It means I can code more and worry less about my balance. Any amount counts. + +|paypal| + +.. |paypal| image:: https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif + :target: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=26VJ9MSBH3V3W&source=url + +Where to get it? +---------------- + +The official mirror is `here `_ + +Nightly builds are available `here `_ (currently built on demand) + +How to use it? +-------------- + +#. Unzip the image and install it to an SD card `like any other Raspberry Pi image `_ +#. Configure your WiFi by editing ``wifi.nmconnection`` on the first partition of the flashed card when using it like a flash drive +#. Boot the Pi from the SD card +#. Log into your Pi via SSH (it is located at ``fullpageos.local`` `if your computer supports bonjour `_ or the IP address assigned by your router), default username is "pi", default password is "raspberry" and change the password using the ``passwd`` command. Consider also changing the vnc password as well by `x11vnc -storepasswd`. + +Requirements +------------ +* Raspberry Pi 2 and newer or device running Armbian. Older Raspberry Pis are not currently supported. See `Raspberry Pi `_ and `Raspberry Pi `_. +* SD card, 4GB or larger, Class 10. (Early June 2020 was the image size 3GB.) +* 2A power supply + + +Features +-------- + +* Loads Chromium at boot in full screen +* Webpage can be changed from /boot/firmware/fullpageos.txt + * You can use variable `{serial}` in the url to get device's serialnumber in the URL +* Default app is `FullPageDashboard `_, which lets you add multiple tabs changes that switch automatically. +* Ships with preconfigured `X11VNC `_, for remote connection (password 'raspberry') +* Specify a custom Splashscreen that gets displayed in the booting process instead of Kernel messages/text + +Developing +---------- + +Requirements +~~~~~~~~~~~~ + +#. `qemu-arm-static `_ +#. `CustomPiOS `_ +#. Downloaded `Raspbian `_ image. +#. root privileges for chroot +#. Bash +#. realpath +#. sudo (the script itself calls it, running as root without sudo won't work) +#. jq (part of CustomPiOS dependencies) + +Build FullPageOS From within FullPageOS / Raspbian / Debian / Ubuntu +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +FullPageOS can be built from Debian, Ubuntu, Raspbian, or even FullPageOS. +Build requires about 2.5 GB of free space available. +You can build it by issuing the following commands:: + + sudo apt install coreutils p7zip-full qemu-user-static + + git clone https://github.com/guysoft/CustomPiOS.git + git clone https://github.com/guysoft/FullPageOS.git + cd FullPageOS/src/image + wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspios_lite_armhf_latest' + cd .. + ../../CustomPiOS/src/update-custompios-paths + sudo modprobe loop + sudo bash -x ./build_dist + +Building FullPageOS Variants +~~~~~~~~~~~~~~~~~~~~~~~~ + +FullPageOS supports building variants, which are builds with changes from the main release build. An example and other variants are available in the folder ``src/variants/example``. + +To build a variant use:: + + sudo bash -x ./build_dist [Variant] + + +Building Using Docker +~~~~~~~~~~~~~~~~~~~~~~ +`See Building with docker entry in wiki `_ + + +Building Using Vagrant +~~~~~~~~~~~~~~~~~~~~~~ +There is a vagrant machine configuration to let build FullPageOS in case your build environment behaves differently. Unless you do extra configuration, vagrant must run as root to have nfs folder sync working. + +Make sure you have a version of vagrant later than 1.9! + +If you are using older versions of Ubuntu/Debian and not using apt-get `from the download page `_. + +To use it:: + + sudo apt-get install vagrant nfs-kernel-server virtualbox + sudo vagrant plugin install vagrant-nfs_guest + sudo modprobe nfs + cd FullPageOS/src/vagrant + sudo vagrant up + +After provisioning the machine, it's also possible to run a nightly build which updates from devel using:: + + cd FullPageOS/src/vagrant + run_vagrant_build.sh + +To build a variant on the machine simply run:: + + cd FullPageOS/src/vagrant + run_vagrant_build.sh [Variant] + +Usage +~~~~~ + +#. If needed, override existing config settings by creating a new file ``src/config.local``. You can override all settings found in ``src/config``. If you need to override the path to the Raspbian image to use for building OctoPi, override the path to be used in ``ZIP_IMG``. By default, the most recent file matching ``*-raspbian.zip`` found in ``src/image`` will be used. +#. Run ``src/build_dist`` as root. +#. The final image will be created in ``src/workspace`` + + +Remote access +~~~~~~~~~~~~~ + +Remote GUI access can be achieved through VNC Viewer. Get the IP of your raspberry ``hostname -I`` via SSH. + +The password is ``raspberry`` and is independent of password you have set for your user(s). Change the password by ``x11vnc -storepasswd`` via SSH. + + +Install Chrome Extensions +~~~~~~~~~~~~~~~~~~~~~~~~~ + +Press ``ctrl`` + ``t``, it will open a new tab. + +You can either install extensions from `Chrome Web Store `_ or `install your own extension `_. + +If you wish to install your own extension then you can transfer the build files via tools like ``rcp``, ``rsync`` etc. + +Example:: + + rsync -av / pi@fullpageos.local:extensions// + + +Code contribution would be appreciated! diff --git a/FullPageOS/media/FullPageOS.png b/FullPageOS/media/FullPageOS.png new file mode 100644 index 0000000..bb093a2 Binary files /dev/null and b/FullPageOS/media/FullPageOS.png differ diff --git a/FullPageOS/media/FullPageOS.svg b/FullPageOS/media/FullPageOS.svg new file mode 100644 index 0000000..692c377 --- /dev/null +++ b/FullPageOS/media/FullPageOS.svg @@ -0,0 +1,156 @@ + + + + diff --git a/FullPageOS/media/rpi-imager-FullPageOS.png b/FullPageOS/media/rpi-imager-FullPageOS.png new file mode 100644 index 0000000..69ff5db Binary files /dev/null and b/FullPageOS/media/rpi-imager-FullPageOS.png differ diff --git a/FullPageOS/src/build_dist b/FullPageOS/src/build_dist new file mode 100755 index 0000000..428a071 --- /dev/null +++ b/FullPageOS/src/build_dist @@ -0,0 +1,9 @@ +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +export DIST_PATH=${DIR} +export CUSTOM_PI_OS_PATH=$(<${DIR}/custompios_path) +export PATH=$PATH:$CUSTOM_PI_OS_PATH +echo ${CUSTOM_PI_OS_PATH} + +${CUSTOM_PI_OS_PATH}/build_custom_os $@ + diff --git a/FullPageOS/src/config b/FullPageOS/src/config new file mode 100755 index 0000000..65af7b9 --- /dev/null +++ b/FullPageOS/src/config @@ -0,0 +1,17 @@ +export DIST_NAME=FullpageOS +export DIST_VERSION=1.0.0 +export MODULES="base(raspicam, network, disable-services(gui(fullpageos), usage-statistics), rpi-deploy)" + +# if set will enlarge root parition prior to build by provided size in MB +export BASE_IMAGE_ENLARGEROOT=2000 + +# if set will resize root partition on image after build to minimum size + +# provided size in MB +export BASE_IMAGE_RESIZEROOT=200 +export GUI_STARTUP_SCRIPT=/opt/custompios/scripts/run_onepageos + +export RPI_IMAGER_NAME="${DIST_NAME}" +export RPI_IMAGER_DESCRIPTION="A raspberrypi distro to display a full page browser on boot" +export RPI_IMAGER_ICON="https://raw.githubusercontent.com/guysoft/FullPageOS/devel/media/rpi-imager-FullPageOS.png" + +export USAGE_STATISTICS_URL=https://fullpageos-tracking.gnethomelinux.com diff --git a/FullPageOS/src/image/README b/FullPageOS/src/image/README new file mode 100644 index 0000000..8c07825 --- /dev/null +++ b/FullPageOS/src/image/README @@ -0,0 +1,5 @@ +Place zipped Rasbian image here. + +If not otherwise specified, the build script will always use the most +recent zip file matching the file name pattern "*-raspbian.zip" located +here. diff --git a/FullPageOS/src/modules/fullpageos/config b/FullPageOS/src/modules/fullpageos/config new file mode 100644 index 0000000..7458458 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/config @@ -0,0 +1,41 @@ +############################################################################### +#override timezone, otherwise use image timezone +[ -n "$FULLPAGEOS_OVERRIDE_TIMEZONE" ] || FULLPAGEOS_OVERRIDE_TIMEZONE=default + +#override locale, otherwise use image locale +# Run locale -a to get a list of the locale names suitable for use in environment variables. Note that the spellings are different from the ones presented in the dpkg-reconfigure list. +# More information at https://wiki.debian.org/Locale#Standard +[ -n "$FULLPAGEOS_OVERRIDE_LOCALE" ] || FULLPAGEOS_OVERRIDE_LOCALE=default + +#override keyboard model and layout, otherwise use image default +# see `man keyboard` for more information and the file +# `/usr/share/X11/xkb/rules/xorg.lst` for the list of models and layouts +[ -n "$FULLPAGEOS_OVERRIDE_KBD_MODEL" ] || FULLPAGEOS_OVERRIDE_KBD_MODEL=default +[ -n "$FULLPAGEOS_OVERRIDE_KBD_LAYOUT" ] || FULLPAGEOS_OVERRIDE_KBD_LAYOUT=default + +#override password, otherwise use image default +[ -n "$FULLPAGEOS_OVERRIDE_PASSWORD" ] || FULLPAGEOS_OVERRIDE_PASSWORD=default + +[ -n "$FULLPAGEOS_INCLUDE_CHROMIUM" ] || FULLPAGEOS_INCLUDE_CHROMIUM=yes +[ -n "$FULLPAGEOS_INCLUDE_LIGHTTPD" ] || FULLPAGEOS_INCLUDE_LIGHTTPD=yes + +# FullPageDashboard repo & branch +[ -n "$FULLPAGEOS_DASHBOARD_REPO_SHIP" ] || FULLPAGEOS_DASHBOARD_REPO_SHIP=https://github.com/amitdar/FullPageDashboard.git +[ -n "$FULLPAGEOS_DASHBOARD_REPO_BUILD" ] || FULLPAGEOS_DASHBOARD_REPO_BUILD= +[ -n "$FULLPAGEOS_DASHBOARD_REPO_BRANCH" ] || FULLPAGEOS_DASHBOARD_REPO_BRANCH=master +[ -n "$FULLPAGEOS_INCLUDE_DASHBOARD" ] || FULLPAGEOS_INCLUDE_DASHBOARD=yes + +# FullPageDashboard repo & branch +[ -n "$FULLPAGEOS_WELCOME_REPO_SHIP" ] || FULLPAGEOS_WELCOME_REPO_SHIP=https://github.com/tailorvj/FullPageOSWelcome.git +[ -n "$FULLPAGEOS_WELCOME_REPO_BUILD" ] || FULLPAGEOS_WELCOME_REPO_BUILD= +[ -n "$FULLPAGEOS_WELCOME_REPO_BRANCH" ] || FULLPAGEOS_WELCOME_REPO_BRANCH=master +[ -n "$FULLPAGEOS_INCLUDE_WELCOME" ] || FULLPAGEOS_INCLUDE_WELCOME=yes + +# Add GPU acceleration +[ -n "$FULLPAGEOS_INCLUDE_ACCELERATION" ] || FULLPAGEOS_INCLUDE_ACCELERATION=yes + +# Enable custom Splashscreen. Put your picture into FullPageOS/modules/fullpageos/filesystem/home/pi/media/splash.png +[ -n "$FULLPAGEOS_CUSTOM_SPLASHSCREEN" ] || FULLPAGEOS_CUSTOM_SPLASHSCREEN=yes + +# Install and enable x11vnc service +[ -n "$FULLPAGEOS_INCLUDE_X11VNC" ] || FULLPAGEOS_INCLUDE_X11VNC=yes diff --git a/FullPageOS/src/modules/fullpageos/filesystem/boot/fullpagedashboard.txt b/FullPageOS/src/modules/fullpageos/filesystem/boot/fullpagedashboard.txt new file mode 100644 index 0000000..1b8a62f --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/boot/fullpagedashboard.txt @@ -0,0 +1 @@ +http://localhost/welcome diff --git a/FullPageOS/src/modules/fullpageos/filesystem/boot/fullpageos.txt b/FullPageOS/src/modules/fullpageos/filesystem/boot/fullpageos.txt new file mode 100644 index 0000000..a41cab5 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/boot/fullpageos.txt @@ -0,0 +1 @@ +http://localhost/FullPageDashboard diff --git a/FullPageOS/src/modules/fullpageos/filesystem/boot/splash.png b/FullPageOS/src/modules/fullpageos/filesystem/boot/splash.png new file mode 100644 index 0000000..c75fc01 Binary files /dev/null and b/FullPageOS/src/modules/fullpageos/filesystem/boot/splash.png differ diff --git a/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/background.png b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/background.png new file mode 100644 index 0000000..c75fc01 Binary files /dev/null and b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/background.png differ diff --git a/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/fullscreen b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/fullscreen new file mode 100755 index 0000000..a49ffad --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/fullscreen @@ -0,0 +1,6 @@ +#!/bin/bash +export DISPLAY=:0 +WID=$(xdotool search --onlyvisible --class chromium|head -1) +xdotool windowactivate ${WID} +xdotool key F11 +xdotool mousemove 9000 9000 diff --git a/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url new file mode 100755 index 0000000..33dc323 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/get_url @@ -0,0 +1,5 @@ +#!/bin/bash + +SERIAL=`cat /proc/cpuinfo | grep -i '^Serial' | awk '{ print $3 }'` +URL="$(head -n 1 /boot/firmware/fullpageos.txt | sed -e "s/{serial}/${SERIAL}/g")" +echo $URL diff --git a/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/refresh b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/refresh new file mode 100755 index 0000000..a7f7b68 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/refresh @@ -0,0 +1,6 @@ +#!/bin/bash +export DISPLAY=:0 +sleep 1 +WID=$(xdotool search --onlyvisible --class chromium|head -1) +xdotool windowactivate ${WID} +xdotool key ctrl+F5 diff --git a/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/reload_fullpageos_txt b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/reload_fullpageos_txt new file mode 100755 index 0000000..e23b090 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/reload_fullpageos_txt @@ -0,0 +1,2 @@ +#!/bin/bash +killall /usr/lib/chromium/chromium diff --git a/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/run_onepageos b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/run_onepageos new file mode 100755 index 0000000..9e721dc --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/run_onepageos @@ -0,0 +1,14 @@ +#!/bin/bash + +USER_AGENT="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" + +feh --bg-center /opt/custompios/background.png + +while true +do + if [[ $(curl -sL -b cookiefile -w "%{http_code}\\n" -H "user-agent: ${USER_AGENT}" "$(/opt/custompios/scripts/get_url)" -o /dev/null) =~ ^([23][0-9]{2,2}|401)$ ]] || grep -q disabled "/boot/firmware/check_for_httpd" ; then + xdotool mousemove 9000 9000 + %BROWSER_START_SCRIPT% + fi + sleep 1 +done diff --git a/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/safe_refresh b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/safe_refresh new file mode 100644 index 0000000..376efe3 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/safe_refresh @@ -0,0 +1,18 @@ +#!/bin/bash + +# This script attempts a refresh, but only if the requested page returns successfully. + +curl --fail "$(/opt/custompios/scripts/get_url)" &> /dev/null +curlRetr="$?" + +if [[ "$curlRetr" -ne "0" ]]; then + echo "Waiting to refresh since server is having issues."; + exit 1; +fi + +echo "Refreshing page."; + +export DISPLAY=:0 +WID=$(xdotool search --onlyvisible --class chromium|head -1) +xdotool windowactivate ${WID} +xdotool key ctrl+F5 diff --git a/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/setX11vncPass b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/setX11vncPass new file mode 100755 index 0000000..c76d809 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/setX11vncPass @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# fix for when runnign in sudo +bash -c 'mkdir -p /opt/custompios/vnc' +bash -c 'x11vnc -storepasswd "'${1}'" /opt/custompios/vnc/passwd' diff --git a/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/start_chromium_browser b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/start_chromium_browser new file mode 100755 index 0000000..be5eafa --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/opt/custompios/scripts/start_chromium_browser @@ -0,0 +1,34 @@ +#!/bin/bash + +flags=( + --kiosk + --touch-events=enabled + --disable-pinch + --noerrdialogs + --disable-session-crashed-bubble + --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT' + --disable-component-update + --overscroll-history-navigation=0 + --disable-features=TranslateUI + --autoplay-policy=no-user-gesture-required +) + +# Standard behavior - runs chromium +chromium-browser "${flags[@]}" --app=$(/opt/custompios/scripts/get_url) +exit; + +# Remove the two lines above to enable signage mode - refresh the browser whenever errors are seen in log + +chromium-browser --enable-logging --log-level=2 --v=0 "${flags[@]}" --app=$(/opt/custompios/scripts/get_url) & + +export logfile="/home/$(id -nu 1000)/.config/chromium/chrome_debug.log" + + +# Refreshes after a crash by watching logs +tail -n 0 -F "$logfile" | while read LOGLINE &> /dev/null; do + + echo "Refreshing after crash" + echo "Restarting at `date` after a reported crash. Logline: ${LOGLINE}" >> /tmp/crashlog + [[ ("${LOGLINE}" == *"ERROR"*) || ("${LOGLINE}" == *"FATAL"*) ]] && /home/$(id -nu 1000)/scripts/refresh + +done diff --git a/FullPageOS/src/modules/fullpageos/filesystem/root_init/etc/systemd/system/clear_lighttpd_cache.service b/FullPageOS/src/modules/fullpageos/filesystem/root_init/etc/systemd/system/clear_lighttpd_cache.service new file mode 100644 index 0000000..1552041 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/root_init/etc/systemd/system/clear_lighttpd_cache.service @@ -0,0 +1,8 @@ +[Unit] +Description=Clear the cache of lighttpd when the system starts +[Service] +ExecStart=/bin/rm -rf /var/cache/lighttpd/* +ExecReload=/bin/rm -rf /var/cache/lighttpd/* +ExecStop= +[Install] +WantedBy=multi-user.target diff --git a/FullPageOS/src/modules/fullpageos/filesystem/root_init/etc/systemd/system/splashscreen.service b/FullPageOS/src/modules/fullpageos/filesystem/root_init/etc/systemd/system/splashscreen.service new file mode 100644 index 0000000..5f67cf1 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/root_init/etc/systemd/system/splashscreen.service @@ -0,0 +1,12 @@ +[Unit] +Description=Splash screen +DefaultDependencies=no +After=local-fs.target + +[Service] +ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /boot/firmware/splash.png +StandardInput=tty +StandardOutput=tty + +[Install] +WantedBy=sysinit.target diff --git a/FullPageOS/src/modules/fullpageos/filesystem/root_init/etc/systemd/system/x11vnc.service b/FullPageOS/src/modules/fullpageos/filesystem/root_init/etc/systemd/system/x11vnc.service new file mode 100644 index 0000000..3b7fd67 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/filesystem/root_init/etc/systemd/system/x11vnc.service @@ -0,0 +1,13 @@ +[Unit] +Description=VNC Server for X11 +ConditionPathExists=/opt/custompios/vnc/passwd +Requires=display-manager.service + +[Service] +ExecStart=/usr/bin/x11vnc -display :0 -auth guess -many -noxdamage -rfbauth /opt/custompios/vnc/passwd -rfbport 5900 -shared +ExecStop=/usr/bin/x11vnc -R stop +Restart=on-failure +RestartSec=2 + +[Install] +WantedBy=multi-user.target diff --git a/FullPageOS/src/modules/fullpageos/start_chroot_script b/FullPageOS/src/modules/fullpageos/start_chroot_script new file mode 100755 index 0000000..111bb68 --- /dev/null +++ b/FullPageOS/src/modules/fullpageos/start_chroot_script @@ -0,0 +1,176 @@ +#!/usr/bin/env bash +# FullPageOS generation script +# Helper script that runs in a Raspbian/others chroot to create the FullPageOS distro +# Written by Guy Sheffer +# GPL V3 +######## +set -x +set -e + +source /common.sh + +unpack /filesystem/opt /opt +unpack /filesystem/boot /"${BASE_BOOT_MOUNT_PATH}" +unpack /filesystem/root_init / + +apt-get update + +# Display a custom Splashscreen when booting the Rpi +if [ "$FULLPAGEOS_CUSTOM_SPLASHSCREEN" == "yes" ] +then + apt-get install -y fbi + if [ "${BASE_BOARD}" == raspberrypi* ]; then + sed -i 's/$/ logo.nologo consoleblank=0 loglevel=0 quiet/' /"${BASE_BOOT_MOUNT_PATH}"/cmdline.txt + fi + echo "disable_splash=1" >> /"${BASE_BOOT_MOUNT_PATH}"/config.txt + systemctl enable splashscreen.service + systemctl disable getty@tty1 +fi + +remove_extra=$(remove_if_installed scratch squeak-plugins-scratch squeak-vm python-minecraftpi minecraft-pi sonic-pi oracle-java8-jdk bluej greenfoot libreoffice-common libreoffice-core freepats) + +apt-get remove -y --purge $remove_extra + +apt-get autoremove -y + +#apt-get tools +apt-get -y install git screen checkinstall avahi-daemon libavahi-compat-libdnssd1 xterm xdotool vim expect feh pulseaudio + +if [ "$FULLPAGEOS_INCLUDE_CHROMIUM" == "yes" ] +then + # Try chromium first (Bookworm/Debian 12+), then chromium-browser (Bullseye) + apt-get install -y chromium || apt-get install -y chromium-browser + sed -i 's@%BROWSER_START_SCRIPT%@/opt/custompios/scripts/start_chromium_browser@g' /opt/custompios/scripts/run_onepageos +fi + +#Install web stack +if [ "$FULLPAGEOS_INCLUDE_LIGHTTPD" == "yes" ] +then + apt-get install -y lighttpd php-common php-cgi php + lighty-enable-mod fastcgi-php + #service lighttpd force-reload + chown -R www-data:www-data /var/www/html + chmod 775 /var/www/html + usermod -a -G www-data pi + systemctl enable clear_lighttpd_cache.service + pushd /var/www/html + #Put git clones in place + if [ "$FULLPAGEOS_INCLUDE_DASHBOARD" == "yes" ] + then + gitclone FULLPAGEOS_DASHBOARD_REPO FullPageDashboard + chown -R pi:pi FullPageDashboard + chown -R www-data:www-data FullPageDashboard + chmod 775 FullPageDashboard + pushd FullPageDashboard + sed -i "s@'INIT_URL_PATH', __DIR__ . '/init.txt'@'INIT_URL_PATH', '/"${BASE_BOOT_MOUNT_PATH}"/fullpagedashboard.txt'@g" config.php + popd + fi + #Set Welcome screen + if [ "$FULLPAGEOS_INCLUDE_WELCOME" == "yes" ] + then + gitclone FULLPAGEOS_WELCOME_REPO welcome + chown -R www-data:www-data welcome + fi + popd + + echo "enabled" > /"${BASE_BOOT_MOUNT_PATH}"/check_for_httpd +else + echo "disabled" > /"${BASE_BOOT_MOUNT_PATH}"/check_for_httpd +fi + + +#override timezone +if [ "$FULLPAGEOS_OVERRIDE_TIMEZONE" != "default" ] +then + ln -fs /usr/share/zoneinfo/"$FULLPAGEOS_OVERRIDE_TIMEZONE" /etc/localtime + dpkg-reconfigure -f noninteractive tzdata +fi + +#override locale +if [ "$FULLPAGEOS_OVERRIDE_LOCALE" != "default" ] +then + sed -i '/^#.* '"$FULLPAGEOS_OVERRIDE_LOCALE"' /s/^# //' /etc/locale.gen + locale-gen + update-locale LANG="$FULLPAGEOS_OVERRIDE_LOCALE" +fi + +#override keyboard model and layout +if [ "$FULLPAGEOS_OVERRIDE_KBD_MODEL" != "default" ] +then + sed -i 's/^XKBMODEL=.*/XKBMODEL="'$FULLPAGEOS_OVERRIDE_KBD_MODEL'"/' /etc/default/keyboard +fi +if [ "$FULLPAGEOS_OVERRIDE_KBD_LAYOUT" != "default" ] +then + sed -i 's/^XKBLAYOUT=.*/XKBLAYOUT="'$FULLPAGEOS_OVERRIDE_KBD_LAYOUT'"/' /etc/default/keyboard +fi +if [ "$FULLPAGEOS_OVERRIDE_KBD_MODEL" != "default" ] || [ "$FULLPAGEOS_OVERRIDE_KBD_LAYOUT" != "default" ] +then + setupcon -k --save-only +fi + +# Add emoji support +sudo -u pi mkdir -p /home/pi/.fonts +sudo -u pi wget --directory-prefix /home/pi/.fonts https://github.com/googlefonts/noto-emoji/raw/main/fonts/NotoColorEmoji.ttf + +#override password +if [ "$FULLPAGEOS_OVERRIDE_PASSWORD" != "default" ] +then + #root password + echo "pi:$FULLPAGEOS_OVERRIDE_PASSWORD" | chpasswd +fi + +#Setup x11vnc +if [ "$FULLPAGEOS_INCLUDE_X11VNC" == "yes" ] +then + apt-get install -y x11vnc + + mkdir -p /opt/custompios/vnc + chown "${BASE_USER}":"${BASE_USER}" /opt/custompios/vnc + + # Set x11vnc password + if [ "$FULLPAGEOS_OVERRIDE_PASSWORD" != "default" ] + then + sudo -u pi /opt/custompios/scripts/setX11vncPass "$FULLPAGEOS_OVERRIDE_PASSWORD" + sync + if [ ! -f /opt/custompios/vnc/passwd ] || [ ! -s /opt/custompios/vnc/passwd ]; then + echo "/opt/custompios/vnc/passwd was not created. Trying again." + sudo -u pi /opt/custompios/scripts/setX11vncPass "$FULLPAGEOS_OVERRIDE_PASSWORD" + sync + if [ ! -f /opt/custompios/vnc/passwd ] || [ ! -s /opt/custompios/vnc/passwd ]; then + echo "/opt/custompios/vnc/passwd was not created again. Giving up." + echo "Failed to set a VNC password. Aborting build." + exit 1 + fi + fi + else + sudo -u pi /opt/custompios/scripts/setX11vncPass raspberry + sync + if [ ! -f /opt/custompios/vnc/passwd ] || [ ! -s /opt/custompios/vnc/passwd ]; then + echo "/opt/custompios/vnc/passwd was not created. Trying again." + sudo -u pi /opt/custompios/scripts/setX11vncPass raspberry + sync + if [ ! -f /opt/custompios/vnc/passwd ] || [ ! -s /opt/custompios/vnc/passwd ]; then + echo "/opt/custompios/vnc/passwd was not created again. Giving up." + echo "Failed to set a VNC password. Aborting build." + exit 1 + fi + fi + fi + ls -l /opt/custompios/vnc/passwd + + #Enable x11vnc service + systemctl enable x11vnc.service +fi + +#echo "sudo -u pi startx /opt/custompios/scripts/run_onepageos &" >> /etc/rc.local +#echo "(sleep 15 ; sudo -u pi /opt/custompios/scripts/fullscreen) &" >> /etc/rc.local + +##################################################################### +### setup services + +echo "server time.nist.gov" >> /etc/ntp.conf +echo "server ntp.ubuntu.com" >> /etc/ntp.conf + +#cleanup +apt-get clean +apt-get autoremove -y diff --git a/FullPageOS/src/modules/rpi-deploy/config b/FullPageOS/src/modules/rpi-deploy/config new file mode 100644 index 0000000..e69de29 diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/esbuild.env.example b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/esbuild.env.example new file mode 100644 index 0000000..b5ca1f5 --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/esbuild.env.example @@ -0,0 +1,8 @@ +# Esbuild configuration for local development mode +# Copy this file to esbuild.env and customize as needed + +# URL of your local esbuild development server +ESBUILD_SERVER_URL=http://localhost:1380 + +# Name of the systemd service to create/update +SERVICE_NAME=myapp-dev \ No newline at end of file diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/local_file.yml b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/local_file.yml new file mode 100644 index 0000000..6bc741e --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/local_file.yml @@ -0,0 +1,18 @@ +name: Watch esbuild output file hash and deploy if changed +sources: + fileHash: + kind: shell + name: local hash + spec: + command: curl -s ${ESBUILD_SERVER_URL:-http://localhost:1380}/index.js | sha256sum | cut -d' ' -f1 +conditions: + hashChanged: + kind: shell + sourceid: fileHash + spec: + command: /home/pi/code/scripts/compare_with_file.sh /home/pi/code/.last_index_hash +targets: + fetchBinary: + kind: shell + spec: + command: /home/pi/code/scripts/run_from_esbuild.sh ${SERVICE_NAME:-myapp-dev} diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/check_esbuild.js b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/check_esbuild.js new file mode 100644 index 0000000..c8ca3e2 --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/check_esbuild.js @@ -0,0 +1,27 @@ +const {EventSource} = require('eventsource'); +const {spawn} = require('node:child_process'); + +const origin = process.env.ESBUILD_SERVER_URL || 'http://localhost:1380'; +const serviceName = process.env.SERVICE_NAME || 'myapp-dev'; + +console.log(`Starting esbuild watcher for ${origin} with service ${serviceName}`); + +setTimeout(async () => { + run(); + new EventSource(origin + '/esbuild').addEventListener('change', async e => { + run(); + }); +}); + +const run = () => { + spawn('/home/pi/code/scripts/run_from_esbuild.sh', [serviceName], { + // spawn('updatecli', ['apply', '--config', '/home/pi/code/local_file.yml'], { + env: { + ...process.env, + ESBUILD_SERVER_URL: origin, + SERVICE_NAME: serviceName, + }, + cwd: '/home/pi/code', + stdio: 'inherit', + }); +}; diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/common/create_and_run_service.sh b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/common/create_and_run_service.sh new file mode 100755 index 0000000..4e33eaa --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/common/create_and_run_service.sh @@ -0,0 +1,46 @@ +#!/usr/bin/env bash + +set -e + +SECONDS=0 + +SERVICE_NAME="$1" +COMMAND="$2" + +SYSTEMD_PATH="/etc/systemd/system/${SERVICE_NAME}.service" + +NEW_SERVICE_CONTENT="[Unit] +Description=$SERVICE_NAME +After=network.target + +[Service] +Type=simple +ExecStart=$COMMAND +Restart=on-failure +WorkingDirectory=/home/pi/code/artifacts + +[Install] +WantedBy=multi-user.target" + +echo "Before check took $SECONDS seconds" +if [ ! -f "$SYSTEMD_PATH" ] || ! echo "$NEW_SERVICE_CONTENT" | sudo diff - "$SYSTEMD_PATH" >/dev/null 2>&1; then + echo "Service file needs updating..." + echo "$NEW_SERVICE_CONTENT" | sudo tee "$SYSTEMD_PATH" > /dev/null + echo "Before reload took $SECONDS seconds" + sudo systemctl daemon-reload + echo "After reload took $SECONDS seconds" +else + echo "Service file is up to date" +fi + +echo "Before restart took $SECONDS seconds" + +echo "Restarting service..." +sudo systemctl enable "$SERVICE_NAME" + +echo "Before restart took $SECONDS seconds" +sudo systemctl restart "$SERVICE_NAME" + +echo "After restart took $SECONDS seconds" + +echo "Done!" diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/compare_with_file.sh b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/compare_with_file.sh new file mode 100755 index 0000000..8c636af --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/compare_with_file.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# set -euo pipefail + +COMPARE_FILE="$1" +SOURCE_VALUE="${2:-}" + +# If SOURCE_VALUE is empty, use last argument passed (from Updatecli) +if [ -z "$SOURCE_VALUE" ]; then + SOURCE_VALUE="${@: -1}" +fi + +if [ ! -f "$COMPARE_FILE" ]; then + echo "Compare file not found, creating with value: $SOURCE_VALUE" + echo "$SOURCE_VALUE" > "$COMPARE_FILE" + exit 0 +fi + +EXISTING_VALUE=$(cat "$COMPARE_FILE") + +if [ "$EXISTING_VALUE" = "$SOURCE_VALUE" ]; then + echo "No change needed. Value matches $COMPARE_FILE." + exit 1 +else + echo "Value changed. Updating $COMPARE_FILE." + echo "$SOURCE_VALUE" > "$COMPARE_FILE" + exit 0 +fi diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/run_from_esbuild.sh b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/run_from_esbuild.sh new file mode 100755 index 0000000..0a968da --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/run_from_esbuild.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -e + +ESBUILD_SERVER_URL="${ESBUILD_SERVER_URL:-http://localhost:1380}" +SERVICE_NAME="${1:-myapp-dev}" + +mkdir -p /home/pi/code/artifacts +curl -sL -o /home/pi/code/artifacts/index.js "${ESBUILD_SERVER_URL}/index.js" + +/home/pi/code/scripts/common/create_and_run_service.sh "$SERVICE_NAME" "node /home/pi/code/artifacts/index.js" diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/run_from_github_release.sh b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/run_from_github_release.sh new file mode 100755 index 0000000..456d2bc --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/scripts/run_from_github_release.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e + +mkdir -p /home/pi/code/artifacts +curl -sL -o /home/pi/code/artifacts/dist.zip "https://github.com/$1/$2/releases/download/$3/dist.zip" + +mkdir -p /home/pi/code/artifacts/dist +unzip -o /home/pi/code/artifacts/dist.zip -d /home/pi/code/artifacts/dist + +/home/pi/code/scripts/common/create_and_run_service.sh "${SERVICE_NAME:-myapp}" "${SERVICE_COMMAND}" + +source /home/pi/code/secrets.env + +if [ -n "${WEBHOOK_URL}" ]; then + echo "Sending webhook notification" + curl -X POST -H "Content-Type: application/json" -d '{"text":"new release deployed"}' "${WEBHOOK_URL}" +fi diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/updatecli_github_commit.yml b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/updatecli_github_commit.yml new file mode 100644 index 0000000..15f61ba --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/home/pi/code/updatecli_github_commit.yml @@ -0,0 +1,26 @@ +name: Pull latest release on GitHub +sources: + newRelease: + kind: githubrelease + # name: github version + spec: + owner: ${GITHUB_OWNER} + repository: ${GITHUB_REPOSITORY} + token: "{{ requiredEnv `GH_RELEASES_TOKEN` }}" + versionfilter: + kind: regex + pattern: "${GITHUB_TAG_PREFIX}.*$" + +conditions: + checkIfCommitIsNew: + kind: shell + sourceid: newRelease + spec: + command: /home/pi/code/scripts/compare_with_file.sh /home/pi/code/.last_release_tag + +targets: + runFromRelease: + kind: shell + sourceid: newRelease + spec: + command: /home/pi/code/scripts/run_from_github_release.sh ${GITHUB_OWNER} ${GITHUB_REPOSITORY} diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/root_init/etc/systemd/system/check_esbuild.service b/FullPageOS/src/modules/rpi-deploy/filesystem/root_init/etc/systemd/system/check_esbuild.service new file mode 100644 index 0000000..2beef3e --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/root_init/etc/systemd/system/check_esbuild.service @@ -0,0 +1,11 @@ +[Unit] +Description=Check esbuild output file hash and deploy if changed +After=network.target + +[Service] +Restart=always +ExecStart=/usr/bin/node /home/pi/code/scripts/check_esbuild.js +EnvironmentFile=-/home/pi/code/esbuild.env + +[Install] +WantedBy=multi-user.target diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/root_init/etc/systemd/system/check_github_releases.service b/FullPageOS/src/modules/rpi-deploy/filesystem/root_init/etc/systemd/system/check_github_releases.service new file mode 100644 index 0000000..22149b8 --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/root_init/etc/systemd/system/check_github_releases.service @@ -0,0 +1,11 @@ +[Unit] +Description=Check GitHub releases +After=network.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/updatecli apply --config /home/pi/code/updatecli_github_commit.yml +EnvironmentFile=/home/pi/code/secrets.env + +[Install] +WantedBy=multi-user.target diff --git a/FullPageOS/src/modules/rpi-deploy/filesystem/root_init/etc/systemd/system/check_github_releases.timer b/FullPageOS/src/modules/rpi-deploy/filesystem/root_init/etc/systemd/system/check_github_releases.timer new file mode 100644 index 0000000..5b6312b --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/filesystem/root_init/etc/systemd/system/check_github_releases.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Timer for checking GitHub releases + +[Timer] +OnBootSec=1min +OnUnitActiveSec=1hour + +[Install] +WantedBy=timers.target diff --git a/FullPageOS/src/modules/rpi-deploy/start_chroot_script b/FullPageOS/src/modules/rpi-deploy/start_chroot_script new file mode 100755 index 0000000..8965969 --- /dev/null +++ b/FullPageOS/src/modules/rpi-deploy/start_chroot_script @@ -0,0 +1,53 @@ +#!/usr/bin/env bash +# FullPageOS generation script +# Helper script that runs in a Raspbian/others chroot to create the FullPageOS distro +# Written by Guy Sheffer +# GPL V3 +######## +set -x +set -e + +source /common.sh + +unpack /filesystem/home /home pi +# unpack /filesystem/opt /opt +# unpack /filesystem/boot /"${BASE_BOOT_MOUNT_PATH}" +unpack /filesystem/root_init / + +apt-get update + +sudo apt install -y cockpit + +curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - +sudo apt install -y nodejs + +curl -sL -o /tmp/updatecli_arm64.deb https://github.com/updatecli/updatecli/releases/download/v0.97.0/updatecli_armv6.deb && \ + sudo dpkg -i /tmp/updatecli_arm64.deb && \ + rm /tmp/updatecli_arm64.deb + +# Install Node.js dependencies in the correct directory +cd /home/pi/code +npm init -y +npm i eventsource +${CHROOT_COMMANDS} +cd / + +# Make scripts executable +chmod +x /home/pi/code/scripts/*.sh +chmod +x /home/pi/code/scripts/common/*.sh + +# Enable systemd services +systemctl daemon-reload +systemctl enable check_github_releases.timer +systemctl enable check_github_releases.service + +echo "server time.nist.gov" >> /etc/ntp.conf +echo "server ntp.ubuntu.com" >> /etc/ntp.conf + +# Optional: Enable esbuild service for local development +# Uncomment the following line if you want to use local esbuild server instead of GitHub releases +# systemctl enable check_esbuild.service + +#cleanup +apt-get clean +apt-get autoremove -y diff --git a/FullPageOS/src/vagrant/Vagrantfile b/FullPageOS/src/vagrant/Vagrantfile new file mode 100644 index 0000000..a4567d9 --- /dev/null +++ b/FullPageOS/src/vagrant/Vagrantfile @@ -0,0 +1,17 @@ +vagrant_root = File.dirname(__FILE__) +Vagrant.configure("2") do |o| + # o.vm.box = "octopi-build" + o.vm.box= "debian/stretch64" + o.ssh.shell = "bash -c 'BASH_ENV=/etc/profile exec bash'" + o.vm.synced_folder File.read("../custompios_path").gsub("\n",""), "/CustomPiOS", create:true, type: "nfs" + o.vm.synced_folder "../", "/distro", create:true, type: "nfs" + o.vm.network :private_network, ip: "192.168.55.55" + o.vm.provision :shell, :path => "setup.sh", args: ENV['SHELL_ARGS'] + + #o.vbguest.auto_update = false + + o.vm.provider "virtualbox" do |v| + v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] + v.customize ["modifyvm", :id, "--natdnsproxy1", "on"] + end +end diff --git a/FullPageOS/src/vagrant/instructions.rst b/FullPageOS/src/vagrant/instructions.rst new file mode 100644 index 0000000..cffe6cd --- /dev/null +++ b/FullPageOS/src/vagrant/instructions.rst @@ -0,0 +1,9 @@ +How to use vagrant image build system +===================================== + +Make sure you have all the requirements +:: + sudo apt-get install vagrant nfs-kernel-server + sudo vagrant plugin install vagrant-nfs_guest + sudo modprobe nfs + sudo vagrant up diff --git a/FullPageOS/src/vagrant/run_vagrant_build.sh b/FullPageOS/src/vagrant/run_vagrant_build.sh new file mode 100755 index 0000000..1ef3189 --- /dev/null +++ b/FullPageOS/src/vagrant/run_vagrant_build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +sudo vagrant ssh -- -t "sudo /CustomPiOS/nightly_build_scripts/custompios_nightly_build $@" + diff --git a/FullPageOS/src/vagrant/setup.sh b/FullPageOS/src/vagrant/setup.sh new file mode 100644 index 0000000..71a32b0 --- /dev/null +++ b/FullPageOS/src/vagrant/setup.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +sudo apt-get update +sudo apt-get install -y gawk util-linux realpath git qemu-user-static p7zip-full unzip zip + diff --git a/FullPageOS/src/variants/no-acceleration/config b/FullPageOS/src/variants/no-acceleration/config new file mode 100755 index 0000000..2585bd4 --- /dev/null +++ b/FullPageOS/src/variants/no-acceleration/config @@ -0,0 +1 @@ +GUI_INCLUDE_ACCELERATION=no diff --git a/docker/Dockerfile b/docker/Dockerfile index d68c2b2..6f66910 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,8 +1,24 @@ -FROM ubuntu:20.04 +FROM python:3 + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update + +# RUN sed -i 's|http://ports.ubuntu.com/ubuntu-ports|http://archive.ubuntu.com/ubuntu|g' /etc/apt/sources.list && \ +# apt-get update && \ +# apt-get install -y curl RUN mkdir -p /workspace/app RUN mkdir -p /workspace/runners RUN mkdir -p /workspace/data + +RUN curl -sL -o /tmp/updatecli_amd64.deb https://github.com/updatecli/updatecli/releases/download/v0.97.0/updatecli_amd64.deb && \ + dpkg -i /tmp/updatecli_amd64.deb && \ + rm /tmp/updatecli_amd64.deb + +RUN python3 -m pip install --user ansible +# RUN updatecli version + WORKDIR /workspace/app COPY ./workspace/repo_config.json /workspace/repo_config.json diff --git a/docker/docker-compose.with_volumes.yml b/docker/docker-compose.with_volumes.yml new file mode 100644 index 0000000..cf1b5a2 --- /dev/null +++ b/docker/docker-compose.with_volumes.yml @@ -0,0 +1,10 @@ +version: '3' +services: + pi_with_volumes: + build: + context: . + network: none + command: ./index + platform: linux/x86_64 + volumes: + - "./workspace:/workspace" diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 666b574..5d85f5d 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1,13 +1,20 @@ -version: '3' services: pi: build: context: . - network: none + # network: none command: ./index + # command: updatecli version platform: linux/x86_64 environment: WORKSPACE_DIRECTORY: '/workspace' ASSET_NAME: 'index-linux-x64' + GITHUB_API_URL: ${GITHUB_API_URL} + # networks: + # - app-network + # volumes: # - "./workspace:/workspace" +# networks: +# app-network: +# driver: bridge diff --git a/package-lock.json b/package-lock.json index 5d357cb..b31b11f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,8 +16,10 @@ "@types/node": "^20.12.12", "@yao-pkg/pkg": "^5.11.5", "esbuild": "0.21.4", + "fullcircle": "git+https://github.com/fullcircle-testing/fullcircle.git#v0.1.0", "jest": "^29.7.0", "ts-jest": "^29.1.3", + "ts-node-dev": "^2.0.0", "typescript": "^5.4.5" } }, @@ -603,6 +605,28 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, "node_modules/@esbuild/aix-ppc64": { "version": "0.21.4", "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.4.tgz", @@ -971,6 +995,102 @@ "node": ">=12" } }, + "node_modules/@isaacs/cliui": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", + "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", + "dev": true, + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", + "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/ansi-styles": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", + "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", + "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", + "dev": true, + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", @@ -1500,6 +1620,224 @@ "@octokit/openapi-types": "^22.2.0" } }, + "node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", + "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", + "dev": true, + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", + "integrity": "sha512-Tya6xypR10giZV1XzxmH5wr25VcZSncG0pZIjfePT0OVBvqNEurzValetGNarVrGiq66EBVAFn15iYX4w6FKgQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.0.tgz", + "integrity": "sha512-avCea0RAP03lTsDhEyfy+hpfr85KfyTctMADqHVhLAF3MlIkq83CP8UfAHUssgXTYd+6er6PaAhx/QGv4L1EiA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.0.tgz", + "integrity": "sha512-IWfdwU7KDSm07Ty0PuA/W2JYoZ4iTj3TUQjkVsO/6U+4I1jN5lcR71ZEvRh52sDOERdnNhhHU57UITXz5jC1/w==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.0.tgz", + "integrity": "sha512-n2LMsUz7Ynu7DoQrSQkBf8iNrjOGyPLrdSg802vk6XT3FtsgX6JbE8IHRvposskFm9SNxzkLYGSq9QdpLYpRNA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.0.tgz", + "integrity": "sha512-C/zbRYRXFjWvz9Z4haRxcTdnkPt1BtCkz+7RtBSuNmKzMzp3ZxdM28Mpccn6pt28/UWUCTXa+b0Mx1k3g6NOMA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.0.tgz", + "integrity": "sha512-l3m9ewPgjQSXrUMHg93vt0hYCGnrMOcUpTz6FLtbwljo2HluS4zTXFy2571YQbisTnfTKPZ01u/ukJdQTLGh9A==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.0.tgz", + "integrity": "sha512-rJ5D47d8WD7J+7STKdCUAgmQk49xuFrRi9pZkWoRD1UeSMakbcepWXPF8ycChBoAqs1pb2wzvbY6Q33WmN2ftw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.0.tgz", + "integrity": "sha512-be6Yx37b24ZwxQ+wOQXXLZqpq4jTckJhtGlWGZs68TgdKXJgw54lUUoFYrg6Zs/kjzAQwEwYbp8JxZVzZLRepQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-powerpc64le-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.0.tgz", + "integrity": "sha512-hNVMQK+qrA9Todu9+wqrXOHxFiD5YmdEi3paj6vP02Kx1hjd2LLYR2eaN7DsEshg09+9uzWi2W18MJDlG0cxJA==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.0.tgz", + "integrity": "sha512-ROCM7i+m1NfdrsmvwSzoxp9HFtmKGHEqu5NNDiZWQtXLA8S5HBCkVvKAxJ8U+CVctHwV2Gb5VUaK7UAkzhDjlg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.0.tgz", + "integrity": "sha512-0UyyRHyDN42QL+NbqevXIIUnKA47A+45WyasO+y2bGJ1mhQrfrtXUpTxCOrfxCR4esV3/RLYyucGVPiUsO8xjg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.0.tgz", + "integrity": "sha512-xuglR2rBVHA5UsI8h8UbX4VJ470PtGCf5Vpswh7p2ukaqBGFTnsfzxUBetoWBWymHMxbIG0Cmx7Y9qDZzr648w==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.0.tgz", + "integrity": "sha512-LKaqQL9osY/ir2geuLVvRRs+utWUNilzdE90TpyoX0eNqPzWjRm14oMEE+YLve4k/NAqCdPkGYDaDF5Sw+xBfg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.0.tgz", + "integrity": "sha512-7J6TkZQFGo9qBKH0pk2cEVSRhJbL6MtfWxth7Y5YmZs57Pi+4x6c2dStAUvaQkHQLnEQv1jzBUW43GvZW8OFqA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.0.tgz", + "integrity": "sha512-Txjh+IxBPbkUB9+SXZMpv+b/vnTEtFyfWZgJ6iyCmt2tdx0OF5WhFowLmnh8ENGNpfUlUZkdI//4IEmhwPieNg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.0.tgz", + "integrity": "sha512-UOo5FdvOL0+eIVTgS4tIdbW+TtnBLWg1YBCcU2KWM7nuNwRz9bksDX1bekJJCpu25N1DVWaCwnT39dVQxzqS8g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ] + }, "node_modules/@sinclair/typebox": { "version": "0.27.8", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", @@ -1524,6 +1862,30 @@ "@sinonjs/commons": "^3.0.0" } }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "dev": true + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true + }, "node_modules/@types/babel__core": { "version": "7.20.5", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", @@ -1565,6 +1927,64 @@ "@babel/types": "^7.20.7" } }, + "node_modules/@types/body-parser": { + "version": "1.19.5", + "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.5.tgz", + "integrity": "sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==", + "dev": true, + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/estree": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==", + "dev": true + }, + "node_modules/@types/express": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.21.tgz", + "integrity": "sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ==", + "dev": true, + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-http-proxy": { + "version": "1.6.6", + "resolved": "https://registry.npmjs.org/@types/express-http-proxy/-/express-http-proxy-1.6.6.tgz", + "integrity": "sha512-J8ZqHG76rq1UB716IZ3RCmUhg406pbWxsM3oFCFccl5xlWUPzoR4if6Og/cE4juK8emH0H9quZa5ltn6ZdmQJg==", + "dev": true, + "dependencies": { + "@types/express": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.19.3", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.3.tgz", + "integrity": "sha512-KOzM7MhcBFlmnlr/fzISFF5vGWVSvN6fTd4T+ExOt08bA/dA5kpSzY52nMsI1KDFmUREpJelPYyuslLRSjjgCg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, "node_modules/@types/graceful-fs": { "version": "4.1.9", "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", @@ -1574,6 +1994,12 @@ "@types/node": "*" } }, + "node_modules/@types/http-errors": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.4.tgz", + "integrity": "sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==", + "dev": true + }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", @@ -1608,7 +2034,13 @@ "pretty-format": "^29.0.0" } }, - "node_modules/@types/node": { + "node_modules/@types/mime": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", + "dev": true + }, + "node_modules/@types/node": { "version": "20.12.12", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", @@ -1617,12 +2049,67 @@ "undici-types": "~5.26.4" } }, + "node_modules/@types/node-fetch": { + "version": "2.6.11", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.11.tgz", + "integrity": "sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==", + "dev": true, + "dependencies": { + "@types/node": "*", + "form-data": "^4.0.0" + } + }, + "node_modules/@types/qs": { + "version": "6.9.15", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.15.tgz", + "integrity": "sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg==", + "dev": true + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", + "dev": true + }, + "node_modules/@types/send": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.4.tgz", + "integrity": "sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==", + "dev": true, + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.7", + "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.7.tgz", + "integrity": "sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==", + "dev": true, + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*", + "@types/send": "*" + } + }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", "dev": true }, + "node_modules/@types/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-xevGOReSYGM7g/kUBZzPqCrR/KYAo+F0yiPc85WFTJa0MSLtyFTVTU6cJu/aV4mid7IffDIWqo69THF2o4JiEQ==", + "dev": true + }, + "node_modules/@types/strip-json-comments": { + "version": "0.0.30", + "resolved": "https://registry.npmjs.org/@types/strip-json-comments/-/strip-json-comments-0.0.30.tgz", + "integrity": "sha512-7NQmHra/JILCd1QqpSzl8+mJRc8ZHz3uDm8YV1Ks9IhK0epEiTw8aIErbvH9PI+6XbqhyIQy3462nEsn7UVzjQ==", + "dev": true + }, "node_modules/@types/yargs": { "version": "17.0.32", "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", @@ -1723,6 +2210,27 @@ "node": ">=6.9.0" } }, + "node_modules/acorn": { + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/agent-base": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", @@ -1774,6 +2282,12 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true + }, "node_modules/anymatch": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", @@ -1787,6 +2301,12 @@ "node": ">= 8" } }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -1805,6 +2325,12 @@ "node": ">=8" } }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "dev": true + }, "node_modules/at-least-node": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz", @@ -1961,6 +2487,18 @@ "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz", "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==" }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/bl": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", @@ -2091,6 +2629,30 @@ "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, + "node_modules/bundle-require": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/bundle-require/-/bundle-require-4.2.1.tgz", + "integrity": "sha512-7Q/6vkyYAwOmQNRw75x+4yRtZCZJXUDmHHlFdkiV0wgv/reNjtJwpu1jPJ0w2kbEpIM0uoKI3S4/f39dU7AjSA==", + "dev": true, + "dependencies": { + "load-tsconfig": "^0.2.3" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "peerDependencies": { + "esbuild": ">=0.17" + } + }, + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", @@ -2154,6 +2716,30 @@ "node": ">=10" } }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, "node_modules/chownr": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", @@ -2226,6 +2812,27 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dev": true, + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -2265,6 +2872,12 @@ "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -2343,6 +2956,15 @@ "node": ">=0.10.0" } }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/deprecation": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", @@ -2366,6 +2988,15 @@ "node": ">=8" } }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, "node_modules/diff-sequences": { "version": "29.6.3", "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", @@ -2387,6 +3018,21 @@ "node": ">=8" } }, + "node_modules/dynamic-dedupe": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/dynamic-dedupe/-/dynamic-dedupe-0.3.0.tgz", + "integrity": "sha512-ssuANeD+z97meYOqd50e04Ze5qp4bPqo8cCkI4TRjZkzAUgIDTrXV1R8QCdINpiI+hw14+rYazvTRdQrz0/rFQ==", + "dev": true, + "dependencies": { + "xtend": "^4.0.0" + } + }, + "node_modules/eastasianwidth": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", + "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", + "dev": true + }, "node_modules/electron-to-chromium": { "version": "1.4.783", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.783.tgz", @@ -2620,6 +3266,48 @@ "node": ">=8" } }, + "node_modules/foreground-child": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", + "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/foreground-child/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dev": true, + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/from2": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", @@ -2671,6 +3359,29 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/fullcircle": { + "name": "fullcircle-root", + "version": "1.0.0", + "resolved": "git+ssh://git@github.com/fullcircle-testing/fullcircle.git#ff20b8f7db91603ef3de4919eb07bfc03c580f26", + "dev": true, + "license": "ISC", + "dependencies": { + "@types/express": "^4.17.21", + "@types/express-http-proxy": "^1.6.6", + "@types/node": "^20.9.2", + "@types/node-fetch": "^2.6.9", + "tsup": "^8.0.1", + "typescript": "^5.2.2" + }, + "bin": { + "fc-record": "dist/recorder.js" + }, + "workspaces": { + "packages": [ + "packages/*" + ] + } + }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -2953,6 +3664,18 @@ "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/is-core-module": { "version": "2.9.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.9.0.tgz", @@ -3103,6 +3826,24 @@ "node": ">=8" } }, + "node_modules/jackspeak": { + "version": "3.2.5", + "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.2.5.tgz", + "integrity": "sha512-a1hopwtr4NawFIrSmFgufzrN1Qy2BAfMJ0yScJBs/olJhTcctCy3YIDx4hTY2DOTJD1pUMTly80kmlYZxjZr5w==", + "dev": true, + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, "node_modules/jest": { "version": "29.7.0", "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", @@ -3711,6 +4452,15 @@ "url": "https://github.com/chalk/supports-color?sponsor=1" } }, + "node_modules/joycon": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz", + "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -3790,12 +4540,33 @@ "node": ">=6" } }, + "node_modules/lilconfig": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.1.tgz", + "integrity": "sha512-O18pf7nyvHTckunPWCV1XUNXU1piu01y2b7ATJ0ppkUkk8ocqVWBrYjJBCwHDjD/ZWcfyrA0P4gKhzWGi5EINQ==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antonk52" + } + }, "node_modules/lines-and-columns": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true }, + "node_modules/load-tsconfig": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/load-tsconfig/-/load-tsconfig-0.2.5.tgz", + "integrity": "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + } + }, "node_modules/locate-path": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", @@ -3814,6 +4585,12 @@ "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", "dev": true }, + "node_modules/lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==", + "dev": true + }, "node_modules/lru-cache": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", @@ -3881,6 +4658,27 @@ "node": ">=8.6" } }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dev": true, + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", @@ -3923,6 +4721,27 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/minipass": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", + "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", + "dev": true, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/mkdirp-classic": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", @@ -3973,6 +4792,17 @@ "node": ">= 6" } }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, "node_modules/napi-build-utils": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", @@ -4050,6 +4880,15 @@ "node": ">=8" } }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -4184,6 +5023,31 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, + "node_modules/path-scurry": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", + "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", + "dev": true, + "dependencies": { + "lru-cache": "^10.2.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.2.2.tgz", + "integrity": "sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ==", + "dev": true, + "engines": { + "node": "14 || >=16.14" + } + }, "node_modules/path-type": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", @@ -4232,6 +5096,41 @@ "node": ">=8" } }, + "node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, "node_modules/prebuild-install": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.1.tgz", @@ -4322,6 +5221,15 @@ "once": "^1.3.1" } }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/pure-rand": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", @@ -4394,6 +5302,18 @@ "util-deprecate": "~1.0.1" } }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -4472,6 +5392,54 @@ "node": ">=0.10.0" } }, + "node_modules/rimraf": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", + "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + } + }, + "node_modules/rollup": { + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.18.0.tgz", + "integrity": "sha512-QmJz14PX3rzbJCN1SG4Xe/bAAX2a6NpCP8ab2vfu2GiUr8AQcr2nCV/oEO3yneFarB67zk8ShlIyWb2LGTb3Sg==", + "dev": true, + "dependencies": { + "@types/estree": "1.0.5" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.18.0", + "@rollup/rollup-android-arm64": "4.18.0", + "@rollup/rollup-darwin-arm64": "4.18.0", + "@rollup/rollup-darwin-x64": "4.18.0", + "@rollup/rollup-linux-arm-gnueabihf": "4.18.0", + "@rollup/rollup-linux-arm-musleabihf": "4.18.0", + "@rollup/rollup-linux-arm64-gnu": "4.18.0", + "@rollup/rollup-linux-arm64-musl": "4.18.0", + "@rollup/rollup-linux-powerpc64le-gnu": "4.18.0", + "@rollup/rollup-linux-riscv64-gnu": "4.18.0", + "@rollup/rollup-linux-s390x-gnu": "4.18.0", + "@rollup/rollup-linux-x64-gnu": "4.18.0", + "@rollup/rollup-linux-x64-musl": "4.18.0", + "@rollup/rollup-win32-arm64-msvc": "4.18.0", + "@rollup/rollup-win32-ia32-msvc": "4.18.0", + "@rollup/rollup-win32-x64-msvc": "4.18.0", + "fsevents": "~2.3.2" + } + }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -4682,6 +5650,21 @@ "node": ">=8" } }, + "node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-ansi": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", @@ -4694,6 +5677,19 @@ "node": ">=8" } }, + "node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/strip-bom": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", @@ -4721,6 +5717,74 @@ "node": ">=0.10.0" } }, + "node_modules/sucrase": { + "version": "3.35.0", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz", + "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "glob": "^10.3.10", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/sucrase/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/sucrase/node_modules/glob": { + "version": "10.4.1", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.1.tgz", + "integrity": "sha512-2jelhlq3E4ho74ZyVLN03oKdAZVUa6UDZzFLVH1H7dnoax+y9qyaq8zBkfDIggjniU19z0wU18y16jMB2eyVIw==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^3.1.2", + "minimatch": "^9.0.4", + "minipass": "^7.1.2", + "path-scurry": "^1.11.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.18" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/sucrase/node_modules/minimatch": { + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz", + "integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -4801,6 +5865,27 @@ "node": ">=8" } }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", @@ -4834,6 +5919,21 @@ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", "dev": true }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true, + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true + }, "node_modules/ts-jest": { "version": "29.1.3", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.3.tgz", @@ -4890,6 +5990,191 @@ "node": ">=12" } }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/ts-node-dev": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-node-dev/-/ts-node-dev-2.0.0.tgz", + "integrity": "sha512-ywMrhCfH6M75yftYvrvNarLEY+SUXtUvU8/0Z6llrHQVBx12GiFk5sStF8UdfE/yfzk9IAq7O5EEbTQsxlBI8w==", + "dev": true, + "dependencies": { + "chokidar": "^3.5.1", + "dynamic-dedupe": "^0.3.0", + "minimist": "^1.2.6", + "mkdirp": "^1.0.4", + "resolve": "^1.0.0", + "rimraf": "^2.6.1", + "source-map-support": "^0.5.12", + "tree-kill": "^1.2.2", + "ts-node": "^10.4.0", + "tsconfig": "^7.0.0" + }, + "bin": { + "ts-node-dev": "lib/bin.js", + "tsnd": "lib/bin.js" + }, + "engines": { + "node": ">=0.8.0" + }, + "peerDependencies": { + "node-notifier": "*", + "typescript": "*" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/tsconfig": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/tsconfig/-/tsconfig-7.0.0.tgz", + "integrity": "sha512-vZXmzPrL+EmC4T/4rVlT2jNVMWCi/O4DIiSj3UHg1OE5kCKbk4mfrXc6dZksLgRM/TZlKnousKH9bbTazUWRRw==", + "dev": true, + "dependencies": { + "@types/strip-bom": "^3.0.0", + "@types/strip-json-comments": "0.0.30", + "strip-bom": "^3.0.0", + "strip-json-comments": "^2.0.0" + } + }, + "node_modules/tsconfig/node_modules/strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/tsup": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.1.0.tgz", + "integrity": "sha512-UFdfCAXukax+U6KzeTNO2kAARHcWxmKsnvSPXUcfA1D+kU05XDccCrkffCQpFaWDsZfV0jMyTsxU39VfCp6EOg==", + "dev": true, + "dependencies": { + "bundle-require": "^4.0.0", + "cac": "^6.7.12", + "chokidar": "^3.5.1", + "debug": "^4.3.1", + "esbuild": "^0.21.4", + "execa": "^5.0.0", + "globby": "^11.0.3", + "joycon": "^3.0.1", + "postcss-load-config": "^4.0.1", + "resolve-from": "^5.0.0", + "rollup": "^4.0.2", + "source-map": "0.8.0-beta.0", + "sucrase": "^3.20.3", + "tree-kill": "^1.2.2" + }, + "bin": { + "tsup": "dist/cli-default.js", + "tsup-node": "dist/cli-node.js" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@microsoft/api-extractor": "^7.36.0", + "@swc/core": "^1", + "postcss": "^8.4.12", + "typescript": ">=4.5.0" + }, + "peerDependenciesMeta": { + "@microsoft/api-extractor": { + "optional": true + }, + "@swc/core": { + "optional": true + }, + "postcss": { + "optional": true + }, + "typescript": { + "optional": true + } + } + }, + "node_modules/tsup/node_modules/source-map": { + "version": "0.8.0-beta.0", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz", + "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==", + "dev": true, + "dependencies": { + "whatwg-url": "^7.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/tsup/node_modules/tr46": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz", + "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==", + "dev": true, + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/tsup/node_modules/webidl-conversions": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz", + "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", + "dev": true + }, + "node_modules/tsup/node_modules/whatwg-url": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz", + "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==", + "dev": true, + "dependencies": { + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" + } + }, "node_modules/tunnel-agent": { "version": "0.6.0", "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", @@ -4992,6 +6277,12 @@ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", "dev": true }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true + }, "node_modules/v8-to-istanbul": { "version": "9.2.0", "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", @@ -5063,6 +6354,24 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, + "node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", @@ -5081,6 +6390,15 @@ "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, + "node_modules/xtend": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", + "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", + "dev": true, + "engines": { + "node": ">=0.4" + } + }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", @@ -5096,6 +6414,18 @@ "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true }, + "node_modules/yaml": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.4.3.tgz", + "integrity": "sha512-sntgmxj8o7DE7g/Qi60cqpLBA3HG3STcDA0kO+WfB05jEKhZMbY7umNm2rBpQvsmZ16/lPXCJGW2672dgOUkrg==", + "dev": true, + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14" + } + }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", @@ -5123,6 +6453,15 @@ "node": ">=10" } }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index f1e6bb9..88b38c7 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "index.js", "scripts": { "build": "esbuild src/apps/update_checker/index.ts --bundle --outfile=dist/index.js --platform=node", + "dev": "ts-node-dev src/apps/update_checker/index.ts", "dist-pkg": "pkg -t node18-linux-x64,node18-macos-arm64 dist/index.js --out-path docker/dist-pkg", "test": "jest test", "test:ci": "npm test", @@ -18,8 +19,10 @@ "@types/node": "^20.12.12", "@yao-pkg/pkg": "^5.11.5", "esbuild": "0.21.4", + "fullcircle": "git+https://github.com/fullcircle-testing/fullcircle.git#v0.1.0", "jest": "^29.7.0", "ts-jest": "^29.1.3", + "ts-node-dev": "^2.0.0", "typescript": "^5.4.5" }, "dependencies": { diff --git a/sampleapp/esbuild.ts b/sampleapp/esbuild.ts new file mode 100644 index 0000000..dcf9f25 --- /dev/null +++ b/sampleapp/esbuild.ts @@ -0,0 +1,19 @@ +import {context as build} from 'esbuild'; + +setTimeout(async () => { + const ctx = await build({ + bundle: true, + platform: 'node', + entryPoints: ['./src/index.ts'], + outfile: 'dist/index.js', + }); + + await ctx.watch(); + + await ctx.serve({ + // host: 'jam.local', + port: 1380, + }); + + console.log('http://jam.local:1380'); +}); diff --git a/sampleapp/index.js b/sampleapp/index.js new file mode 100644 index 0000000..a071a6c --- /dev/null +++ b/sampleapp/index.js @@ -0,0 +1,2 @@ +"use strict"; +console.log("yo man dog son yeah hmm yeah so yeah"); diff --git a/sampleapp/package.json b/sampleapp/package.json new file mode 100644 index 0000000..ebbfd0a --- /dev/null +++ b/sampleapp/package.json @@ -0,0 +1,20 @@ +{ + "name": "sampleapp", + "version": "1.0.0", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "description": "", + "devDependencies": { + "esbuild": "^0.24.2" + }, + "dependencies": { + "@types/express": "^5.0.1", + "eventsource": "^3.0.6", + "express": "^5.1.0" + } +} diff --git a/sampleapp/pnpm-lock.yaml b/sampleapp/pnpm-lock.yaml new file mode 100644 index 0000000..3be39eb --- /dev/null +++ b/sampleapp/pnpm-lock.yaml @@ -0,0 +1,935 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@types/express': + specifier: ^5.0.1 + version: 5.0.1 + eventsource: + specifier: ^3.0.6 + version: 3.0.6 + express: + specifier: ^5.1.0 + version: 5.1.0 + devDependencies: + esbuild: + specifier: ^0.24.2 + version: 0.24.2 + +packages: + + '@esbuild/aix-ppc64@0.24.2': + resolution: {integrity: sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.24.2': + resolution: {integrity: sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.24.2': + resolution: {integrity: sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.24.2': + resolution: {integrity: sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.24.2': + resolution: {integrity: sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.24.2': + resolution: {integrity: sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.24.2': + resolution: {integrity: sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.24.2': + resolution: {integrity: sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.24.2': + resolution: {integrity: sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.24.2': + resolution: {integrity: sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.24.2': + resolution: {integrity: sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.24.2': + resolution: {integrity: sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.24.2': + resolution: {integrity: sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.24.2': + resolution: {integrity: sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.24.2': + resolution: {integrity: sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.24.2': + resolution: {integrity: sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.24.2': + resolution: {integrity: sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.24.2': + resolution: {integrity: sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.24.2': + resolution: {integrity: sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.24.2': + resolution: {integrity: sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.24.2': + resolution: {integrity: sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.24.2': + resolution: {integrity: sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.24.2': + resolution: {integrity: sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.24.2': + resolution: {integrity: sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.24.2': + resolution: {integrity: sha512-7VTgWzgMGvup6aSqDPLiW5zHaxYJGTO4OokMjIlrCtf+VpEL+cXKtCvg723iguPYI5oaUNdS+/V7OU2gvXVWEg==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@types/body-parser@1.19.5': + resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} + + '@types/connect@3.4.38': + resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} + + '@types/express-serve-static-core@5.0.6': + resolution: {integrity: sha512-3xhRnjJPkULekpSzgtoNYYcTWgEZkp4myc+Saevii5JPnHNvHMRlBSHDbs7Bh1iPPoVTERHEZXyhyLbMEsExsA==} + + '@types/express@5.0.1': + resolution: {integrity: sha512-UZUw8vjpWFXuDnjFTh7/5c2TWDlQqeXHi6hcN7F2XSVT5P+WmUnnbFS3KA6Jnc6IsEqI2qCVu2bK0R0J4A8ZQQ==} + + '@types/http-errors@2.0.4': + resolution: {integrity: sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA==} + + '@types/mime@1.3.5': + resolution: {integrity: sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==} + + '@types/node@22.14.1': + resolution: {integrity: sha512-u0HuPQwe/dHrItgHHpmw3N2fYCR6x4ivMNbPHRkBVP4CvN+kiRrKHWk3i8tXiO/joPwXLMYvF9TTF0eqgHIuOw==} + + '@types/qs@6.9.18': + resolution: {integrity: sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==} + + '@types/range-parser@1.2.7': + resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==} + + '@types/send@0.17.4': + resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} + + '@types/serve-static@1.15.7': + resolution: {integrity: sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw==} + + accepts@2.0.0: + resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} + engines: {node: '>= 0.6'} + + body-parser@2.2.0: + resolution: {integrity: sha512-02qvAaxv8tp7fBa/mw1ga98OGm+eCbqzJOKoRt70sLmfEEi+jyBYVTDGfCL/k06/4EMk/z01gCe7HoCH/f2LTg==} + engines: {node: '>=18'} + + bytes@3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + call-bound@1.0.4: + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} + + content-disposition@1.0.0: + resolution: {integrity: sha512-Au9nRL8VNUut/XSzbQA38+M78dzP4D+eqg3gfJHMIHHYa3bg067xj1KxMUWj+VULbiZMowKngFFbKczUrNJ1mg==} + engines: {node: '>= 0.6'} + + content-type@1.0.5: + resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==} + engines: {node: '>= 0.6'} + + cookie-signature@1.2.2: + resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} + engines: {node: '>=6.6.0'} + + cookie@0.7.2: + resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} + engines: {node: '>= 0.6'} + + debug@4.4.0: + resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + depd@2.0.0: + resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} + engines: {node: '>= 0.8'} + + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + + ee-first@1.1.1: + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + + encodeurl@2.0.0: + resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==} + engines: {node: '>= 0.8'} + + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-object-atoms@1.1.1: + resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} + engines: {node: '>= 0.4'} + + esbuild@0.24.2: + resolution: {integrity: sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==} + engines: {node: '>=18'} + hasBin: true + + escape-html@1.0.3: + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + + etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + + eventsource-parser@3.0.1: + resolution: {integrity: sha512-VARTJ9CYeuQYb0pZEPbzi740OWFgpHe7AYJ2WFZVnUDUQp5Dk2yJUgF36YsZ81cOyxT0QxmXD2EQpapAouzWVA==} + engines: {node: '>=18.0.0'} + + eventsource@3.0.6: + resolution: {integrity: sha512-l19WpE2m9hSuyP06+FbuUUf1G+R0SFLrtQfbRb9PRr+oimOfxQhgGCbVaXg5IvZyyTThJsxh6L/srkMiCeBPDA==} + engines: {node: '>=18.0.0'} + + express@5.1.0: + resolution: {integrity: sha512-DT9ck5YIRU+8GYzzU5kT3eHGA5iL+1Zd0EutOmTE9Dtk+Tvuzd23VBU+ec7HPNSTxXYO55gPV/hq4pSBJDjFpA==} + engines: {node: '>= 18'} + + finalhandler@2.1.0: + resolution: {integrity: sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q==} + engines: {node: '>= 0.8'} + + forwarded@0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + + fresh@2.0.0: + resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} + engines: {node: '>= 0.8'} + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + + http-errors@2.0.0: + resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==} + engines: {node: '>= 0.8'} + + iconv-lite@0.6.3: + resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} + engines: {node: '>=0.10.0'} + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + ipaddr.js@1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + + is-promise@4.0.0: + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} + + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + media-typer@1.1.0: + resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==} + engines: {node: '>= 0.8'} + + merge-descriptors@2.0.0: + resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} + engines: {node: '>=18'} + + mime-db@1.54.0: + resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==} + engines: {node: '>= 0.6'} + + mime-types@3.0.1: + resolution: {integrity: sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==} + engines: {node: '>= 0.6'} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + negotiator@1.0.0: + resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==} + engines: {node: '>= 0.6'} + + object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} + + on-finished@2.4.1: + resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==} + engines: {node: '>= 0.8'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + parseurl@1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + + path-to-regexp@8.2.0: + resolution: {integrity: sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==} + engines: {node: '>=16'} + + proxy-addr@2.0.7: + resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==} + engines: {node: '>= 0.10'} + + qs@6.14.0: + resolution: {integrity: sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==} + engines: {node: '>=0.6'} + + range-parser@1.2.1: + resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==} + engines: {node: '>= 0.6'} + + raw-body@3.0.0: + resolution: {integrity: sha512-RmkhL8CAyCRPXCE28MMH0z2PNWQBNk2Q09ZdxM9IOOXwxwZbN+qbWaatPkdkWIKL2ZVDImrN/pK5HTRz2PcS4g==} + engines: {node: '>= 0.8'} + + router@2.2.0: + resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==} + engines: {node: '>= 18'} + + safe-buffer@5.2.1: + resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + send@1.2.0: + resolution: {integrity: sha512-uaW0WwXKpL9blXE2o0bRhoL2EGXIrZxQ2ZQ4mgcfoBxdFmQold+qWsD2jLrfZ0trjKL6vOw0j//eAwcALFjKSw==} + engines: {node: '>= 18'} + + serve-static@2.2.0: + resolution: {integrity: sha512-61g9pCh0Vnh7IutZjtLGGpTA355+OPn2TyDv/6ivP2h/AdAVX9azsoxmg2/M6nZeQZNYBEwIcsne1mJd9oQItQ==} + engines: {node: '>= 18'} + + setprototypeof@1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + + side-channel-list@1.0.0: + resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==} + engines: {node: '>= 0.4'} + + side-channel-map@1.0.1: + resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} + engines: {node: '>= 0.4'} + + side-channel-weakmap@1.0.2: + resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} + engines: {node: '>= 0.4'} + + side-channel@1.1.0: + resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} + engines: {node: '>= 0.4'} + + statuses@2.0.1: + resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} + engines: {node: '>= 0.8'} + + toidentifier@1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + + type-is@2.0.1: + resolution: {integrity: sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==} + engines: {node: '>= 0.6'} + + undici-types@6.21.0: + resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==} + + unpipe@1.0.0: + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} + + vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + +snapshots: + + '@esbuild/aix-ppc64@0.24.2': + optional: true + + '@esbuild/android-arm64@0.24.2': + optional: true + + '@esbuild/android-arm@0.24.2': + optional: true + + '@esbuild/android-x64@0.24.2': + optional: true + + '@esbuild/darwin-arm64@0.24.2': + optional: true + + '@esbuild/darwin-x64@0.24.2': + optional: true + + '@esbuild/freebsd-arm64@0.24.2': + optional: true + + '@esbuild/freebsd-x64@0.24.2': + optional: true + + '@esbuild/linux-arm64@0.24.2': + optional: true + + '@esbuild/linux-arm@0.24.2': + optional: true + + '@esbuild/linux-ia32@0.24.2': + optional: true + + '@esbuild/linux-loong64@0.24.2': + optional: true + + '@esbuild/linux-mips64el@0.24.2': + optional: true + + '@esbuild/linux-ppc64@0.24.2': + optional: true + + '@esbuild/linux-riscv64@0.24.2': + optional: true + + '@esbuild/linux-s390x@0.24.2': + optional: true + + '@esbuild/linux-x64@0.24.2': + optional: true + + '@esbuild/netbsd-arm64@0.24.2': + optional: true + + '@esbuild/netbsd-x64@0.24.2': + optional: true + + '@esbuild/openbsd-arm64@0.24.2': + optional: true + + '@esbuild/openbsd-x64@0.24.2': + optional: true + + '@esbuild/sunos-x64@0.24.2': + optional: true + + '@esbuild/win32-arm64@0.24.2': + optional: true + + '@esbuild/win32-ia32@0.24.2': + optional: true + + '@esbuild/win32-x64@0.24.2': + optional: true + + '@types/body-parser@1.19.5': + dependencies: + '@types/connect': 3.4.38 + '@types/node': 22.14.1 + + '@types/connect@3.4.38': + dependencies: + '@types/node': 22.14.1 + + '@types/express-serve-static-core@5.0.6': + dependencies: + '@types/node': 22.14.1 + '@types/qs': 6.9.18 + '@types/range-parser': 1.2.7 + '@types/send': 0.17.4 + + '@types/express@5.0.1': + dependencies: + '@types/body-parser': 1.19.5 + '@types/express-serve-static-core': 5.0.6 + '@types/serve-static': 1.15.7 + + '@types/http-errors@2.0.4': {} + + '@types/mime@1.3.5': {} + + '@types/node@22.14.1': + dependencies: + undici-types: 6.21.0 + + '@types/qs@6.9.18': {} + + '@types/range-parser@1.2.7': {} + + '@types/send@0.17.4': + dependencies: + '@types/mime': 1.3.5 + '@types/node': 22.14.1 + + '@types/serve-static@1.15.7': + dependencies: + '@types/http-errors': 2.0.4 + '@types/node': 22.14.1 + '@types/send': 0.17.4 + + accepts@2.0.0: + dependencies: + mime-types: 3.0.1 + negotiator: 1.0.0 + + body-parser@2.2.0: + dependencies: + bytes: 3.1.2 + content-type: 1.0.5 + debug: 4.4.0 + http-errors: 2.0.0 + iconv-lite: 0.6.3 + on-finished: 2.4.1 + qs: 6.14.0 + raw-body: 3.0.0 + type-is: 2.0.1 + transitivePeerDependencies: + - supports-color + + bytes@3.1.2: {} + + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + + call-bound@1.0.4: + dependencies: + call-bind-apply-helpers: 1.0.2 + get-intrinsic: 1.3.0 + + content-disposition@1.0.0: + dependencies: + safe-buffer: 5.2.1 + + content-type@1.0.5: {} + + cookie-signature@1.2.2: {} + + cookie@0.7.2: {} + + debug@4.4.0: + dependencies: + ms: 2.1.3 + + depd@2.0.0: {} + + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + + ee-first@1.1.1: {} + + encodeurl@2.0.0: {} + + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + + es-object-atoms@1.1.1: + dependencies: + es-errors: 1.3.0 + + esbuild@0.24.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.24.2 + '@esbuild/android-arm': 0.24.2 + '@esbuild/android-arm64': 0.24.2 + '@esbuild/android-x64': 0.24.2 + '@esbuild/darwin-arm64': 0.24.2 + '@esbuild/darwin-x64': 0.24.2 + '@esbuild/freebsd-arm64': 0.24.2 + '@esbuild/freebsd-x64': 0.24.2 + '@esbuild/linux-arm': 0.24.2 + '@esbuild/linux-arm64': 0.24.2 + '@esbuild/linux-ia32': 0.24.2 + '@esbuild/linux-loong64': 0.24.2 + '@esbuild/linux-mips64el': 0.24.2 + '@esbuild/linux-ppc64': 0.24.2 + '@esbuild/linux-riscv64': 0.24.2 + '@esbuild/linux-s390x': 0.24.2 + '@esbuild/linux-x64': 0.24.2 + '@esbuild/netbsd-arm64': 0.24.2 + '@esbuild/netbsd-x64': 0.24.2 + '@esbuild/openbsd-arm64': 0.24.2 + '@esbuild/openbsd-x64': 0.24.2 + '@esbuild/sunos-x64': 0.24.2 + '@esbuild/win32-arm64': 0.24.2 + '@esbuild/win32-ia32': 0.24.2 + '@esbuild/win32-x64': 0.24.2 + + escape-html@1.0.3: {} + + etag@1.8.1: {} + + eventsource-parser@3.0.1: {} + + eventsource@3.0.6: + dependencies: + eventsource-parser: 3.0.1 + + express@5.1.0: + dependencies: + accepts: 2.0.0 + body-parser: 2.2.0 + content-disposition: 1.0.0 + content-type: 1.0.5 + cookie: 0.7.2 + cookie-signature: 1.2.2 + debug: 4.4.0 + encodeurl: 2.0.0 + escape-html: 1.0.3 + etag: 1.8.1 + finalhandler: 2.1.0 + fresh: 2.0.0 + http-errors: 2.0.0 + merge-descriptors: 2.0.0 + mime-types: 3.0.1 + on-finished: 2.4.1 + once: 1.4.0 + parseurl: 1.3.3 + proxy-addr: 2.0.7 + qs: 6.14.0 + range-parser: 1.2.1 + router: 2.2.0 + send: 1.2.0 + serve-static: 2.2.0 + statuses: 2.0.1 + type-is: 2.0.1 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + + finalhandler@2.1.0: + dependencies: + debug: 4.4.0 + encodeurl: 2.0.0 + escape-html: 1.0.3 + on-finished: 2.4.1 + parseurl: 1.3.3 + statuses: 2.0.1 + transitivePeerDependencies: + - supports-color + + forwarded@0.2.0: {} + + fresh@2.0.0: {} + + function-bind@1.1.2: {} + + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.2 + math-intrinsics: 1.1.0 + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.1 + + gopd@1.2.0: {} + + has-symbols@1.1.0: {} + + hasown@2.0.2: + dependencies: + function-bind: 1.1.2 + + http-errors@2.0.0: + dependencies: + depd: 2.0.0 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 2.0.1 + toidentifier: 1.0.1 + + iconv-lite@0.6.3: + dependencies: + safer-buffer: 2.1.2 + + inherits@2.0.4: {} + + ipaddr.js@1.9.1: {} + + is-promise@4.0.0: {} + + math-intrinsics@1.1.0: {} + + media-typer@1.1.0: {} + + merge-descriptors@2.0.0: {} + + mime-db@1.54.0: {} + + mime-types@3.0.1: + dependencies: + mime-db: 1.54.0 + + ms@2.1.3: {} + + negotiator@1.0.0: {} + + object-inspect@1.13.4: {} + + on-finished@2.4.1: + dependencies: + ee-first: 1.1.1 + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + parseurl@1.3.3: {} + + path-to-regexp@8.2.0: {} + + proxy-addr@2.0.7: + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + + qs@6.14.0: + dependencies: + side-channel: 1.1.0 + + range-parser@1.2.1: {} + + raw-body@3.0.0: + dependencies: + bytes: 3.1.2 + http-errors: 2.0.0 + iconv-lite: 0.6.3 + unpipe: 1.0.0 + + router@2.2.0: + dependencies: + debug: 4.4.0 + depd: 2.0.0 + is-promise: 4.0.0 + parseurl: 1.3.3 + path-to-regexp: 8.2.0 + transitivePeerDependencies: + - supports-color + + safe-buffer@5.2.1: {} + + safer-buffer@2.1.2: {} + + send@1.2.0: + dependencies: + debug: 4.4.0 + encodeurl: 2.0.0 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 2.0.0 + http-errors: 2.0.0 + mime-types: 3.0.1 + ms: 2.1.3 + on-finished: 2.4.1 + range-parser: 1.2.1 + statuses: 2.0.1 + transitivePeerDependencies: + - supports-color + + serve-static@2.2.0: + dependencies: + encodeurl: 2.0.0 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 1.2.0 + transitivePeerDependencies: + - supports-color + + setprototypeof@1.2.0: {} + + side-channel-list@1.0.0: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + + side-channel-map@1.0.1: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + + side-channel-weakmap@1.0.2: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + side-channel-map: 1.0.1 + + side-channel@1.1.0: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + side-channel-list: 1.0.0 + side-channel-map: 1.0.1 + side-channel-weakmap: 1.0.2 + + statuses@2.0.1: {} + + toidentifier@1.0.1: {} + + type-is@2.0.1: + dependencies: + content-type: 1.0.5 + media-typer: 1.1.0 + mime-types: 3.0.1 + + undici-types@6.21.0: {} + + unpipe@1.0.0: {} + + vary@1.1.2: {} + + wrappy@1.0.2: {} diff --git a/sampleapp/src/index.ts b/sampleapp/src/index.ts new file mode 100644 index 0000000..18c0205 --- /dev/null +++ b/sampleapp/src/index.ts @@ -0,0 +1,10 @@ +import express from 'express'; +const app = express(); + +app.get('/', (req, res) => { + res.send('this is working now yay! so excited lets go\n'); +}); + +app.listen(3000, '0.0.0.0', () => { + console.log('Server started on port 3000'); +}); diff --git a/src/packages/github_releases/testdata/fc-release-with-asset.json b/src/packages/github_releases/testdata/fc-release-with-asset.json new file mode 100644 index 0000000..87b8d81 --- /dev/null +++ b/src/packages/github_releases/testdata/fc-release-with-asset.json @@ -0,0 +1,154 @@ +{ + "time": "2024-06-05T06:38:00.166Z", + "host": "https://api.github.com", + "requestMethod": "GET", + "requestPath": "/repos/jamtools/github-releases-test/releases/latest", + "responseBody": { + "url": "https://api.github.com/repos/jamtools/github-releases-test/releases/157680714", + "assets_url": "https://api.github.com/repos/jamtools/github-releases-test/releases/157680714/assets", + "upload_url": "https://uploads.github.com/repos/jamtools/github-releases-test/releases/157680714/assets{?name,label}", + "html_url": "https://github.com/jamtools/github-releases-test/releases/tag/v2", + "id": 157680714, + "author": { + "login": "mickmister", + "id": 6913320, + "node_id": "MDQ6VXNlcjY5MTMzMjA=", + "avatar_url": "https://avatars.githubusercontent.com/u/6913320?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mickmister", + "html_url": "https://github.com/mickmister", + "followers_url": "https://api.github.com/users/mickmister/followers", + "following_url": "https://api.github.com/users/mickmister/following{/other_user}", + "gists_url": "https://api.github.com/users/mickmister/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mickmister/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mickmister/subscriptions", + "organizations_url": "https://api.github.com/users/mickmister/orgs", + "repos_url": "https://api.github.com/users/mickmister/repos", + "events_url": "https://api.github.com/users/mickmister/events{/privacy}", + "received_events_url": "https://api.github.com/users/mickmister/received_events", + "type": "User", + "site_admin": false + }, + "node_id": "RE_kwDOMBWyHM4JZgRK", + "tag_name": "v2", + "target_commitish": "main", + "name": "v2", + "draft": false, + "prerelease": false, + "created_at": "2024-05-27T19:22:02Z", + "published_at": "2024-05-27T19:45:05Z", + "assets": [ + { + "url": "https://api.github.com/repos/jamtools/github-releases-test/releases/assets/171886714", + "id": 171886714, + "node_id": "RA_kwDOMBWyHM4KPsh6", + "name": "index-linux-x64", + "label": null, + "uploader": { + "login": "mickmister", + "id": 6913320, + "node_id": "MDQ6VXNlcjY5MTMzMjA=", + "avatar_url": "https://avatars.githubusercontent.com/u/6913320?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mickmister", + "html_url": "https://github.com/mickmister", + "followers_url": "https://api.github.com/users/mickmister/followers", + "following_url": "https://api.github.com/users/mickmister/following{/other_user}", + "gists_url": "https://api.github.com/users/mickmister/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mickmister/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mickmister/subscriptions", + "organizations_url": "https://api.github.com/users/mickmister/orgs", + "repos_url": "https://api.github.com/users/mickmister/repos", + "events_url": "https://api.github.com/users/mickmister/events{/privacy}", + "received_events_url": "https://api.github.com/users/mickmister/received_events", + "type": "User", + "site_admin": false + }, + "content_type": "application/octet-stream", + "state": "uploaded", + "size": 51397841, + "download_count": 5, + "created_at": "2024-06-04T17:20:20Z", + "updated_at": "2024-06-04T17:20:58Z", + "browser_download_url": "https://github.com/jamtools/github-releases-test/releases/download/v2/index-linux-x64" + }, + { + "url": "https://api.github.com/repos/jamtools/github-releases-test/releases/assets/171886783", + "id": 171886783, + "node_id": "RA_kwDOMBWyHM4KPsi_", + "name": "index-macos-arm64", + "label": null, + "uploader": { + "login": "mickmister", + "id": 6913320, + "node_id": "MDQ6VXNlcjY5MTMzMjA=", + "avatar_url": "https://avatars.githubusercontent.com/u/6913320?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/mickmister", + "html_url": "https://github.com/mickmister", + "followers_url": "https://api.github.com/users/mickmister/followers", + "following_url": "https://api.github.com/users/mickmister/following{/other_user}", + "gists_url": "https://api.github.com/users/mickmister/gists{/gist_id}", + "starred_url": "https://api.github.com/users/mickmister/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/mickmister/subscriptions", + "organizations_url": "https://api.github.com/users/mickmister/orgs", + "repos_url": "https://api.github.com/users/mickmister/repos", + "events_url": "https://api.github.com/users/mickmister/events{/privacy}", + "received_events_url": "https://api.github.com/users/mickmister/received_events", + "type": "User", + "site_admin": false + }, + "content_type": "application/octet-stream", + "state": "uploaded", + "size": 47268336, + "download_count": 3, + "created_at": "2024-06-04T17:20:58Z", + "updated_at": "2024-06-04T17:21:33Z", + "browser_download_url": "https://github.com/jamtools/github-releases-test/releases/download/v2/index-macos-arm64" + } + ], + "tarball_url": "https://api.github.com/repos/jamtools/github-releases-test/tarball/v2", + "zipball_url": "https://api.github.com/repos/jamtools/github-releases-test/zipball/v2", + "body": "" + }, + "requestHeaders": { + "host": "host.docker.internal:3003", + "connection": "keep-alive", + "accept": "application/vnd.github.v3+json", + "user-agent": "octokit-rest.js/20.1.1 octokit-core.js/5.2.0 Node.js/18.19.1 (linux; x64)", + "accept-language": "*", + "sec-fetch-mode": "cors", + "accept-encoding": "gzip, deflate" + }, + "responseHeaders": { + "server": "GitHub.com", + "date": "Wed, 05 Jun 2024 06:38:00 GMT", + "content-type": "application/json; charset=utf-8", + "cache-control": "public, max-age=60, s-maxage=60", + "vary": "Accept, Accept-Encoding, Accept, X-Requested-With", + "etag": "W/\"cf480c93f05efa105add88094062a42c9bf2bc5d7352dc0b9c8b09920a881242\"", + "last-modified": "Tue, 04 Jun 2024 17:21:33 GMT", + "x-github-media-type": "github.v3; format=json", + "x-github-api-version-selected": "2022-11-28", + "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", + "access-control-allow-origin": "*", + "strict-transport-security": "max-age=31536000; includeSubdomains; preload", + "x-frame-options": "deny", + "x-content-type-options": "nosniff", + "x-xss-protection": "0", + "referrer-policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "content-security-policy": "default-src 'none'", + "content-encoding": "gzip", + "x-ratelimit-limit": "60", + "x-ratelimit-remaining": "59", + "x-ratelimit-reset": "1717573080", + "x-ratelimit-resource": "core", + "x-ratelimit-used": "1", + "accept-ranges": "bytes", + "content-length": "853", + "x-github-request-id": "FBAA:2149AA:6EEFCAD:C054EA0:666007C8", + "connection": "close" + }, + "requestIp": "::ffff:127.0.0.1", + "status": 200 + } diff --git a/src/packages/github_releases/testdata/first_release.json b/src/packages/github_releases/testdata/first_release.json index 1d3e8b4..f15c99b 100644 --- a/src/packages/github_releases/testdata/first_release.json +++ b/src/packages/github_releases/testdata/first_release.json @@ -6,8 +6,6 @@ "access-control-allow-origin": "*", "access-control-expose-headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", "cache-control": "public, max-age=60, s-maxage=60", - "content-encoding": "gzip", - "content-length": "570", "content-security-policy": "default-src 'none'", "content-type": "application/json; charset=utf-8", "date": "Mon, 27 May 2024 19:28:47 GMT", diff --git a/stage-custom/package-setup/00-run-chroot.sh b/stage-custom/package-setup/00-run-chroot.sh new file mode 100644 index 0000000..5b9f9c9 --- /dev/null +++ b/stage-custom/package-setup/00-run-chroot.sh @@ -0,0 +1,60 @@ +#!/bin/bash +set -e + +mkdir -p /proc /dev /sys /run /tmp + +# Install required packages +apt-get update +apt-get install -y python3 + +# Configure Wi-Fi +mkdir -p /etc/wpa_supplicant + +cat << EOF > /etc/wpa_supplicant/wpa_supplicant.conf +country=US +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 + +network={ + ssid="Your_SSID" + psk="Your_Password" +} +EOF + +chmod 600 /etc/wpa_supplicant/wpa_supplicant.conf + +# Set up a simple HTTP server +cat << SERVER_EOF > /usr/local/bin/simple-http-server.py +#!/usr/bin/env python3 +from http.server import BaseHTTPRequestHandler, HTTPServer + +class SimpleHandler(BaseHTTPRequestHandler): + def do_GET(self): + self.send_response(200) + self.send_header('Content-type', 'text/plain') + self.end_headers() + self.wfile.write(b'Hello from Raspberry Pi!') + +if __name__ == '__main__': + server = HTTPServer(('0.0.0.0', 8080), SimpleHandler) + print('Starting server at http://0.0.0.0:8080') + server.serve_forever() +SERVER_EOF +chmod +x /usr/local/bin/simple-http-server.py + +# Create and enable a systemd service for the HTTP server +cat << SERVICE_EOF > /etc/systemd/system/simple-http-server.service +[Unit] +Description=Simple HTTP Server +After=network.target + +[Service] +ExecStart=/usr/local/bin/simple-http-server.py +Restart=always +User=root + +[Install] +WantedBy=multi-user.target +SERVICE_EOF + +systemctl enable simple-http-server.service diff --git a/stage-custom/prerun.sh b/stage-custom/prerun.sh new file mode 100644 index 0000000..beb195d --- /dev/null +++ b/stage-custom/prerun.sh @@ -0,0 +1,4 @@ +#!/bin/bash -e +if [ ! -d "${ROOTFS_DIR}" ]; then + copy_previous +fi diff --git a/test/test.ts b/test/test.ts index 92fea9a..1f05ee0 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1,13 +1,38 @@ import {exec} from 'child_process'; import {promisify} from 'util'; +import {fullcircle, TestHarness, FullCircleInstance} from 'fullcircle/dist/harness'; +import {ReleaseResponse} from '../src/packages/github_releases/release_fetcher'; + +import {TESTDATA} from './testdata'; + const execAsync = promisify(exec); const DEBUG = true; describe('yeah', () => { + let fc: FullCircleInstance; + let harness: TestHarness; + + beforeEach(async () => { + fc = await fullcircle({ + listenAddress: 1337, + defaultDestination: 'api.github.com', + verbose: false, + }); + + harness = fc.harness(''); + }); + + afterEach(async () => { + await fc.close(); + await harness.closeWithAssertions(); + }); + it('should work', async () => { - let out = await execAsync('npm run build'); + let out: Awaited>; + + out = await execAsync('npm run build'); if (DEBUG) {console.log(out.stdout); console.log(out.stderr);} out = await execAsync('npm run dist-pkg'); @@ -16,22 +41,28 @@ describe('yeah', () => { out = await execAsync('docker compose build', {cwd: './docker'}); if (DEBUG) {console.log(out.stdout); console.log(out.stderr);} - out = await execAsync('docker compose up', {cwd: './docker'}); + harness.get('/repos/jamtools/github-releases-test/releases/latest', (req, res) => { + res.json(TESTDATA.testDataFirstRelease); + }); + + // TODO: mock asset url download + + out = await execAsync('docker compose up', {cwd: './docker', env: {GITHUB_API_URL: 'http://host.docker.internal:1337'}}); if (DEBUG) {console.log(out.stdout); console.log(out.stderr);} const lines = getConsoleLinesFromDockerComposeStdOut('pi', out.stdout); expect(lines).toEqual([ 'new release found', - 'downloading release asset', - 'yup', + // 'downloading release asset', + // 'yup', ]); }, 50000); }); -const getConsoleLinesFromDockerComposeStdOut = (containerName: string, stdout: string) => { +const getConsoleLinesFromDockerComposeStdOut = (containerName: string, stdout: string | Buffer) => { const key = `${containerName}-1`; const toSearch = `${key} | `; - const lines = stdout.split('\n'); + const lines = stdout.toString().split('\n'); return lines.filter(l => l.includes(toSearch)).map(l => l.split(toSearch)[1]).filter(Boolean); } diff --git a/test/testdata.ts b/test/testdata.ts new file mode 100644 index 0000000..b041f9a --- /dev/null +++ b/test/testdata.ts @@ -0,0 +1,15 @@ +import testDataNoReleases from '../src/packages/github_releases/testdata/no_releases.json'; +import testDataFirstRelease from '../src/packages/github_releases/testdata/first_release.json'; +import testDataSecondRelease from '../src/packages/github_releases/testdata/second_release.json'; + +export const TESTDATA = { + testDataNoReleases, + testDataFirstRelease: { + ...testDataFirstRelease, + status: 200 as const, + }, + testDataSecondRelease: { + ...testDataSecondRelease, + status: 200 as const, + }, +}; diff --git a/tsconfig.json b/tsconfig.json index a4c4459..718426d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "compilerOptions": { /* Visit https://aka.ms/tsconfig to read more about this file */ "outDir": "dist", + "resolveJsonModule": true, /* Projects */ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ diff --git a/workspace/last_fetched_release.json b/workspace/last_fetched_release.json index bb6e1f6..a046102 100644 --- a/workspace/last_fetched_release.json +++ b/workspace/last_fetched_release.json @@ -1 +1 @@ -{"status":200,"url":"https://api.github.com/repos/jamtools/github-releases-test/releases/latest","headers":{"accept-ranges":"bytes","access-control-allow-origin":"*","access-control-expose-headers":"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset","cache-control":"public, max-age=60, s-maxage=60","content-encoding":"gzip","content-length":"848","content-security-policy":"default-src 'none'","content-type":"application/json; charset=utf-8","date":"Tue, 04 Jun 2024 17:42:04 GMT","etag":"W/\"98022bd4bdfb04f7344bc88ff2b3751d50fb58a4db71e549e9da7f6d42198526\"","last-modified":"Tue, 04 Jun 2024 17:21:33 GMT","referrer-policy":"origin-when-cross-origin, strict-origin-when-cross-origin","server":"GitHub.com","strict-transport-security":"max-age=31536000; includeSubdomains; preload","vary":"Accept, Accept-Encoding, Accept, X-Requested-With","x-content-type-options":"nosniff","x-frame-options":"deny","x-github-api-version-selected":"2022-11-28","x-github-media-type":"github.v3; format=json","x-github-request-id":"E6A5:22F369:44D63E2:7A4ABCA:665F51F2","x-ratelimit-limit":"60","x-ratelimit-remaining":"56","x-ratelimit-reset":"1717525152","x-ratelimit-resource":"core","x-ratelimit-used":"4","x-xss-protection":"0"},"data":{"url":"https://api.github.com/repos/jamtools/github-releases-test/releases/157680714","assets_url":"https://api.github.com/repos/jamtools/github-releases-test/releases/157680714/assets","upload_url":"https://uploads.github.com/repos/jamtools/github-releases-test/releases/157680714/assets{?name,label}","html_url":"https://github.com/jamtools/github-releases-test/releases/tag/v2","id":157680714,"author":{"login":"mickmister","id":6913320,"node_id":"MDQ6VXNlcjY5MTMzMjA=","avatar_url":"https://avatars.githubusercontent.com/u/6913320?v=4","gravatar_id":"","url":"https://api.github.com/users/mickmister","html_url":"https://github.com/mickmister","followers_url":"https://api.github.com/users/mickmister/followers","following_url":"https://api.github.com/users/mickmister/following{/other_user}","gists_url":"https://api.github.com/users/mickmister/gists{/gist_id}","starred_url":"https://api.github.com/users/mickmister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickmister/subscriptions","organizations_url":"https://api.github.com/users/mickmister/orgs","repos_url":"https://api.github.com/users/mickmister/repos","events_url":"https://api.github.com/users/mickmister/events{/privacy}","received_events_url":"https://api.github.com/users/mickmister/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOMBWyHM4JZgRK","tag_name":"v2","target_commitish":"main","name":"v2","draft":false,"prerelease":false,"created_at":"2024-05-27T19:22:02Z","published_at":"2024-05-27T19:45:05Z","assets":[{"url":"https://api.github.com/repos/jamtools/github-releases-test/releases/assets/171886714","id":171886714,"node_id":"RA_kwDOMBWyHM4KPsh6","name":"index-linux-x64","label":null,"uploader":{"login":"mickmister","id":6913320,"node_id":"MDQ6VXNlcjY5MTMzMjA=","avatar_url":"https://avatars.githubusercontent.com/u/6913320?v=4","gravatar_id":"","url":"https://api.github.com/users/mickmister","html_url":"https://github.com/mickmister","followers_url":"https://api.github.com/users/mickmister/followers","following_url":"https://api.github.com/users/mickmister/following{/other_user}","gists_url":"https://api.github.com/users/mickmister/gists{/gist_id}","starred_url":"https://api.github.com/users/mickmister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickmister/subscriptions","organizations_url":"https://api.github.com/users/mickmister/orgs","repos_url":"https://api.github.com/users/mickmister/repos","events_url":"https://api.github.com/users/mickmister/events{/privacy}","received_events_url":"https://api.github.com/users/mickmister/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":51397841,"download_count":0,"created_at":"2024-06-04T17:20:20Z","updated_at":"2024-06-04T17:20:58Z","browser_download_url":"https://github.com/jamtools/github-releases-test/releases/download/v2/index-linux-x64"},{"url":"https://api.github.com/repos/jamtools/github-releases-test/releases/assets/171886783","id":171886783,"node_id":"RA_kwDOMBWyHM4KPsi_","name":"index-macos-arm64","label":null,"uploader":{"login":"mickmister","id":6913320,"node_id":"MDQ6VXNlcjY5MTMzMjA=","avatar_url":"https://avatars.githubusercontent.com/u/6913320?v=4","gravatar_id":"","url":"https://api.github.com/users/mickmister","html_url":"https://github.com/mickmister","followers_url":"https://api.github.com/users/mickmister/followers","following_url":"https://api.github.com/users/mickmister/following{/other_user}","gists_url":"https://api.github.com/users/mickmister/gists{/gist_id}","starred_url":"https://api.github.com/users/mickmister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickmister/subscriptions","organizations_url":"https://api.github.com/users/mickmister/orgs","repos_url":"https://api.github.com/users/mickmister/repos","events_url":"https://api.github.com/users/mickmister/events{/privacy}","received_events_url":"https://api.github.com/users/mickmister/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":47268336,"download_count":0,"created_at":"2024-06-04T17:20:58Z","updated_at":"2024-06-04T17:21:33Z","browser_download_url":"https://github.com/jamtools/github-releases-test/releases/download/v2/index-macos-arm64"}],"tarball_url":"https://api.github.com/repos/jamtools/github-releases-test/tarball/v2","zipball_url":"https://api.github.com/repos/jamtools/github-releases-test/zipball/v2","body":""}} \ No newline at end of file +{"status":200,"url":"https://api.github.com/repos/jamtools/github-releases-test/releases/latest","headers":{"accept-ranges":"bytes","access-control-allow-origin":"*","access-control-expose-headers":"ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset","cache-control":"public, max-age=60, s-maxage=60","content-encoding":"gzip","content-length":"854","content-security-policy":"default-src 'none'","content-type":"application/json; charset=utf-8","date":"Tue, 11 Jun 2024 05:10:09 GMT","etag":"W/\"239bf7f29aae6ade76c1612cd5f9fb27606cb717d4ae61aa330330a4c3b5a95d\"","last-modified":"Tue, 04 Jun 2024 17:21:33 GMT","referrer-policy":"origin-when-cross-origin, strict-origin-when-cross-origin","server":"GitHub.com","strict-transport-security":"max-age=31536000; includeSubdomains; preload","vary":"Accept, Accept-Encoding, Accept, X-Requested-With","x-content-type-options":"nosniff","x-frame-options":"deny","x-github-api-version-selected":"2022-11-28","x-github-media-type":"github.v3; format=json","x-github-request-id":"DDDF:37E569:CB5171:147C7FE:6667DC36","x-ratelimit-limit":"60","x-ratelimit-remaining":"58","x-ratelimit-reset":"1718086209","x-ratelimit-resource":"core","x-ratelimit-used":"2","x-xss-protection":"0"},"data":{"url":"https://api.github.com/repos/jamtools/github-releases-test/releases/157680714","assets_url":"https://api.github.com/repos/jamtools/github-releases-test/releases/157680714/assets","upload_url":"https://uploads.github.com/repos/jamtools/github-releases-test/releases/157680714/assets{?name,label}","html_url":"https://github.com/jamtools/github-releases-test/releases/tag/v2","id":157680714,"author":{"login":"mickmister","id":6913320,"node_id":"MDQ6VXNlcjY5MTMzMjA=","avatar_url":"https://avatars.githubusercontent.com/u/6913320?v=4","gravatar_id":"","url":"https://api.github.com/users/mickmister","html_url":"https://github.com/mickmister","followers_url":"https://api.github.com/users/mickmister/followers","following_url":"https://api.github.com/users/mickmister/following{/other_user}","gists_url":"https://api.github.com/users/mickmister/gists{/gist_id}","starred_url":"https://api.github.com/users/mickmister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickmister/subscriptions","organizations_url":"https://api.github.com/users/mickmister/orgs","repos_url":"https://api.github.com/users/mickmister/repos","events_url":"https://api.github.com/users/mickmister/events{/privacy}","received_events_url":"https://api.github.com/users/mickmister/received_events","type":"User","site_admin":false},"node_id":"RE_kwDOMBWyHM4JZgRK","tag_name":"v2","target_commitish":"main","name":"v2","draft":false,"prerelease":false,"created_at":"2024-05-27T19:22:02Z","published_at":"2024-05-27T19:45:05Z","assets":[{"url":"https://api.github.com/repos/jamtools/github-releases-test/releases/assets/171886714","id":171886714,"node_id":"RA_kwDOMBWyHM4KPsh6","name":"index-linux-x64","label":null,"uploader":{"login":"mickmister","id":6913320,"node_id":"MDQ6VXNlcjY5MTMzMjA=","avatar_url":"https://avatars.githubusercontent.com/u/6913320?v=4","gravatar_id":"","url":"https://api.github.com/users/mickmister","html_url":"https://github.com/mickmister","followers_url":"https://api.github.com/users/mickmister/followers","following_url":"https://api.github.com/users/mickmister/following{/other_user}","gists_url":"https://api.github.com/users/mickmister/gists{/gist_id}","starred_url":"https://api.github.com/users/mickmister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickmister/subscriptions","organizations_url":"https://api.github.com/users/mickmister/orgs","repos_url":"https://api.github.com/users/mickmister/repos","events_url":"https://api.github.com/users/mickmister/events{/privacy}","received_events_url":"https://api.github.com/users/mickmister/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":51397841,"download_count":6,"created_at":"2024-06-04T17:20:20Z","updated_at":"2024-06-04T17:20:58Z","browser_download_url":"https://github.com/jamtools/github-releases-test/releases/download/v2/index-linux-x64"},{"url":"https://api.github.com/repos/jamtools/github-releases-test/releases/assets/171886783","id":171886783,"node_id":"RA_kwDOMBWyHM4KPsi_","name":"index-macos-arm64","label":null,"uploader":{"login":"mickmister","id":6913320,"node_id":"MDQ6VXNlcjY5MTMzMjA=","avatar_url":"https://avatars.githubusercontent.com/u/6913320?v=4","gravatar_id":"","url":"https://api.github.com/users/mickmister","html_url":"https://github.com/mickmister","followers_url":"https://api.github.com/users/mickmister/followers","following_url":"https://api.github.com/users/mickmister/following{/other_user}","gists_url":"https://api.github.com/users/mickmister/gists{/gist_id}","starred_url":"https://api.github.com/users/mickmister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickmister/subscriptions","organizations_url":"https://api.github.com/users/mickmister/orgs","repos_url":"https://api.github.com/users/mickmister/repos","events_url":"https://api.github.com/users/mickmister/events{/privacy}","received_events_url":"https://api.github.com/users/mickmister/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":47268336,"download_count":3,"created_at":"2024-06-04T17:20:58Z","updated_at":"2024-06-04T17:21:33Z","browser_download_url":"https://github.com/jamtools/github-releases-test/releases/download/v2/index-macos-arm64"}],"tarball_url":"https://api.github.com/repos/jamtools/github-releases-test/tarball/v2","zipball_url":"https://api.github.com/repos/jamtools/github-releases-test/zipball/v2","body":""}} \ No newline at end of file