diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7f7dc2d..256a408 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,16 +3,20 @@ name: Build on: workflow_dispatch: pull_request: - paths-ignore: ['*.md'] + types: [opened, synchronize, reopened, ready_for_review] branches: ['master'] + paths-ignore: ['*.md'] + +permissions: {} concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + group: package-build-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true jobs: build: - if: github.event.pull_request.draft == false + if: github.event_name != 'pull_request' || github.event.pull_request.draft == false + permissions: + contents: read uses: Start9Labs/start-technologies/.github/workflows/build.yml@master - secrets: - DEV_KEY: ${{ secrets.DEV_KEY }} + # No DEV_KEY — a PR build doesn't publish, so it doesn't need the signing key. diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..1432f56 --- /dev/null +++ b/.prettierrc @@ -0,0 +1 @@ +"@start9labs/start-sdk/prettier.config.json" diff --git a/AGENTS.md b/AGENTS.md index 120bbe2..1521091 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -5,29 +5,3 @@ This is a StartOS service-package repository — it builds a `.s9pk` for StartOS Develop it inside a StartOS packaging workspace created by `start-cli s9pk init-workspace`, which provides the packaging guide and agent context one level up. If you're reading this in a bare clone with no workspace, the full guide is at . - -**Start every task at the recipe index** — `../start-technologies/projects/start-sdk/docs/src/recipes.md` -(or ). It maps an intent ("prompt the user to create -admin credentials", "expose a web UI") to the constructs, the reference pages, and a named production -package to copy. Find the recipe before you read this package's neighbours: a package you reach by -grepping may be non-conformant, and the recipe outranks it. - -Freshly scaffolded? Work the -[New Package Checklist](../start-technologies/projects/start-sdk/docs/src/new-package-checklist.md) -(or ) from top to bottom. It is a -guide page, not a file in this repo — read it, don't copy it in. - -Keep `README.md` (technical reference for an AI support or administering agent) and -`instructions.md` (end-user docs) in sync with your changes. This file restates neither: -whoever changes the package has both, so it carries only what they don't — repo mechanics, -a change that looks right and is not, where the next thing gets added, a naming trap, a -build or test invocation particular to this repo. - -**Fix a defect you spot rather than reporting it** — you have the package open and the -context to be sure. File **a GitHub issue on this repo** only when the call isn't yours to -make: you can't pin the cause down, two defensible fixes exist, or it's too large to ride on -the work in hand. An open issue is a report, not a queue — implement one when you're asked -to or when it's labelled `Approved`, then close it with `Closes #`. - -Don't record work in the repo instead: no `TODO.md`, no `NOTES.md`, no `PLAN.md`. What you -verified, tried, and decided belongs in the commit message and the PR body. diff --git a/README.md b/README.md index 81f89ce..03fc0e9 100644 --- a/README.md +++ b/README.md @@ -60,9 +60,9 @@ the entrypoint's printout of both startup scripts. The package has one small volume, and it holds no diagram. -| Volume | Mount point | Contents | -| --------- | ----------- | -------------------------------- | -| `startos` | not mounted | `store.json`: the primary URL | +| Volume | Mount point | Contents | +| --------- | ----------- | ----------------------------- | +| `startos` | not mounted | `store.json`: the primary URL | Diagrams live wherever each user saves them: on their own device, in their browser's storage for that address, or in Nextcloud when opened through its draw.io app. There @@ -72,15 +72,19 @@ is no database, and the draw.io container mounts no volume at all. One JSON file, written only by the package, never by draw.io. -**`store.json`** (`startos` volume) holds `primaryUrl`. Init sets it on install; the -Set Primary URL action rewrites it. It reaches draw.io as environment variables, read -on every start: +**`store.json`** (`startos` volume) holds `primaryUrl`, the address chosen with Set +Primary URL, empty until one is chosen. draw.io uses that address at its hostname's +current port and scheme. While the hostname is not one of the Web UI's addresses, or +nothing is chosen, it uses the preferred address instead: a public domain (HTTPS +first), else the `.local` address, else the first. The choice is kept, so draw.io +returns to it when the address does. Whenever the address in use changes, draw.io +restarts to pick it up. It reaches draw.io as environment variables: -| Variable | Value | -| --------------------- | -------------------------------------------------------------------------------------- | -| `DRAWIO_SERVER_URL` | Always `/`. Keeps the editor's own requests relative, so it works from every address | -| `DRAWIO_BASE_URL` | `primaryUrl`, trailing slash removed. Used in HTML exports, embed code and editor links | -| `DRAWIO_LIGHTBOX_URL` | `primaryUrl`. Used for viewer links (File → Publish → Link…) | +| Variable | Value | +| --------------------- | ------------------------------------------------------------------------------------ | +| `DRAWIO_SERVER_URL` | Always `/`. Keeps the editor's own requests relative, so it works from every address | +| `DRAWIO_BASE_URL` | The address in use. Used in HTML exports, embed code and editor links | +| `DRAWIO_LIGHTBOX_URL` | The address in use. Used for viewer links (File → Publish → Link…) | `DRAWIO_SERVER_URL` must stay set: given only `DRAWIO_BASE_URL`, the upstream entrypoint derives an absolute server URL from it, and the editor then sends its own @@ -106,8 +110,8 @@ The package exposes one HTTP interface. The server has no login: anyone who can reach an address can use the editor, though there is nothing stored for them to read. -| Interface | ID | Type | Port | Protocol | Serves | -| --------- | ---- | ---- | ---- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Interface | ID | Type | Port | Protocol | Serves | +| --------- | ---- | ---- | ---- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Web UI | `ui` | `ui` | 8080 | HTTP | The editor; the viewer behind share links (`/?lightbox=1`); the viewer script HTML exports load (`/js/viewer-static.min.js`); the embed mode Nextcloud frames (`/?embed=1`) | Tomcat's HTTPS port, 8443, is not exposed. Two upstream endpoints fetch URLs @@ -118,31 +122,31 @@ private, loopback, link-local and `.local` ones. ## Installation and First-Run Flow There is no setup wizard and no account to create; the editor is usable as soon as -the service starts. On install, init sets the primary URL to the interface's `.local` -address, or to its first off-box address when there is no `.local` one. +the service starts. Install stores no primary URL: draw.io uses the preferred address +(see File Models), and the Set Primary URL task asks the user to choose one. ## Actions The package has one action. It can run while the service is running or stopped; a running draw.io restarts to apply it, which takes a few seconds. -**Set Primary URL** (`set-primary-url`) — run it when people open exported files and -share links from somewhere the current address does not reach, typically over a VPN -or a domain rather than the LAN. It rewrites `primaryUrl` in `store.json`, which -restarts a running draw.io. Its form pre-fills the current address only while that -address still exists, so from the task it opens on the default instead. Links and +**Set Primary URL** (`set-primary-url`), built by `sdk.setupPrimaryUrl` — run it when +people open exported files and share links from somewhere the current address does not +reach, typically over a VPN or a domain rather than the LAN. It offers the Web UI's +off-box addresses, pre-selects the preferred one and pre-fills the stored choice. It +rewrites `primaryUrl` in `store.json`, which restarts a running draw.io. Links and files exported earlier keep the address they were made with. Safe to repeat. ## Tasks The package raises one task, and it never blocks the service. -**Set Primary URL**, severity `important`. Init raises it when the stored primary -URL is no longer one of the Web UI's addresses: the address was disabled, a domain -was removed, or a backup was restored onto a server with a different name. Running -Set Primary URL clears it, and so does the chosen address coming back. It returns -whenever the chosen address disappears again. -While it is raised, draw.io keeps running; exports simply carry the dead address. +**Set Primary URL**, severity `important`. Init raises it while no primary URL is +chosen, as after install, and while the chosen one's hostname is not one of the Web +UI's addresses: the address was disabled, a domain was removed, a backup was restored +onto a server with a different name, or an IP address's network link is down. Choosing +an address clears it, and so does the chosen address coming back. While it is raised, +draw.io keeps running on the preferred address. ## Health Checks @@ -161,7 +165,8 @@ URL. A backup contains no diagrams, because the server never has any. Users' diagrams must be backed up wherever they save them — their devices, or Nextcloud. After a restore onto a server with a different name, the stored primary URL no longer -matches any address and the task above asks for a new one. +matches any address: draw.io uses the preferred address, and the task above asks for +a new one. ## Limitations and Differences @@ -187,8 +192,8 @@ listed because the hosted draw.io at app.diagrams.net behaves differently. 5. **No login.** Anyone who can reach one of its addresses can use the editor. 6. **A new primary URL can lag in an open browser.** The startup scripts are served without cache headers, so a browser that loaded draw.io recently may keep - exporting with the old address after the action restarts the service. Reloading - the page fetches the new one. + exporting with the old address after it changes. Reloading the page fetches the + new one. 7. **URL proxy off.** With `/proxy` disabled, importing an image by URL from a site that does not allow cross-origin requests fails; downloading it and inserting the file works. @@ -216,7 +221,7 @@ interfaces: actions: - set-primary-url tasks: - - { action: set-primary-url, severity: important } + - { action: set-primary-url, severity: important } # while unset or not a Web UI address health_checks: - primary ``` diff --git a/instructions.md b/instructions.md index e4548d0..85c9932 100644 --- a/instructions.md +++ b/instructions.md @@ -15,8 +15,10 @@ ## Getting set up -1. Open the **Web UI**. The editor starts on a blank diagram. -2. Before you rely on it, decide where your diagrams will live. Use **File → Save +1. Run the **Set Primary URL** task StartOS shows after install, to choose the address + that goes into share links and exported files (see **Sharing and exporting** below). +2. Open the **Web UI**. The editor starts on a blank diagram. +3. Before you rely on it, decide where your diagrams will live. Use **File → Save as…** and pick a place under **Where**: - **Device** saves a `.drawio` file to a folder you choose, and keeps saving to it. Any folder your computer can see works, including a mounted network share. @@ -32,10 +34,10 @@ ### Sharing and exporting **File → Publish → Link…**, **File → Export as → HTML…** and **File → Embed** all -produce links or files that load from your server's **primary URL** — the `.local` -address, unless you change it. People who open them need to reach that address. If -they open them over a VPN or through a domain instead, run **Set Primary URL** and -choose an address that works for them. Links and files you made earlier keep the +produce links or files that load from draw.io's **primary URL**, the address you +chose with **Set Primary URL**. People who open them need to reach that address. If +they open them over a VPN or through a domain instead, run **Set Primary URL** again +and choose an address that works for them. Links and files you made earlier keep the address they were made with. ### Using it from Nextcloud @@ -59,8 +61,9 @@ your device is in dark mode. This action chooses which of draw.io's addresses goes into share links, HTML exports and embed code. If draw.io is running, it restarts, which takes a few seconds; if a browser that already had draw.io open still uses the old address, reload the page. -If the chosen address stops existing, for example after you disable it, StartOS asks -you to pick a new one, and draw.io keeps working meanwhile. +If the chosen address stops existing, for example after you disable it, draw.io uses +its public domain if it has one, otherwise its `.local` address, until the chosen one +returns, and StartOS asks you to pick a new one. ## Limitations diff --git a/package-lock.json b/package-lock.json index fb5d5a7..37ae9dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,91 +6,13 @@ "": { "name": "drawio-startos", "dependencies": { - "@start9labs/start-sdk": "2.0.9" - }, - "devDependencies": { - "@types/node": "^22.19.0", - "@vercel/ncc": "^0.38.4", - "prettier": "^3.6.2", - "typescript": "^6.0.3" - } - }, - "node_modules/@iarna/toml": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-3.0.0.tgz", - "integrity": "sha512-td6ZUkz2oS3VeleBcN+m//Q6HlCFCPrnI0FZhrt/h4XqLEdOyYp2u21nd8MdsR+WJy5r9PTDaHTDDfhf4H4l6Q==", - "license": "ISC" - }, - "node_modules/@noble/curves": { - "version": "1.9.7", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz", - "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==", - "license": "MIT", - "dependencies": { - "@noble/hashes": "1.8.0" - }, - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/hashes": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", - "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", - "license": "MIT", - "engines": { - "node": "^14.21.3 || >=16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@nodable/entities": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-2.2.0.tgz", - "integrity": "sha512-9uGyhaQavEUMC8AIddIjau4NsnsXhou+j5sBAGojCM1oxmQpVKTWR/9JxABD6UAv12vpIms55fPZKFQEhG6uBg==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/nodable" - } - ], - "license": "MIT" - }, - "node_modules/@start9labs/start-sdk": { - "version": "2.0.9", - "resolved": "https://registry.npmjs.org/@start9labs/start-sdk/-/start-sdk-2.0.9.tgz", - "integrity": "sha512-HuSYrS10Bb+f6OyAMlCzd5Qyr+rIauiI0dF8MVh5Ny+eU0gF8/DeFAXlHFgL+9wkSv4UAP5q5yOzlBpXzsNbWQ==", - "bundleDependencies": [ - "@start9labs/start-core", - "eslint", - "typescript-eslint" - ], - "license": "MIT", - "dependencies": { - "@iarna/toml": "^3.0.0", - "@noble/curves": "^1.9.7", - "@noble/hashes": "^1.8.0", - "@start9labs/start-core": "file:./node_modules/@start9labs/start-core", - "@types/ini": "^4.1.1", - "deep-equality-data-structures": "^2.0.0", - "eslint": "^9.39.4", - "fast-xml-parser": "~5.7.0", - "ini": "^5.0.0", - "isomorphic-fetch": "^3.0.0", - "mime": "^4.1.0", - "typescript-eslint": "^8.61.0", - "yaml": "^2.8.3", - "zod": "4.4.3", - "zod-deep-partial": "^1.2.0" + "@start9labs/start-sdk": "3.0.4" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint-community/eslint-utils": { - "version": "4.9.1", - "inBundle": true, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.10.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.10.1.tgz", + "integrity": "sha512-cuadcxVFE8sDK6iWJbs8Sn0av2Nrh2QSGQhVlBW9AaAHqHwjWsZHT8LJ4hFGPh7ASBV2deFdM7H/DPjulmh8rg==", "license": "MIT", "dependencies": { "eslint-visitor-keys": "^3.4.3" @@ -105,9 +27,10 @@ "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { "version": "3.4.3", - "inBundle": true, + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "license": "Apache-2.0", "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -116,17 +39,19 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint-community/regexpp": { + "node_modules/@eslint-community/regexpp": { "version": "4.12.2", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz", + "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==", "license": "MIT", "engines": { "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/config-array": { + "node_modules/@eslint/config-array": { "version": "0.21.2", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.21.2.tgz", + "integrity": "sha512-nJl2KGTlrf9GjLimgIru+V/mzgSK0ABCDQRvxw5BjURL7WfH5uoWmizbH7QB6MmnMBd8cIC9uceWnezL1VZWWw==", "license": "Apache-2.0", "dependencies": { "@eslint/object-schema": "^2.1.7", @@ -137,29 +62,10 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/config-array/node_modules/brace-expansion": { - "version": "1.1.15", - "inBundle": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/config-array/node_modules/minimatch": { - "version": "3.1.5", - "inBundle": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/config-helpers": { + "node_modules/@eslint/config-helpers": { "version": "0.4.2", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.4.2.tgz", + "integrity": "sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==", "license": "Apache-2.0", "dependencies": { "@eslint/core": "^0.17.0" @@ -168,9 +74,10 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/core": { + "node_modules/@eslint/core": { "version": "0.17.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.17.0.tgz", + "integrity": "sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==", "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.15" @@ -179,9 +86,10 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/eslintrc": { - "version": "3.3.5", - "inBundle": true, + "node_modules/@eslint/eslintrc": { + "version": "3.3.7", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.7.tgz", + "integrity": "sha512-F42g89Qd5oAWtp0k0nnSrjziAKza7w8SVT4mStc18LZMaRb4J1HQAHLCalEtDCxrTuksx7NU9qsmeLwpOfPqWw==", "license": "MIT", "dependencies": { "ajv": "^6.14.0", @@ -190,7 +98,7 @@ "globals": "^14.0.0", "ignore": "^5.2.0", "import-fresh": "^3.2.1", - "js-yaml": "^4.1.1", + "js-yaml": "^4.3.2", "minimatch": "^3.1.5", "strip-json-comments": "^3.1.1" }, @@ -201,55 +109,10 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/eslintrc/node_modules/argparse": { - "version": "2.0.1", - "inBundle": true, - "license": "Python-2.0" - }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/eslintrc/node_modules/brace-expansion": { - "version": "1.1.15", - "inBundle": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/eslintrc/node_modules/js-yaml": { - "version": "4.2.0", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/puzrin" - }, - { - "type": "github", - "url": "https://github.com/sponsors/nodeca" - } - ], - "inBundle": true, - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/eslintrc/node_modules/minimatch": { - "version": "3.1.5", - "inBundle": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/js": { - "version": "9.39.4", - "inBundle": true, + "node_modules/@eslint/js": { + "version": "9.39.5", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.39.5.tgz", + "integrity": "sha512-QywQuszQh77pIXCsq998c8hbhSTI/azTty1Z6N53dmAudKHhy573j3yvRLsX2BSp8YpLtoCEG8E9DJe+8zUh4A==", "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -258,17 +121,19 @@ "url": "https://eslint.org/donate" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/object-schema": { + "node_modules/@eslint/object-schema": { "version": "2.1.7", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.7.tgz", + "integrity": "sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==", "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@eslint/plugin-kit": { + "node_modules/@eslint/plugin-kit": { "version": "0.4.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.4.1.tgz", + "integrity": "sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==", "license": "Apache-2.0", "dependencies": { "@eslint/core": "^0.17.0", @@ -278,9 +143,10 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@humanfs/core": { + "node_modules/@humanfs/core": { "version": "0.19.2", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.2.tgz", + "integrity": "sha512-UhXNm+CFMWcbChXywFwkmhqjs3PRCmcSa/hfBgLIb7oQ5HNb1wS0icWsGtSAUNgefHeI+eBrA8I1fxmbHsGdvA==", "license": "Apache-2.0", "dependencies": { "@humanfs/types": "^0.15.0" @@ -289,9 +155,10 @@ "node": ">=18.18.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@humanfs/node": { + "node_modules/@humanfs/node": { "version": "0.16.8", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.8.tgz", + "integrity": "sha512-gE1eQNZ3R++kTzFUpdGlpmy8kDZD/MLyHqDwqjkVQI0JMdI1D51sy1H958PNXYkM2rAac7e5/CnIKZrHtPh3BQ==", "license": "Apache-2.0", "dependencies": { "@humanfs/core": "^0.19.2", @@ -302,17 +169,19 @@ "node": ">=18.18.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@humanfs/types": { + "node_modules/@humanfs/types": { "version": "0.15.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@humanfs/types/-/types-0.15.0.tgz", + "integrity": "sha512-ZZ1w0aoQkwuUuC7Yf+7sdeaNfqQiiLcSRbfI08oAxqLtpXQr9AIVX7Ay7HLDuiLYAaFPu8oBYNq/QIi9URHJ3Q==", "license": "Apache-2.0", "engines": { "node": ">=18.18.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@humanwhocodes/module-importer": { + "node_modules/@humanwhocodes/module-importer": { "version": "1.0.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "license": "Apache-2.0", "engines": { "node": ">=12.22" @@ -322,9 +191,10 @@ "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@start9labs/start-sdk/node_modules/@humanwhocodes/retry": { + "node_modules/@humanwhocodes/retry": { "version": "0.4.3", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", + "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", "license": "Apache-2.0", "engines": { "node": ">=18.18" @@ -334,26 +204,119 @@ "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@start9labs/start-sdk/node_modules/@types/estree": { + "node_modules/@iarna/toml": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@iarna/toml/-/toml-3.0.0.tgz", + "integrity": "sha512-td6ZUkz2oS3VeleBcN+m//Q6HlCFCPrnI0FZhrt/h4XqLEdOyYp2u21nd8MdsR+WJy5r9PTDaHTDDfhf4H4l6Q==", + "license": "ISC" + }, + "node_modules/@noble/curves": { + "version": "1.9.7", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz", + "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "1.8.0" + }, + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/hashes": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", + "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", + "license": "MIT", + "engines": { + "node": "^14.21.3 || >=16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@nodable/entities": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@nodable/entities/-/entities-2.2.0.tgz", + "integrity": "sha512-9uGyhaQavEUMC8AIddIjau4NsnsXhou+j5sBAGojCM1oxmQpVKTWR/9JxABD6UAv12vpIms55fPZKFQEhG6uBg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/nodable" + } + ], + "license": "MIT" + }, + "node_modules/@start9labs/start-sdk": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@start9labs/start-sdk/-/start-sdk-3.0.4.tgz", + "integrity": "sha512-G02R4TlaLmTSisMpPnSAHB9KOSqJydjsKOeijwMkHp87ek6eNxg/FissID+AsheXmDcZSiyieos45lxud4kihA==", + "bundleDependencies": [ + "@start9labs/start-core" + ], + "license": "MIT", + "dependencies": { + "@iarna/toml": "^3.0.0", + "@noble/curves": "^1.9.7", + "@noble/hashes": "^1.8.0", + "@start9labs/start-core": "file:./node_modules/@start9labs/start-core", + "@types/ini": "^4.1.1", + "@types/node": "^22.19.0", + "@vercel/ncc": "^0.38.4", + "deep-equality-data-structures": "^2.0.0", + "eslint": "^9.39.4", + "fast-xml-parser": "~5.7.0", + "ini": "^5.0.0", + "isomorphic-fetch": "^3.0.0", + "mime": "^4.1.0", + "prettier": "3.8.3", + "typescript": "^6.0.3", + "typescript-eslint": "^8.61.0", + "yaml": "^2.8.3", + "zod": "4.4.3", + "zod-deep-partial": "^1.2.0" + } + }, + "node_modules/@types/estree": { "version": "1.0.9", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.9.tgz", + "integrity": "sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==", + "license": "MIT" + }, + "node_modules/@types/ini": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@types/ini/-/ini-4.1.1.tgz", + "integrity": "sha512-MIyNUZipBTbyUNnhvuXJTY7B6qNI78meck9Jbv3wk0OgNwRyOOVEKDutAkOs1snB/tx0FafyR6/SN4Ps0hZPeg==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/@types/json-schema": { + "node_modules/@types/json-schema": { "version": "7.0.15", - "inBundle": true, + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@types/node": { + "version": "22.20.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.5.tgz", + "integrity": "sha512-U2+DNr+wSjpsTS/wZGYHq7GcwfuSmKiKvoPvK22zwTlRhU91yOniN4qRR5KhIjvif7ysw/dz/hKmfDH0Ris4aA==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.71.1.tgz", + "integrity": "sha512-nNlBf6HuotqMgZvSkWD5hNdemiBIxQ2NmrlgfcUIeZRs+BbakjscCQRq/Hb74EFVnFiSWWdL12JruqwBy3ERDw==", "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.61.0", - "@typescript-eslint/type-utils": "8.61.0", - "@typescript-eslint/utils": "8.61.0", - "@typescript-eslint/visitor-keys": "8.61.0", + "@typescript-eslint/scope-manager": "8.71.1", + "@typescript-eslint/type-utils": "8.71.1", + "@typescript-eslint/utils": "8.71.1", + "@typescript-eslint/visitor-keys": "8.71.1", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -366,28 +329,30 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.61.0", + "@typescript-eslint/parser": "^8.71.1", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { - "version": "7.0.5", - "inBundle": true, + "node_modules/@typescript-eslint/eslint-plugin/node_modules/ignore": { + "version": "7.0.12", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.12.tgz", + "integrity": "sha512-/8UvqAPU9DGTI9k4mxtf49U37Isfwr8Uts96+SBHIkFxPJnHS0Ew4f00sM4Scd8V8EjM0jUNtVDdv1kPdt35lg==", "license": "MIT", "engines": { "node": ">= 4" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/parser": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@typescript-eslint/parser": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.71.1.tgz", + "integrity": "sha512-oM/5sAqz/l1v/zYK1qTOPrn2+JIrBGC1V6uNYucRO5gh6eT9vWJ/RhPbGE59byvZEUQ4VP6XkLBaS5Jti5jpvw==", "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.61.0", - "@typescript-eslint/types": "8.61.0", - "@typescript-eslint/typescript-estree": "8.61.0", - "@typescript-eslint/visitor-keys": "8.61.0", + "@typescript-eslint/scope-manager": "8.71.1", + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/typescript-estree": "8.71.1", + "@typescript-eslint/visitor-keys": "8.71.1", "debug": "^4.4.3" }, "engines": { @@ -402,13 +367,14 @@ "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/project-service": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@typescript-eslint/project-service": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.71.1.tgz", + "integrity": "sha512-Oijc9RUsohHjncg6iGi7gCtjnEjYt9FWv9u6ygK8uKcHK5eLjLAkqERQ9BaytbpceOFdk6kifPCS/zAZE+A99g==", "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.61.0", - "@typescript-eslint/types": "^8.61.0", + "@typescript-eslint/tsconfig-utils": "^8.71.1", + "@typescript-eslint/types": "^8.71.1", "debug": "^4.4.3" }, "engines": { @@ -422,13 +388,14 @@ "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/scope-manager": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.71.1.tgz", + "integrity": "sha512-1YUDZXdTnXLlob03SFHBipdyMBsDVm7zoSz0ytTJ39dk5J1TgsTK03VlR/dLXG/RLLUrPcYbD4rp23BmHxHP0w==", "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.61.0", - "@typescript-eslint/visitor-keys": "8.61.0" + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/visitor-keys": "8.71.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -438,9 +405,10 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@typescript-eslint/tsconfig-utils": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.71.1.tgz", + "integrity": "sha512-oTvkml5SxXhgg+WWKhod5qWQICDXtOB+/Hi9VdPKFAANJ2b7YOgMffgvzXuqog7R6A/JtrzRf128dsxummyWhg==", "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -453,14 +421,15 @@ "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/type-utils": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@typescript-eslint/type-utils": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.71.1.tgz", + "integrity": "sha512-kH3t3jZCYv2PZSBEWPKTariLrCaoF1CLoPitYFBJOhAGEwWnSRAtGEifrfrpBa4K9JlwWNZotgA5w3/wLSk/FQ==", "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.61.0", - "@typescript-eslint/typescript-estree": "8.61.0", - "@typescript-eslint/utils": "8.61.0", + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/typescript-estree": "8.71.1", + "@typescript-eslint/utils": "8.71.1", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -476,9 +445,10 @@ "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/types": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@typescript-eslint/types": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.71.1.tgz", + "integrity": "sha512-ybYnPTUwg3VQQOFEiBPLs8Jxl1ry2vXdn1kVKguomBbvxpetdu3MKTNDqFNUrlG8ylP9MpZosmXMFYlGQHk1oQ==", "license": "MIT", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -488,15 +458,16 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/typescript-estree": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.71.1.tgz", + "integrity": "sha512-pSKSEK1JJpHs6KiKVtABCE4iJK5d7FLFzDXQNBQ2oRY7LEd3UwOt3TZemTgu9syTIf56dJWlTn/pdmrO9oKUXQ==", "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.61.0", - "@typescript-eslint/tsconfig-utils": "8.61.0", - "@typescript-eslint/types": "8.61.0", - "@typescript-eslint/visitor-keys": "8.61.0", + "@typescript-eslint/project-service": "8.71.1", + "@typescript-eslint/tsconfig-utils": "8.71.1", + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/visitor-keys": "8.71.1", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -514,31 +485,34 @@ "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { + "node_modules/@typescript-eslint/typescript-estree/node_modules/balanced-match": { "version": "4.0.4", - "inBundle": true, + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz", + "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==", "license": "MIT", "engines": { "node": "18 || 20 || >=22" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.6", - "inBundle": true, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz", + "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==", "license": "MIT", "dependencies": { "balanced-match": "^4.0.2" }, "engines": { - "node": "18 || 20 || >=22" + "node": "20 || >=22" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { - "version": "10.2.5", - "inBundle": true, + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "10.2.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz", + "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==", "license": "BlueOak-1.0.0", "dependencies": { - "brace-expansion": "^5.0.5" + "brace-expansion": "^5.0.8" }, "engines": { "node": "18 || 20 || >=22" @@ -547,26 +521,16 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.8.3", - "inBundle": true, - "license": "ISC", - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/utils": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@typescript-eslint/utils": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.71.1.tgz", + "integrity": "sha512-CBjT6gfAz3DW2j9Q4moFnqt208Aq+506sVGXfpRcyAeqn0EpayL0mjdWoCO2t3RC7GewNrFxdeehuEaPg6DMzQ==", "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.61.0", - "@typescript-eslint/types": "8.61.0", - "@typescript-eslint/typescript-estree": "8.61.0" + "@typescript-eslint/scope-manager": "8.71.1", + "@typescript-eslint/types": "8.71.1", + "@typescript-eslint/typescript-estree": "8.71.1" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -580,12 +544,13 @@ "typescript": ">=4.8.4 <6.1.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/visitor-keys": { - "version": "8.61.0", - "inBundle": true, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.71.1.tgz", + "integrity": "sha512-0GxiUGqMU0qXJt58cBsiG3DP8lUmBaFo2vChtUX+CT7PnR3v/VGLLrzVP4K9r1lNiZXjHYefMBbPunplr09v6w==", "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.61.0", + "@typescript-eslint/types": "8.71.1", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -596,9 +561,10 @@ "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@start9labs/start-sdk/node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { "version": "5.0.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", + "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==", "license": "Apache-2.0", "engines": { "node": "^20.19.0 || ^22.13.0 || >=24" @@ -607,9 +573,19 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@start9labs/start-sdk/node_modules/acorn": { - "version": "8.16.0", - "inBundle": true, + "node_modules/@vercel/ncc": { + "version": "0.38.4", + "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.4.tgz", + "integrity": "sha512-8LwjnlP39s08C08J5NstzriPvW1SP8Zfpp1BvC2sI35kPeZnHfxVkCwu4/+Wodgnd60UtT1n8K8zw+Mp7J9JmQ==", + "license": "MIT", + "bin": { + "ncc": "dist/ncc/cli.js" + } + }, + "node_modules/acorn": { + "version": "8.19.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.19.0.tgz", + "integrity": "sha512-oJlA3XiRm7Cyk6qFD2Jn8ak9B7jSy0qy00ADO3+8dpT0LSjFihQYv4C02LFCSYJV3Q37xYwwRy5m+IpIiUzqWw==", "license": "MIT", "bin": { "acorn": "bin/acorn" @@ -618,17 +594,19 @@ "node": ">=0.4.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/acorn-jsx": { + "node_modules/acorn-jsx": { "version": "5.3.2", - "inBundle": true, + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", "license": "MIT", "peerDependencies": { "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/ajv": { + "node_modules/ajv": { "version": "6.15.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.15.0.tgz", + "integrity": "sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==", "license": "MIT", "dependencies": { "fast-deep-equal": "^3.1.1", @@ -641,9 +619,10 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/@start9labs/start-sdk/node_modules/ansi-styles": { + "node_modules/ansi-styles": { "version": "4.3.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "license": "MIT", "dependencies": { "color-convert": "^2.0.1" @@ -655,22 +634,53 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@start9labs/start-sdk/node_modules/balanced-match": { + "node_modules/anynum": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/anynum/-/anynum-1.0.1.tgz", + "integrity": "sha512-N6//FLET/tXYNM/F6ABca1oH6fWB+KlTt909Le28WMDBk8oaT4vY17DCrwg2MvmuqUKt3Ni4N5dGJ/EoBgcO6A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT" + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "license": "Python-2.0" + }, + "node_modules/balanced-match": { "version": "1.0.2", - "inBundle": true, + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/callsites": { + "node_modules/brace-expansion": { + "version": "1.1.21", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.21.tgz", + "integrity": "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/callsites": { "version": "3.1.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "license": "MIT", "engines": { "node": ">=6" } }, - "node_modules/@start9labs/start-sdk/node_modules/chalk": { + "node_modules/chalk": { "version": "4.1.2", - "inBundle": true, + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", @@ -683,9 +693,10 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/@start9labs/start-sdk/node_modules/color-convert": { + "node_modules/color-convert": { "version": "2.0.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "license": "MIT", "dependencies": { "color-name": "~1.1.4" @@ -694,19 +705,22 @@ "node": ">=7.0.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/color-name": { + "node_modules/color-name": { "version": "1.1.4", - "inBundle": true, + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/concat-map": { + "node_modules/concat-map": { "version": "0.0.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/cross-spawn": { + "node_modules/cross-spawn": { "version": "7.0.6", - "inBundle": true, + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "license": "MIT", "dependencies": { "path-key": "^3.1.0", @@ -717,9 +731,10 @@ "node": ">= 8" } }, - "node_modules/@start9labs/start-sdk/node_modules/debug": { + "node_modules/debug": { "version": "4.4.3", - "inBundle": true, + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "license": "MIT", "dependencies": { "ms": "^2.1.3" @@ -733,23 +748,47 @@ } } }, - "node_modules/@start9labs/start-sdk/node_modules/deep-is": { + "node_modules/deep-equality-data-structures": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/deep-equality-data-structures/-/deep-equality-data-structures-2.0.0.tgz", + "integrity": "sha512-qgrUr7MKXq7VRN+WUpQ48QlXVGL0KdibAoTX8KRg18lgOgqbEKMAW1WZsVCtakY4+XX42pbAJzTz/DlXEFM2Fg==", + "license": "MIT", + "dependencies": { + "object-hash": "^3.0.0" + } + }, + "node_modules/deep-is": { "version": "0.1.4", - "inBundle": true, + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/eslint": { - "version": "9.39.4", - "inBundle": true, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", "license": "MIT", - "dependencies": { - "@eslint-community/eslint-utils": "^4.8.0", - "@eslint-community/regexpp": "^4.12.1", - "@eslint/config-array": "^0.21.2", - "@eslint/config-helpers": "^0.4.2", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "9.39.5", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.39.5.tgz", + "integrity": "sha512-DgZS62aPLXKlnxILS/AYCoRvHaZeXceIzlXPkkGGzJWSow1aEk0lbTlxUSlyjC8jcaKxAdOnTDz+o1JFSBsyjw==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.8.0", + "@eslint-community/regexpp": "^4.12.1", + "@eslint/config-array": "^0.21.2", + "@eslint/config-helpers": "^0.4.2", "@eslint/core": "^0.17.0", - "@eslint/eslintrc": "^3.3.5", - "@eslint/js": "9.39.4", + "@eslint/eslintrc": "^3.3.6", + "@eslint/js": "9.39.5", "@eslint/plugin-kit": "^0.4.1", "@humanfs/node": "^0.16.6", "@humanwhocodes/module-importer": "^1.0.1", @@ -796,9 +835,10 @@ } } }, - "node_modules/@start9labs/start-sdk/node_modules/eslint-scope": { + "node_modules/eslint-scope": { "version": "8.4.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.4.0.tgz", + "integrity": "sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==", "license": "BSD-2-Clause", "dependencies": { "esrecurse": "^4.3.0", @@ -811,9 +851,10 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@start9labs/start-sdk/node_modules/eslint-visitor-keys": { + "node_modules/eslint-visitor-keys": { "version": "4.2.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.1.tgz", + "integrity": "sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==", "license": "Apache-2.0", "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -822,94 +863,10 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@start9labs/start-sdk/node_modules/eslint/node_modules/brace-expansion": { - "version": "1.1.15", - "inBundle": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/eslint/node_modules/escape-string-regexp": { - "version": "4.0.0", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/eslint/node_modules/find-up": { - "version": "5.0.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/eslint/node_modules/glob-parent": { - "version": "6.0.2", - "inBundle": true, - "license": "ISC", - "dependencies": { - "is-glob": "^4.0.3" - }, - "engines": { - "node": ">=10.13.0" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/eslint/node_modules/locate-path": { - "version": "6.0.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "p-locate": "^5.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/eslint/node_modules/minimatch": { - "version": "3.1.5", - "inBundle": true, - "license": "ISC", - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/eslint/node_modules/p-locate": { - "version": "5.0.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "p-limit": "^3.0.2" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/espree": { + "node_modules/espree": { "version": "10.4.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", + "integrity": "sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==", "license": "BSD-2-Clause", "dependencies": { "acorn": "^8.15.0", @@ -923,9 +880,10 @@ "url": "https://opencollective.com/eslint" } }, - "node_modules/@start9labs/start-sdk/node_modules/esquery": { + "node_modules/esquery": { "version": "1.7.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz", + "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==", "license": "BSD-3-Clause", "dependencies": { "estraverse": "^5.1.0" @@ -934,9 +892,10 @@ "node": ">=0.10" } }, - "node_modules/@start9labs/start-sdk/node_modules/esrecurse": { + "node_modules/esrecurse": { "version": "4.3.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", "license": "BSD-2-Clause", "dependencies": { "estraverse": "^5.2.0" @@ -945,40 +904,83 @@ "node": ">=4.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/estraverse": { + "node_modules/estraverse": { "version": "5.3.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", "license": "BSD-2-Clause", "engines": { "node": ">=4.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/esutils": { + "node_modules/esutils": { "version": "2.0.3", - "inBundle": true, + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/fast-deep-equal": { + "node_modules/fast-deep-equal": { "version": "3.1.3", - "inBundle": true, + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/fast-json-stable-stringify": { + "node_modules/fast-json-stable-stringify": { "version": "2.1.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/fast-levenshtein": { + "node_modules/fast-levenshtein": { "version": "2.0.6", - "inBundle": true, + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/fdir": { + "node_modules/fast-xml-builder": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.3.1.tgz", + "integrity": "sha512-pIM/1n3ntFXKYrUZwW7QCK0gAW7XY+wzj1YMIV3tLDvPj/V+zTGJK5e3/4WJfwj0qWw2ElNXiTixda/R+3YSug==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT", + "dependencies": { + "path-expression-matcher": "^1.6.2", + "xml-naming": "^0.3.0" + } + }, + "node_modules/fast-xml-parser": { + "version": "5.7.3", + "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.7.3.tgz", + "integrity": "sha512-C0AaNuC+mscy6vrAQKAc/rMq+zAPHodfHGZu4sGVehvAQt/JLG1O5zEcYcXSY5zSqr4YVgxsB+pHXTq0i7eDlg==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], + "license": "MIT", + "dependencies": { + "@nodable/entities": "^2.1.0", + "fast-xml-builder": "^1.1.7", + "path-expression-matcher": "^1.5.0", + "strnum": "^2.2.3" + }, + "bin": { + "fxparser": "src/cli/cli.js" + } + }, + "node_modules/fdir": { "version": "6.5.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", "license": "MIT", "engines": { "node": ">=12.0.0" @@ -992,9 +994,10 @@ } } }, - "node_modules/@start9labs/start-sdk/node_modules/file-entry-cache": { + "node_modules/file-entry-cache": { "version": "8.0.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "license": "MIT", "dependencies": { "flat-cache": "^4.0.0" @@ -1003,9 +1006,26 @@ "node": ">=16.0.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/flat-cache": { + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { "version": "4.0.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", + "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", "license": "MIT", "dependencies": { "flatted": "^3.2.9", @@ -1015,14 +1035,28 @@ "node": ">=16" } }, - "node_modules/@start9labs/start-sdk/node_modules/flatted": { - "version": "3.4.2", - "inBundle": true, + "node_modules/flatted": { + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", "license": "ISC" }, - "node_modules/@start9labs/start-sdk/node_modules/globals": { + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/globals": { "version": "14.0.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", + "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", "license": "MIT", "engines": { "node": ">=18" @@ -1031,25 +1065,28 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@start9labs/start-sdk/node_modules/has-flag": { + "node_modules/has-flag": { "version": "4.0.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/@start9labs/start-sdk/node_modules/ignore": { + "node_modules/ignore": { "version": "5.3.2", - "inBundle": true, + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "license": "MIT", "engines": { "node": ">= 4" } }, - "node_modules/@start9labs/start-sdk/node_modules/import-fresh": { + "node_modules/import-fresh": { "version": "3.3.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", "license": "MIT", "dependencies": { "parent-module": "^1.0.0", @@ -1062,33 +1099,37 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@start9labs/start-sdk/node_modules/import-fresh/node_modules/resolve-from": { - "version": "4.0.0", - "inBundle": true, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "license": "MIT", "engines": { - "node": ">=4" + "node": ">=0.8.19" } }, - "node_modules/@start9labs/start-sdk/node_modules/imurmurhash": { - "version": "0.1.4", - "inBundle": true, - "license": "MIT", + "node_modules/ini": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ini/-/ini-5.0.0.tgz", + "integrity": "sha512-+N0ngpO3e7cRUWOJAS7qw0IZIVc6XPrW4MlFBdD066F2L4k1L6ker3hLqSq7iXxU5tgS4WGkIUElWn5vogAEnw==", + "license": "ISC", "engines": { - "node": ">=0.8.19" + "node": "^18.17.0 || >=20.5.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/is-extglob": { + "node_modules/is-extglob": { "version": "2.1.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/is-glob": { + "node_modules/is-glob": { "version": "4.0.3", - "inBundle": true, + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" @@ -1097,37 +1138,75 @@ "node": ">=0.10.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/isexe": { + "node_modules/isexe": { "version": "2.0.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "license": "ISC" }, - "node_modules/@start9labs/start-sdk/node_modules/json-buffer": { + "node_modules/isomorphic-fetch": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", + "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", + "license": "MIT", + "dependencies": { + "node-fetch": "^2.6.1", + "whatwg-fetch": "^3.4.1" + } + }, + "node_modules/js-yaml": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.2.tgz", + "integrity": "sha512-SFNOvSJ+Dgf/9An904Yx+CgSlIPCkIpao4qo51lpee25TIRejdH3rhR4EZMGoNx3/TP3O+wzWuiTFl4sqbltzA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/json-buffer": { "version": "3.0.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/json-schema-traverse": { + "node_modules/json-schema-traverse": { "version": "0.4.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/json-stable-stringify-without-jsonify": { + "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/keyv": { + "node_modules/keyv": { "version": "4.5.4", - "inBundle": true, + "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", "license": "MIT", "dependencies": { "json-buffer": "3.0.1" } }, - "node_modules/@start9labs/start-sdk/node_modules/levn": { + "node_modules/levn": { "version": "0.4.1", - "inBundle": true, + "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", "license": "MIT", "dependencies": { "prelude-ls": "^1.2.1", @@ -1137,24 +1216,99 @@ "node": ">= 0.8.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/lodash.merge": { + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.merge": { "version": "4.6.2", - "inBundle": true, + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/ms": { + "node_modules/mime": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-4.1.0.tgz", + "integrity": "sha512-X5ju04+cAzsojXKes0B/S4tcYtFAJ6tTMuSPBEn9CPGlrWr8Fiw7qYeLT0XyH80HSoAoqWCaz+MWKh22P7G1cw==", + "funding": [ + "https://github.com/sponsors/broofa" + ], + "license": "MIT", + "bin": { + "mime": "bin/cli.js" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/minimatch": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz", + "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/ms": { "version": "2.1.3", - "inBundle": true, + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/natural-compare": { + "node_modules/natural-compare": { "version": "1.4.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "license": "MIT" }, - "node_modules/@start9labs/start-sdk/node_modules/optionator": { + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/optionator": { "version": "0.9.4", - "inBundle": true, + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "license": "MIT", "dependencies": { "deep-is": "^0.1.3", @@ -1168,9 +1322,10 @@ "node": ">= 0.8.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/p-limit": { + "node_modules/p-limit": { "version": "3.1.0", - "inBundle": true, + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" @@ -1182,268 +1337,169 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@start9labs/start-sdk/node_modules/parent-module": { - "version": "1.0.1", - "inBundle": true, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "license": "MIT", "dependencies": { - "callsites": "^3.0.0" + "p-limit": "^3.0.2" }, "engines": { - "node": ">=6" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/path-exists": { - "version": "4.0.0", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/path-key": { - "version": "3.1.1", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=8" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/picomatch": { - "version": "4.0.4", - "inBundle": true, - "license": "MIT", - "engines": { - "node": ">=12" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@start9labs/start-sdk/node_modules/prelude-ls": { - "version": "1.2.1", - "inBundle": true, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, "engines": { - "node": ">= 0.8.0" + "node": ">=6" } }, - "node_modules/@start9labs/start-sdk/node_modules/punycode": { - "version": "2.3.1", - "inBundle": true, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "license": "MIT", "engines": { - "node": ">=6" + "node": ">=8" } }, - "node_modules/@start9labs/start-sdk/node_modules/shebang-command": { - "version": "2.0.0", - "inBundle": true, + "node_modules/path-expression-matcher": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.6.2.tgz", + "integrity": "sha512-enSlaiat05iasnzmgNxRj8reFdj3puY2QpNgP1aPIaVfT6nn9ICuPoFlKHk8EN22HcwewshO+mN2DGbkCEOtqQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/NaturalIntelligence" + } + ], "license": "MIT", - "dependencies": { - "shebang-regex": "^3.0.0" - }, "engines": { - "node": ">=8" + "node": ">=14.0.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/shebang-regex": { - "version": "3.0.0", - "inBundle": true, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/@start9labs/start-sdk/node_modules/strip-json-comments": { - "version": "3.1.1", - "inBundle": true, + "node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "license": "MIT", "engines": { - "node": ">=8" + "node": ">=12" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/@start9labs/start-sdk/node_modules/supports-color": { - "version": "7.2.0", - "inBundle": true, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, - "node_modules/@start9labs/start-sdk/node_modules/tinyglobby": { - "version": "0.2.17", - "inBundle": true, + "node_modules/prettier": { + "version": "3.8.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.3.tgz", + "integrity": "sha512-7igPTM53cGHMW8xWuVTydi2KO233VFiTNyF5hLJqpilHfmn8C8gPf+PS7dUT64YcXFbiMGZxS9pCSxL/Dxm/Jw==", "license": "MIT", - "dependencies": { - "fdir": "^6.5.0", - "picomatch": "^4.0.4" + "bin": { + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=12.0.0" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/SuperchupuDev" + "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/@start9labs/start-sdk/node_modules/ts-api-utils": { - "version": "2.5.0", - "inBundle": true, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "license": "MIT", "engines": { - "node": ">=18.12" - }, - "peerDependencies": { - "typescript": ">=4.8.4" + "node": ">=6" } }, - "node_modules/@start9labs/start-sdk/node_modules/type-check": { - "version": "0.4.0", - "inBundle": true, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", "license": "MIT", - "dependencies": { - "prelude-ls": "^1.2.1" - }, "engines": { - "node": ">= 0.8.0" + "node": ">=4" } }, - "node_modules/@start9labs/start-sdk/node_modules/typescript-eslint": { - "version": "8.61.0", - "inBundle": true, - "license": "MIT", - "dependencies": { - "@typescript-eslint/eslint-plugin": "8.61.0", - "@typescript-eslint/parser": "8.61.0", - "@typescript-eslint/typescript-estree": "8.61.0", - "@typescript-eslint/utils": "8.61.0" + "node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": "^18.18.0 || ^20.9.0 || >=21.1.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependencies": { - "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", - "typescript": ">=4.8.4 <6.1.0" - } - }, - "node_modules/@start9labs/start-sdk/node_modules/uri-js": { - "version": "4.4.1", - "inBundle": true, - "license": "BSD-2-Clause", - "dependencies": { - "punycode": "^2.1.0" + "node": ">=10" } }, - "node_modules/@start9labs/start-sdk/node_modules/which": { - "version": "2.0.2", - "inBundle": true, - "license": "ISC", + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" + "shebang-regex": "^3.0.0" }, "engines": { - "node": ">= 8" + "node": ">=8" } }, - "node_modules/@start9labs/start-sdk/node_modules/word-wrap": { - "version": "1.2.5", - "inBundle": true, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "license": "MIT", "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/@start9labs/start-sdk/node_modules/yocto-queue": { - "version": "0.1.0", - "inBundle": true, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "license": "MIT", "engines": { - "node": ">=10" + "node": ">=8" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@types/ini": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@types/ini/-/ini-4.1.1.tgz", - "integrity": "sha512-MIyNUZipBTbyUNnhvuXJTY7B6qNI78meck9Jbv3wk0OgNwRyOOVEKDutAkOs1snB/tx0FafyR6/SN4Ps0hZPeg==", - "license": "MIT" - }, - "node_modules/@types/node": { - "version": "22.20.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.4.tgz", - "integrity": "sha512-zJRE40jpHtKqE/C4fgHrAKQLJuSpzEnP9ff9Y7YtoR3Wd2pwqzlekDeEuUQXjRd+QCYnVnNwuJYmhdk9XV8gvA==", - "dev": true, - "license": "MIT", - "dependencies": { - "undici-types": "~6.21.0" - } - }, - "node_modules/@vercel/ncc": { - "version": "0.38.4", - "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.4.tgz", - "integrity": "sha512-8LwjnlP39s08C08J5NstzriPvW1SP8Zfpp1BvC2sI35kPeZnHfxVkCwu4/+Wodgnd60UtT1n8K8zw+Mp7J9JmQ==", - "dev": true, - "license": "MIT", - "bin": { - "ncc": "dist/ncc/cli.js" - } - }, - "node_modules/anynum": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/anynum/-/anynum-1.0.1.tgz", - "integrity": "sha512-N6//FLET/tXYNM/F6ABca1oH6fWB+KlTt909Le28WMDBk8oaT4vY17DCrwg2MvmuqUKt3Ni4N5dGJ/EoBgcO6A==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "license": "MIT" - }, - "node_modules/deep-equality-data-structures": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/deep-equality-data-structures/-/deep-equality-data-structures-2.0.0.tgz", - "integrity": "sha512-qgrUr7MKXq7VRN+WUpQ48QlXVGL0KdibAoTX8KRg18lgOgqbEKMAW1WZsVCtakY4+XX42pbAJzTz/DlXEFM2Fg==", - "license": "MIT", - "dependencies": { - "object-hash": "^3.0.0" - } - }, - "node_modules/fast-xml-builder": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/fast-xml-builder/-/fast-xml-builder-1.3.1.tgz", - "integrity": "sha512-pIM/1n3ntFXKYrUZwW7QCK0gAW7XY+wzj1YMIV3tLDvPj/V+zTGJK5e3/4WJfwj0qWw2ElNXiTixda/R+3YSug==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "license": "MIT", - "dependencies": { - "path-expression-matcher": "^1.6.2", - "xml-naming": "^0.3.0" - } - }, - "node_modules/fast-xml-parser": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-5.7.3.tgz", - "integrity": "sha512-C0AaNuC+mscy6vrAQKAc/rMq+zAPHodfHGZu4sGVehvAQt/JLG1O5zEcYcXSY5zSqr4YVgxsB+pHXTq0i7eDlg==", + "node_modules/strnum": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.5.1.tgz", + "integrity": "sha512-UM4nTLWzQiDBseVxUGxN0wJzIk0UU89Qi7pKXz9qISo+lhviJikTuikBsK/oFRlpvYHvSdz0TVoLyQ+sEpYwxA==", "funding": [ { "type": "github", @@ -1452,130 +1508,67 @@ ], "license": "MIT", "dependencies": { - "@nodable/entities": "^2.1.0", - "fast-xml-builder": "^1.1.7", - "path-expression-matcher": "^1.5.0", - "strnum": "^2.2.3" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "node_modules/ini": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ini/-/ini-5.0.0.tgz", - "integrity": "sha512-+N0ngpO3e7cRUWOJAS7qw0IZIVc6XPrW4MlFBdD066F2L4k1L6ker3hLqSq7iXxU5tgS4WGkIUElWn5vogAEnw==", - "license": "ISC", - "engines": { - "node": "^18.17.0 || >=20.5.0" + "anynum": "^1.0.1" } }, - "node_modules/isomorphic-fetch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-3.0.0.tgz", - "integrity": "sha512-qvUtwJ3j6qwsF3jLxkZ72qCgjMysPzDfeV240JHiGZsANBYd+EEuu35v7dfrJ9Up0Ak07D7GGSkGhCHTqg/5wA==", + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "license": "MIT", "dependencies": { - "node-fetch": "^2.6.1", - "whatwg-fetch": "^3.4.1" - } - }, - "node_modules/mime": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-4.1.0.tgz", - "integrity": "sha512-X5ju04+cAzsojXKes0B/S4tcYtFAJ6tTMuSPBEn9CPGlrWr8Fiw7qYeLT0XyH80HSoAoqWCaz+MWKh22P7G1cw==", - "funding": [ - "https://github.com/sponsors/broofa" - ], - "license": "MIT", - "bin": { - "mime": "bin/cli.js" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=16" + "node": ">=8" } }, - "node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", "license": "MIT", "dependencies": { - "whatwg-url": "^5.0.0" + "fdir": "^6.5.0", + "picomatch": "^4.0.4" }, "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" + "node": ">=12.0.0" }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/object-hash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", - "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", - "license": "MIT", - "engines": { - "node": ">= 6" + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" } }, - "node_modules/path-expression-matcher": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/path-expression-matcher/-/path-expression-matcher-1.6.2.tgz", - "integrity": "sha512-enSlaiat05iasnzmgNxRj8reFdj3puY2QpNgP1aPIaVfT6nn9ICuPoFlKHk8EN22HcwewshO+mN2DGbkCEOtqQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } + "node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" }, - "node_modules/prettier": { - "version": "3.9.9", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.9.tgz", - "integrity": "sha512-Z/CJHIkdujO/OtN7nXUii0Rf3VT5SRuhjBA82Xvu2XhBUgX3nhP67T0LHceBdQLex7OOFGTox+Q5Yg8Jk2Qivg==", - "dev": true, + "node_modules/ts-api-utils": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz", + "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==", "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, "engines": { - "node": ">=14" + "node": ">=18.12" }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" + "peerDependencies": { + "typescript": ">=4.8.4" } }, - "node_modules/strnum": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/strnum/-/strnum-2.4.2.tgz", - "integrity": "sha512-rDG3Ah4TV0k1hWvLSzkZtMmLN9+eS+h3knq4MP6A42Y3Yh5qGNnOUs1jJkoSr8FG5dsL28c7KgkIBzSEykqtuw==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", "license": "MIT", "dependencies": { - "anynum": "^1.0.1" + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" } }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "license": "MIT" - }, "node_modules/typescript": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", @@ -1589,13 +1582,44 @@ "node": ">=14.17" } }, + "node_modules/typescript-eslint": { + "version": "8.71.1", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.71.1.tgz", + "integrity": "sha512-oiNVPC3/NbV1FpaHU07l8O6ynqG9v4PAiW2WvTrAmZdR0f2HI/gE668ElMLCK7Xbsu5k2fK5C4fXNiq05j7/nQ==", + "license": "MIT", + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.71.1", + "@typescript-eslint/parser": "8.71.1", + "@typescript-eslint/typescript-estree": "8.71.1", + "@typescript-eslint/utils": "8.71.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", + "typescript": ">=4.8.4 <6.1.0" + } + }, "node_modules/undici-types": { "version": "6.21.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", - "dev": true, "license": "MIT" }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, "node_modules/webidl-conversions": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", @@ -1618,6 +1642,30 @@ "webidl-conversions": "^3.0.0" } }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/xml-naming": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/xml-naming/-/xml-naming-0.3.0.tgz", @@ -1648,6 +1696,18 @@ "url": "https://github.com/sponsors/eemeli" } }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/zod": { "version": "4.4.3", "resolved": "https://registry.npmjs.org/zod/-/zod-4.4.3.tgz", diff --git a/package.json b/package.json index ddc4af8..f491529 100644 --- a/package.json +++ b/package.json @@ -1,26 +1,9 @@ { "name": "drawio-startos", - "scripts": { - "build": "rm -rf ./javascript && ncc build startos/index.ts -o ./javascript", - "prettier": "prettier --write startos", - "check": "tsc --noEmit" - }, "dependencies": { - "@start9labs/start-sdk": "2.0.9" + "@start9labs/start-sdk": "3.0.4" }, "overrides": { "@start9labs/start-sdk": "$@start9labs/start-sdk" - }, - "devDependencies": { - "@types/node": "^22.19.0", - "@vercel/ncc": "^0.38.4", - "prettier": "^3.6.2", - "typescript": "^6.0.3" - }, - "prettier": { - "trailingComma": "all", - "tabWidth": 2, - "semi": false, - "singleQuote": true } } diff --git a/startos/actions/index.ts b/startos/actions/index.ts index 494c451..c6d70b2 100644 --- a/startos/actions/index.ts +++ b/startos/actions/index.ts @@ -1,4 +1,4 @@ +import { primaryUrl } from '../primaryUrl' import { sdk } from '../sdk' -import { setPrimaryUrl } from './setPrimaryUrl' -export const actions = sdk.Actions.of().addAction(setPrimaryUrl) +export const actions = sdk.Actions.of().addAction(primaryUrl.action) diff --git a/startos/actions/setPrimaryUrl.ts b/startos/actions/setPrimaryUrl.ts deleted file mode 100644 index c8c32f5..0000000 --- a/startos/actions/setPrimaryUrl.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { storeJson } from '../fileModels/store.json' -import { i18n } from '../i18n' -import { sdk } from '../sdk' -import { uiUrls } from '../utils' - -const { InputSpec, Value } = sdk - -const inputSpec = InputSpec.of({ - primaryUrl: Value.dynamicSelect(async ({ effects }) => { - const { all, preferred } = await uiUrls(effects).once() - - return { - name: i18n('Primary URL'), - description: i18n( - 'Pick an address that everyone who opens your exported files and links can reach.', - ), - values: Object.fromEntries(all.map((url) => [url, url])), - default: preferred ?? '', - } - }), -}) - -export const setPrimaryUrl = sdk.Action.withInput( - 'set-primary-url', - - async ({ effects }) => ({ - name: i18n('Set Primary URL'), - description: i18n( - "Choose which of draw.io's addresses to write into HTML exports, embed code and share links. A running draw.io restarts to apply it.", - ), - warning: null, - allowedStatuses: 'any', - group: null, - visibility: 'enabled', - }), - - inputSpec, - - async ({ effects }) => { - const stored = await storeJson.read((s) => s.primaryUrl).once() - const { all } = await uiUrls(effects).once() - return { primaryUrl: stored && all.includes(stored) ? stored : undefined } - }, - - async ({ effects, input }) => - storeJson.merge(effects, { primaryUrl: input.primaryUrl }), -) diff --git a/startos/dependencies.ts b/startos/dependencies.ts index 7221c4b..b97fd7a 100644 --- a/startos/dependencies.ts +++ b/startos/dependencies.ts @@ -1,5 +1,3 @@ import { sdk } from './sdk' -export const setDependencies = sdk.setupDependencies( - async ({ effects }) => ({}), -) +export const dependencies = sdk.Dependencies.of() diff --git a/startos/fileModels/store.json.ts b/startos/fileModels/store.json.ts index be2fb6c..1d2a112 100644 --- a/startos/fileModels/store.json.ts +++ b/startos/fileModels/store.json.ts @@ -1,11 +1,9 @@ import { FileHelper, z } from '@start9labs/start-sdk' import { sdk } from '../sdk' -const shape = z - .object({ - primaryUrl: z.string().catch(''), - }) - .strip() +const shape = z.object({ + primaryUrl: z.string().catch(''), +}) export const storeJson = FileHelper.json( { base: sdk.volumes.startos, subpath: 'store.json' }, diff --git a/startos/i18n/dictionaries/default.ts b/startos/i18n/dictionaries/default.ts index 48f9935..44d83f9 100644 --- a/startos/i18n/dictionaries/default.ts +++ b/startos/i18n/dictionaries/default.ts @@ -11,14 +11,14 @@ const dict = { 'Web UI': 4, 'The draw.io diagram editor': 5, - // actions/setPrimaryUrl.ts + // primaryUrl.ts 'Primary URL': 6, 'Pick an address that everyone who opens your exported files and links can reach.': 7, 'Set Primary URL': 8, "Choose which of draw.io's addresses to write into HTML exports, embed code and share links. A running draw.io restarts to apply it.": 9, - // init/watchPrimaryUrl.ts - 'The address used for exported files and share links is no longer available. Choose a new primary URL.': 10, + // init/primaryUrlTask.ts + 'Choose the address draw.io writes into share links, HTML exports and embed code.': 10, } as const /** diff --git a/startos/i18n/dictionaries/translations.ts b/startos/i18n/dictionaries/translations.ts index 15d7e54..ee905f9 100644 --- a/startos/i18n/dictionaries/translations.ts +++ b/startos/i18n/dictionaries/translations.ts @@ -12,7 +12,7 @@ export default { 7: 'Elige una dirección a la que puedan llegar todas las personas que abran tus archivos exportados y enlaces.', 8: 'Establecer URL principal', 9: 'Elige cuál de las direcciones de draw.io se escribe en las exportaciones HTML, el código de inserción y los enlaces compartidos. Si draw.io está en marcha, se reinicia para aplicarla.', - 10: 'La dirección usada para los archivos exportados y los enlaces compartidos ya no está disponible. Elige una nueva URL principal.', + 10: 'Elige la dirección que draw.io escribe en los enlaces compartidos, las exportaciones HTML y el código de inserción.', }, de_DE: { 0: 'Starte draw.io!', @@ -25,7 +25,7 @@ export default { 7: 'Wähle eine Adresse, die alle erreichen, die deine exportierten Dateien und Links öffnen.', 8: 'Primäre URL festlegen', 9: 'Wähle, welche Adresse von draw.io in HTML-Exporte, Einbettungscode und geteilte Links geschrieben wird. Läuft draw.io, startet es neu, um sie zu übernehmen.', - 10: 'Die Adresse für exportierte Dateien und geteilte Links ist nicht mehr verfügbar. Wähle eine neue primäre URL.', + 10: 'Wähle die Adresse, die draw.io in geteilte Links, HTML-Exporte und Einbettungscode schreibt.', }, pl_PL: { 0: 'Uruchamianie draw.io!', @@ -38,7 +38,7 @@ export default { 7: 'Wybierz adres, do którego dotrze każdy, kto otworzy Twoje wyeksportowane pliki i linki.', 8: 'Ustaw główny adres URL', 9: 'Wybierz, który z adresów draw.io trafia do eksportów HTML, kodu osadzania i udostępnianych linków. Uruchomione draw.io uruchamia się ponownie, aby go zastosować.', - 10: 'Adres używany w wyeksportowanych plikach i udostępnianych linkach nie jest już dostępny. Wybierz nowy główny adres URL.', + 10: 'Wybierz adres, który draw.io wpisuje w udostępniane linki, eksporty HTML i kod osadzania.', }, fr_FR: { 0: 'Démarrage de draw.io !', @@ -51,6 +51,6 @@ export default { 7: 'Choisissez une adresse que toute personne ouvrant vos fichiers exportés et vos liens peut atteindre.', 8: "Définir l'URL principale", 9: "Choisissez laquelle des adresses de draw.io est inscrite dans les exports HTML, le code d'intégration et les liens de partage. S'il est en marche, draw.io redémarre pour l'appliquer.", - 10: "L'adresse utilisée pour les fichiers exportés et les liens de partage n'est plus disponible. Choisissez une nouvelle URL principale.", + 10: "Choisissez l'adresse que draw.io inscrit dans les liens de partage, les exports HTML et le code d'intégration.", }, } satisfies Record diff --git a/startos/index.ts b/startos/index.ts index 7af589b..e882576 100644 --- a/startos/index.ts +++ b/startos/index.ts @@ -8,4 +8,5 @@ export { actions } from './actions' import { buildManifest } from '@start9labs/start-sdk' import { manifest as sdkManifest } from './manifest' import { versionGraph } from './versions' -export const manifest = buildManifest(versionGraph, sdkManifest) +import { dependencies } from './dependencies' +export const manifest = buildManifest(versionGraph, sdkManifest, dependencies) diff --git a/startos/init/index.ts b/startos/init/index.ts index 08a518f..8bbef81 100644 --- a/startos/init/index.ts +++ b/startos/init/index.ts @@ -1,18 +1,18 @@ import { sdk } from '../sdk' -import { setDependencies } from '../dependencies' +import { dependencies } from '../dependencies' import { setInterfaces } from '../interfaces' import { versionGraph } from '../versions' import { actions } from '../actions' import { restoreInit } from '../backups' -import { watchPrimaryUrl } from './watchPrimaryUrl' +import { primaryUrlTask } from './primaryUrlTask' export const init = sdk.setupInit( restoreInit, versionGraph, setInterfaces, - setDependencies, actions, - watchPrimaryUrl, + primaryUrlTask, + dependencies, ) export const uninit = sdk.setupUninit(versionGraph) diff --git a/startos/init/primaryUrlTask.ts b/startos/init/primaryUrlTask.ts new file mode 100644 index 0000000..d0965f0 --- /dev/null +++ b/startos/init/primaryUrlTask.ts @@ -0,0 +1,8 @@ +import { i18n } from '../i18n' +import { primaryUrl } from '../primaryUrl' + +export const primaryUrlTask = primaryUrl.setupTask('important', { + reason: i18n( + 'Choose the address draw.io writes into share links, HTML exports and embed code.', + ), +}) diff --git a/startos/init/watchPrimaryUrl.ts b/startos/init/watchPrimaryUrl.ts deleted file mode 100644 index a0dd895..0000000 --- a/startos/init/watchPrimaryUrl.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { setPrimaryUrl } from '../actions/setPrimaryUrl' -import { storeJson } from '../fileModels/store.json' -import { i18n } from '../i18n' -import { manifest } from '../manifest' -import { sdk } from '../sdk' -import { uiUrls } from '../utils' - -// The SDK's default replay key for createOwnTask. -const primaryUrlTask = `${manifest.id}:${setPrimaryUrl.id}` - -export const watchPrimaryUrl = sdk.setupOnInit(async (effects) => { - const urls = await uiUrls(effects).const() - const primaryUrl = await storeJson.read((s) => s.primaryUrl).const(effects) - - if (!primaryUrl) { - if (urls.preferred) { - await storeJson.merge( - effects, - { primaryUrl: urls.preferred }, - { allowWriteAfterConst: true }, - ) - } - } else if (urls.all.includes(primaryUrl)) { - await sdk.action.clearTask(effects, primaryUrlTask) - } else { - await sdk.action.createOwnTask(effects, setPrimaryUrl, 'important', { - reason: i18n( - 'The address used for exported files and share links is no longer available. Choose a new primary URL.', - ), - }) - } -}) diff --git a/startos/main.ts b/startos/main.ts index fcb655d..4fb4cb6 100644 --- a/startos/main.ts +++ b/startos/main.ts @@ -1,20 +1,18 @@ -import { storeJson } from './fileModels/store.json' import { i18n } from './i18n' +import { primaryUrl } from './primaryUrl' import { sdk } from './sdk' import { uiPort } from './utils' export const main = sdk.setupMain(async ({ effects }) => { console.info(i18n('Starting draw.io!')) - const primaryUrl = ( - await storeJson.read((s) => s.primaryUrl).const(effects) - )?.replace(/\/+$/, '') + const baseUrl = await primaryUrl.bestUsable(effects).const() // Without it the entrypoint derives an absolute server URL from DRAWIO_BASE_URL. const env: Record = { DRAWIO_SERVER_URL: '/' } - if (primaryUrl) { - env.DRAWIO_BASE_URL = primaryUrl - env.DRAWIO_LIGHTBOX_URL = primaryUrl + if (baseUrl) { + env.DRAWIO_BASE_URL = baseUrl + env.DRAWIO_LIGHTBOX_URL = baseUrl } return sdk.Daemons.of(effects).addDaemon('primary', { diff --git a/startos/manifest/index.ts b/startos/manifest/index.ts index 50ba1ad..46a122c 100644 --- a/startos/manifest/index.ts +++ b/startos/manifest/index.ts @@ -13,9 +13,8 @@ export const manifest = setupManifest({ volumes: ['startos'], images: { drawio: { - source: { dockerTag: 'jgraph/drawio:31.6.1' }, + source: { dockerTag: 'jgraph/drawio:32.4.1' }, arch: ['x86_64', 'aarch64'], }, }, - dependencies: {}, }) diff --git a/startos/primaryUrl.ts b/startos/primaryUrl.ts new file mode 100644 index 0000000..1c97d7d --- /dev/null +++ b/startos/primaryUrl.ts @@ -0,0 +1,28 @@ +import { storeJson } from './fileModels/store.json' +import { i18n } from './i18n' +import { sdk } from './sdk' +import { uiHostId, uiInterfaceId } from './utils' + +export const primaryUrl = sdk.setupPrimaryUrl({ + id: 'set-primary-url', + hostId: uiHostId, + interfaceId: uiInterfaceId, + metadata: { + name: i18n('Set Primary URL'), + description: i18n( + "Choose which of draw.io's addresses to write into HTML exports, embed code and share links. A running draw.io restarts to apply it.", + ), + warning: null, + allowedStatuses: 'any', + group: null, + visibility: 'enabled', + }, + field: { + name: i18n('Primary URL'), + description: i18n( + 'Pick an address that everyone who opens your exported files and links can reach.', + ), + }, + get: storeJson.read((s) => s.primaryUrl), + set: (effects, url) => storeJson.merge(effects, { primaryUrl: url }), +}) diff --git a/startos/utils.ts b/startos/utils.ts index efa9642..82643b5 100644 --- a/startos/utils.ts +++ b/startos/utils.ts @@ -1,18 +1,4 @@ -import { T } from '@start9labs/start-sdk' -import { sdk } from './sdk' - export const uiPort = 8080 export const uiHostId = 'ui-multi' export const uiInterfaceId = 'ui' - -export const uiUrls = (effects: T.Effects) => - sdk.host.getOwn(effects, uiHostId, (host) => { - const ui = Object.values(host?.bindings ?? {}) - .flatMap((b) => Object.values(b.interfaces)) - .find((i) => i.id === uiInterfaceId) - const all = ui?.addressInfo.nonLocal.format() ?? [] - const mdns = - ui?.addressInfo.nonLocal.filter({ kind: 'mdns' }).format() ?? [] - return { all, preferred: mdns[0] ?? all[0] } - }) diff --git a/startos/versions/current.ts b/startos/versions/current.ts index 1f0dcb2..c87d6e6 100644 --- a/startos/versions/current.ts +++ b/startos/versions/current.ts @@ -1,18 +1,18 @@ import { IMPOSSIBLE, VersionInfo } from '@start9labs/start-sdk' export const current = VersionInfo.of({ - version: '31.6.1:0', + version: '32.4.1:0', releaseNotes: { en_US: - 'Updated draw.io to 31.6.1. Full list of changes: https://github.com/jgraph/drawio/blob/v31.6.1/ChangeLog', + "Updated draw.io to 32.4.1. While the primary URL is not one of draw.io's addresses, exports and share links use its public domain, or its .local address if it has none, and a task asks you to choose another. Full list of changes: https://github.com/jgraph/drawio/blob/v32.4.1/ChangeLog", es_ES: - 'draw.io actualizado a 31.6.1. Lista completa de cambios: https://github.com/jgraph/drawio/blob/v31.6.1/ChangeLog', + 'draw.io actualizado a 32.4.1. Mientras la URL principal no sea una de las direcciones de draw.io, las exportaciones y los enlaces compartidos usan su dominio público, o su dirección .local si no tiene ninguno, y una tarea te pide elegir otra. Lista completa de cambios: https://github.com/jgraph/drawio/blob/v32.4.1/ChangeLog', de_DE: - 'draw.io auf 31.6.1 aktualisiert. Vollständige Liste der Änderungen: https://github.com/jgraph/drawio/blob/v31.6.1/ChangeLog', + 'draw.io auf 32.4.1 aktualisiert. Solange die primäre URL keine Adresse von draw.io ist, verwenden Exporte und geteilte Links seine öffentliche Domain oder, wenn es keine hat, seine .local-Adresse, und eine Aufgabe fordert dich auf, eine andere zu wählen. Vollständige Liste der Änderungen: https://github.com/jgraph/drawio/blob/v32.4.1/ChangeLog', pl_PL: - 'Zaktualizowano draw.io do 31.6.1. Pełna lista zmian: https://github.com/jgraph/drawio/blob/v31.6.1/ChangeLog', + 'Zaktualizowano draw.io do 32.4.1. Dopóki główny adres URL nie jest jednym z adresów draw.io, eksporty i udostępniane linki używają jego domeny publicznej, a jeśli jej nie ma, adresu .local, a zadanie prosi o wybranie innego. Pełna lista zmian: https://github.com/jgraph/drawio/blob/v32.4.1/ChangeLog', fr_FR: - 'draw.io mis à jour vers la version 31.6.1. Liste complète des changements : https://github.com/jgraph/drawio/blob/v31.6.1/ChangeLog', + "draw.io mis à jour vers la version 32.4.1. Tant que l'URL principale n'est pas l'une des adresses de draw.io, les exports et les liens de partage utilisent son domaine public, ou son adresse .local s'il n'en a pas, et une tâche vous demande d'en choisir une autre. Liste complète des changements : https://github.com/jgraph/drawio/blob/v32.4.1/ChangeLog", }, migrations: { up: async ({ effects }) => {},