Fix bin/publish: copy docs.dist from project root

Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-21 02:08:33 +00:00
commit f6fac6c4bc
79758 changed files with 10547827 additions and 0 deletions

224
vendor/spatie/ignition/node_modules/asyncro/README.md generated vendored Executable file
View File

@@ -0,0 +1,224 @@
# `asyncro` [![NPM](https://img.shields.io/npm/v/asyncro.svg?style=flat)](https://www.npmjs.org/package/asyncro) [![travis-ci](https://travis-ci.org/developit/asyncro.svg?branch=master)](https://travis-ci.org/developit/asyncro)
The same `map()`, `reduce()` & `filter()` you know and love, but with async iterator functions!
Do `fetch()` networking in loops, resolve Promises, anything async goes. Performance-friendly _by default_.
**Here's what it looks like:**
<img src="https://i.imgur.com/GcykVyN.png" width="404" alt="Asyncro Example">
* * *
## What's in the Box
<img src="https://i.imgur.com/yiiq6Gx.png" width="275" alt="Asyncro Example 2">
* * *
## Installation
```sh
npm install --save asyncro
```
## Import and Usage Example
```js
import { map } from 'asyncro';
async function example() {
return await map(
['foo', 'bar', 'baz'],
async name => fetch('./'+name)
)
}
```
## API
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
### reduce
Invoke an async reducer function on each item in the given Array,
where the reducer transforms an accumulator value based on each item iterated over.
**Note:** because `reduce()` is order-sensitive, iteration is sequential.
> This is an asynchronous version of `Array.prototype.reduce()`
**Parameters**
- `array` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** The Array to reduce
- `reducer` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Async function, gets passed `(accumulator, value, index, array)` and returns a new value for `accumulator`
- `accumulator` **\[any]** Optional initial accumulator value
**Examples**
```javascript
await reduce(
['/foo', '/bar', '/baz'],
async (accumulator, value) => {
accumulator[v] = await fetch(value);
return accumulator;
},
{}
);
```
Returns **any** final `accumulator` value
### map
Invoke an async transform function on each item in the given Array **in parallel**,
returning the resulting Array of mapped/transformed items.
> This is an asynchronous, parallelized version of `Array.prototype.map()`.
**Parameters**
- `array` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** The Array to map over
- `mapper` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Async function, gets passed `(value, index, array)`, returns the new value.
**Examples**
```javascript
await map(
['foo', 'baz'],
async v => await fetch(v)
)
```
Returns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** resulting mapped/transformed values.
### filter
Invoke an async filter function on each item in the given Array **in parallel**,
returning an Array of values for which the filter function returned a truthy value.
> This is an asynchronous, parallelized version of `Array.prototype.filter()`.
**Parameters**
- `array` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** The Array to filter
- `filterer` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Async function. Gets passed `(value, index, array)`, returns true to keep the value in the resulting filtered Array.
**Examples**
```javascript
await filter(
['foo', 'baz'],
async v => (await fetch(v)).ok
)
```
Returns **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** resulting filtered values
### find
Invoke an async function on each item in the given Array **in parallel**,
returning the first element predicate returns truthy for.
> This is an asynchronous, parallelized version of `Array.prototype.find()`.
**Parameters**
- `array` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** The Array to find
- `predicate` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Async function. Gets passed `(value, index, array)`, returns true to be the find result.
**Examples**
```javascript
await find(
['foo', 'baz', 'root'],
async v => (await fetch(v)).name === 'baz'
)
```
Returns **any** resulting find value
### every
Checks if predicate returns truthy for **all** elements of collection **in parallel**.
> This is an asynchronous, parallelized version of `Array.prototype.every()`.
**Parameters**
- `array` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** The Array to iterate over.
- `predicate` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Async function. Gets passed `(value, index, array)`, The function invoked per iteration.
**Examples**
```javascript
await every(
[2, 3],
async v => (await fetch(v)).ok
)
```
Returns **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Returns true if **all** element passes the predicate check, else false.
### some
Checks if predicate returns truthy for **any** element of collection **in parallel**.
> This is an asynchronous, parallelized version of `Array.prototype.some()`.
**Parameters**
- `array` **[Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)** The Array to iterate over.
- `filterer` **[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)** Async function. Gets passed `(value, index, array)`, The function invoked per iteration.
**Examples**
```javascript
await some(
['foo', 'baz'],
async v => (await fetch(v)).ok
)
```
Returns **[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** Returns true if **any** element passes the predicate check, else false.
### parallel
Invoke all async functions in an Array or Object **in parallel**, returning the result.
**Parameters**
- `list` **([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)> | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)&lt;[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)>)** Array/Object with values that are async functions to invoke.
**Examples**
```javascript
await parallel([
async () => await fetch('foo'),
async () => await fetch('baz')
])
```
Returns **([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) \| [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object))** same structure as `list` input, but with values now resolved.
### series
Invoke all async functions in an Array or Object **sequentially**, returning the result.
**Parameters**
- `list` **([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array)&lt;[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)> | [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object)&lt;[Function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function)>)** Array/Object with values that are async functions to invoke.
**Examples**
```javascript
await series([
async () => await fetch('foo'),
async () => await fetch('baz')
])
```
Returns **([Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array) \| [Object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object))** same structure as `list` input, but with values now resolved.
## License
[MIT](https://oss.ninja/mit/developit)

View File

@@ -0,0 +1,2 @@
function n(n,r){return Promise.all(n.map(r))}function r(n){var r=Array.isArray(n)?[]:{};for(var t in n)n.hasOwnProperty(t)&&(r[t]=n[t]());return r}function t(n,r){return new Promise(function(t,e){return r().then(function(r){try{return n.push(r),t(n)}catch(n){return e(n)}}.bind(this),e)}.bind(this))}function e(r){var t=this;return function(e,i){return new Promise(function(t,u){var o;return n(e,i).then(function(n){try{return o=n,t(e[r](function(n,r){return o[r]}))}catch(n){return u(n)}}.bind(this),u)}.bind(t))}}function i(n,r,t){return new Promise(function(e,i){var u,o=0;return(u=function(n){for(;n;){if(n.then)return void n.then(u,i);try{if(n.pop){if(n.length)return n.pop()?f.call(this):n;n=c}else n=n.call(this)}catch(n){return i(n)}}}.bind(this))(s);function s(){return o<n.length?r(t,n[o],o,n).then(function(n){try{return t=n,c}catch(n){return i(n)}}.bind(this),i):[1]}function c(){return o++,s}function f(){return e(t)}}.bind(this))}var u=e("filter"),o=e("find"),s=e("every"),c=e("some");function f(n){return new Promise(function(t,e){return Promise.all(r(n)).then(t,e)}.bind(this))}function h(n){return new Promise(function(r,e){return r(i(n,t,[]))}.bind(this))}exports.reduce=i,exports.map=n,exports.filter=u,exports.find=o,exports.every=s,exports.some=c,exports.parallel=f,exports.series=h;
//# sourceMappingURL=asyncro.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"asyncro.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
function n(n,r){return Promise.all(n.map(r))}function r(n){var r=Array.isArray(n)?[]:{};for(var t in n)n.hasOwnProperty(t)&&(r[t]=n[t]());return r}function t(n,r){return new Promise(function(t,i){return r().then(function(r){try{return n.push(r),t(n)}catch(n){return i(n)}}.bind(this),i)}.bind(this))}function i(r){var t=this;return function(i,e){return new Promise(function(t,u){var o;return n(i,e).then(function(n){try{return o=n,t(i[r](function(n,r){return o[r]}))}catch(n){return u(n)}}.bind(this),u)}.bind(t))}}function e(n,r,t){return new Promise(function(i,e){{var u,o=0;return(u=function(n){for(;n;){if(n.then)return void n.then(u,e);try{if(n.pop){if(n.length)return n.pop()?h.call(this):n;n=f}else n=n.call(this)}catch(n){return e(n)}}}.bind(this))(c);function c(){return o<n.length?r(t,n[o],o,n).then(function(n){try{return t=n,f}catch(n){return e(n)}}.bind(this),e):[1]}function f(){return o++,c}}function h(){return i(t)}}.bind(this))}var u=i("filter"),o=i("find"),c=i("every"),f=i("some");function h(n){return new Promise(function(t,i){return Promise.all(r(n)).then(t,i)}.bind(this))}function s(n){return new Promise(function(r,i){return r(e(n,t,[]))}.bind(this))}export{e as reduce,n as map,u as filter,o as find,c as every,f as some,h as parallel,s as series};
//# sourceMappingURL=asyncro.m.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"asyncro.m.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View File

@@ -0,0 +1,2 @@
!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.asyncro={})}(this,function(n){function r(n,r){return Promise.all(n.map(r))}function t(n,r){return new Promise(function(t,e){return r().then(function(r){try{return n.push(r),t(n)}catch(n){return e(n)}}.bind(this),e)}.bind(this))}function e(n){var t=this;return function(e,i){return new Promise(function(t,u){var o;return r(e,i).then(function(r){try{return o=r,t(e[n](function(n,r){return o[r]}))}catch(n){return u(n)}}.bind(this),u)}.bind(t))}}function i(n,r,t){return new Promise(function(e,i){var u,o=0;return(u=function(n){for(;n;){if(n.then)return void n.then(u,i);try{if(n.pop){if(n.length)return n.pop()?s.call(this):n;n=c}else n=n.call(this)}catch(n){return i(n)}}}.bind(this))(f);function f(){return o<n.length?r(t,n[o],o,n).then(function(n){try{return t=n,c}catch(n){return i(n)}}.bind(this),i):[1]}function c(){return o++,f}function s(){return e(t)}}.bind(this))}var u=e("filter"),o=e("find"),f=e("every"),c=e("some");n.reduce=i,n.map=r,n.filter=u,n.find=o,n.every=f,n.some=c,n.parallel=function(n){return new Promise(function(r,t){return Promise.all(function(n){var r=Array.isArray(n)?[]:{};for(var t in n)n.hasOwnProperty(t)&&(r[t]=n[t]());return r}(n)).then(r,t)}.bind(this))},n.series=function(n){return new Promise(function(r,e){return r(i(n,t,[]))}.bind(this))}});
//# sourceMappingURL=asyncro.umd.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"asyncro.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

150
vendor/spatie/ignition/node_modules/asyncro/src/index.js generated vendored Executable file
View File

@@ -0,0 +1,150 @@
import { resolve, pushReducer, map, baseMap } from './util';
/** Invoke an async reducer function on each item in the given Array,
* where the reducer transforms an accumulator value based on each item iterated over.
* **Note:** because `reduce()` is order-sensitive, iteration is sequential.
*
* > This is an asynchronous version of `Array.prototype.reduce()`
*
* @param {Array} array The Array to reduce
* @param {Function} reducer Async function, gets passed `(accumulator, value, index, array)` and returns a new value for `accumulator`
* @param {*} [accumulator] Optional initial accumulator value
* @returns final `accumulator` value
*
* @example
* await reduce(
* ['/foo', '/bar', '/baz'],
* async (accumulator, value) => {
* accumulator[v] = await fetch(value);
* return accumulator;
* },
* {}
* );
*/
export async function reduce(array, reducer, accumulator) {
for (let i=0; i<array.length; i++) {
accumulator = await reducer(accumulator, array[i], i, array);
}
return accumulator;
}
/** Invoke an async transform function on each item in the given Array **in parallel**,
* returning the resulting Array of mapped/transformed items.
*
* > This is an asynchronous, parallelized version of `Array.prototype.map()`.
*
* @function
* @name map
* @param {Array} array The Array to map over
* @param {Function} mapper Async function, gets passed `(value, index, array)`, returns the new value.
* @returns {Array} resulting mapped/transformed values.
*
* @example
* await map(
* ['foo', 'baz'],
* async v => await fetch(v)
* )
*/
export { map };
/** Invoke an async filter function on each item in the given Array **in parallel**,
* returning an Array of values for which the filter function returned a truthy value.
*
* > This is an asynchronous, parallelized version of `Array.prototype.filter()`.
*
* @param {Array} array The Array to filter
* @param {Function} filterer Async function. Gets passed `(value, index, array)`, returns true to keep the value in the resulting filtered Array.
* @returns {Array} resulting filtered values
*
* @example
* await filter(
* ['foo', 'baz'],
* async v => (await fetch(v)).ok
* )
*/
export const filter = baseMap('filter');
/** Invoke an async function on each item in the given Array **in parallel**,
* returning the first element predicate returns truthy for.
*
* > This is an asynchronous, parallelized version of `Array.prototype.find()`.
*
* @param {Array} array The Array to find
* @param {Function} predicate Async function. Gets passed `(value, index, array)`, returns true to be the find result.
* @returns {*} resulting find value
*
* @example
* await find(
* ['foo', 'baz', 'root'],
* async v => (await fetch(v)).name === 'baz'
* )
*/
export const find = baseMap('find');
/** Checks if predicate returns truthy for **all** elements of collection **in parallel**.
*
* > This is an asynchronous, parallelized version of `Array.prototype.every()`.
*
* @param {Array} array The Array to iterate over.
* @param {Function} predicate Async function. Gets passed `(value, index, array)`, The function invoked per iteration.
* @returns {Boolean} Returns true if **all** element passes the predicate check, else false.
*
* @example
* await every(
* [2, 3],
* async v => (await fetch(v)).ok
* )
*/
export const every = baseMap('every');
/** Checks if predicate returns truthy for **any** element of collection **in parallel**.
*
* > This is an asynchronous, parallelized version of `Array.prototype.some()`.
*
* @param {Array} array The Array to iterate over.
* @param {Function} filterer Async function. Gets passed `(value, index, array)`, The function invoked per iteration.
* @returns {Boolean} Returns true if **any** element passes the predicate check, else false.
*
* @example
* await some(
* ['foo', 'baz'],
* async v => (await fetch(v)).ok
* )
*/
export const some = baseMap('some');
/** Invoke all async functions in an Array or Object **in parallel**, returning the result.
* @param {Array<Function>|Object<Function>} list Array/Object with values that are async functions to invoke.
* @returns {Array|Object} same structure as `list` input, but with values now resolved.
*
* @example
* await parallel([
* async () => await fetch('foo'),
* async () => await fetch('baz')
* ])
*/
export async function parallel(list) {
return await Promise.all(resolve(list));
}
/** Invoke all async functions in an Array or Object **sequentially**, returning the result.
* @param {Array<Function>|Object<Function>} list Array/Object with values that are async functions to invoke.
* @returns {Array|Object} same structure as `list` input, but with values now resolved.
*
* @example
* await series([
* async () => await fetch('foo'),
* async () => await fetch('baz')
* ])
*/
export async function series(list) {
return reduce(list, pushReducer, []);
}

35
vendor/spatie/ignition/node_modules/asyncro/src/util.js generated vendored Executable file
View File

@@ -0,0 +1,35 @@
/** @private */
export function map(array, mapper) {
return Promise.all(array.map(mapper));
}
/** Invoke a list (object or array) of functions, returning their results in the same structure.
* @private
*/
export function resolve(list) {
let out = Array.isArray(list) ? [] : {};
for (let i in list) if (list.hasOwnProperty(i)) out[i] = list[i]();
return out;
}
/** reduce() callback that pushes values into an Array accumulator
* @private
*/
export async function pushReducer(acc, v) {
acc.push(await v());
return acc;
}
/**
* Base `map` to invoke `Array` operation **in parallel**.
* @private
* @param {String} operation The operation name of `Array` to be invoked.
* @return {Array} resulting mapped/transformed values.
*/
export function baseMap(operation) {
return async (array, predicate) => {
let mapped = await map(array, predicate);
return array[operation]( (v, i) => mapped[i] );
};
}