create-falkara 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/Entrypoint.mjs +63 -77
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -12,10 +12,10 @@ npm create falkara
|
|
|
12
12
|
|
|
13
13
|
## Requirements
|
|
14
14
|
|
|
15
|
-
| Requirement | Supported
|
|
16
|
-
| ---------------- |
|
|
17
|
-
| Operating system | macOS, Linux, or Windows
|
|
18
|
-
| Node.js | `^24.
|
|
15
|
+
| Requirement | Supported |
|
|
16
|
+
| ---------------- | -------------------------------------- |
|
|
17
|
+
| Operating system | macOS, Linux, or Windows |
|
|
18
|
+
| Node.js | `^22.11.0 \|\| ^24.11.0 \|\| ^26.13.0` |
|
|
19
19
|
|
|
20
20
|
## Links
|
|
21
21
|
|
package/dist/Entrypoint.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Pipeable.js
|
|
3
3
|
/**
|
|
4
4
|
* The `Pipeable` module defines the shared interface and implementation helpers
|
|
5
5
|
* for values that support Effect-style method chaining with `.pipe(...)`.
|
|
@@ -71,8 +71,7 @@ const pipeArguments = (self, args) => {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
-
|
|
75
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Function.js
|
|
74
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Function.js
|
|
76
75
|
/**
|
|
77
76
|
* Creates a function that can be called in data-first style or data-last
|
|
78
77
|
* (`pipe`-friendly) style.
|
|
@@ -290,8 +289,7 @@ const constUndefined = /*#__PURE__*/ constant(void 0);
|
|
|
290
289
|
* @since 2.0.0
|
|
291
290
|
*/
|
|
292
291
|
const constVoid = constUndefined;
|
|
293
|
-
|
|
294
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/internal/equal.js
|
|
292
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/internal/equal.js
|
|
295
293
|
/** @internal */
|
|
296
294
|
const getAllObjectKeys = (obj) => {
|
|
297
295
|
const keys = new Set(Reflect.ownKeys(obj));
|
|
@@ -325,8 +323,7 @@ const bufferBytes = (buffer) => {
|
|
|
325
323
|
return;
|
|
326
324
|
}
|
|
327
325
|
};
|
|
328
|
-
|
|
329
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/internal/hash.js
|
|
326
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/internal/hash.js
|
|
330
327
|
/**
|
|
331
328
|
* Back-edge count used to avoid caching entry-point-dependent hashes.
|
|
332
329
|
*
|
|
@@ -337,8 +334,7 @@ let backEdges = 0;
|
|
|
337
334
|
const addBackEdge = () => {
|
|
338
335
|
backEdges++;
|
|
339
336
|
};
|
|
340
|
-
|
|
341
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Predicate.js
|
|
337
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Predicate.js
|
|
342
338
|
/**
|
|
343
339
|
* Defines runtime checks for values.
|
|
344
340
|
*
|
|
@@ -479,8 +475,7 @@ function isObjectKeyword(input) {
|
|
|
479
475
|
* @since 2.0.0
|
|
480
476
|
*/
|
|
481
477
|
const hasProperty = /*#__PURE__*/ dual(2, (self, property) => isObjectKeyword(self) && property in self);
|
|
482
|
-
|
|
483
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Hash.js
|
|
478
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Hash.js
|
|
484
479
|
/**
|
|
485
480
|
* Computes Effect hash values and defines the interface for objects that want
|
|
486
481
|
* to provide their own hash implementation. Hashes are small numeric
|
|
@@ -878,8 +873,7 @@ const hashSet = /*#__PURE__*/ unordered(setSeed, (element) => combine(setSeed, h
|
|
|
878
873
|
const randomHashCache = /*#__PURE__*/ new WeakMap();
|
|
879
874
|
const hashCache = /*#__PURE__*/ new WeakMap();
|
|
880
875
|
const visitedObjects = /*#__PURE__*/ new WeakSet();
|
|
881
|
-
|
|
882
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Equal.js
|
|
876
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Equal.js
|
|
883
877
|
/**
|
|
884
878
|
* Defines the unique string identifier for the `Equal` interface.
|
|
885
879
|
*
|
|
@@ -1074,8 +1068,7 @@ const equalEntries = (self, that) => compareBoth(self[0], that[0]) && compareBot
|
|
|
1074
1068
|
* @since 2.0.0
|
|
1075
1069
|
*/
|
|
1076
1070
|
const isEqual = (u) => hasProperty(u, symbol);
|
|
1077
|
-
|
|
1078
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Redactable.js
|
|
1071
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Redactable.js
|
|
1079
1072
|
/**
|
|
1080
1073
|
* Defines the symbol used to identify objects that implement the {@link Redactable}
|
|
1081
1074
|
* protocol.
|
|
@@ -1197,8 +1190,7 @@ const emptyContext$1 = {
|
|
|
1197
1190
|
return pipeArguments(this, arguments);
|
|
1198
1191
|
}
|
|
1199
1192
|
};
|
|
1200
|
-
|
|
1201
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Formatter.js
|
|
1193
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Formatter.js
|
|
1202
1194
|
/**
|
|
1203
1195
|
* Formats JavaScript values into readable strings.
|
|
1204
1196
|
*
|
|
@@ -1476,8 +1468,7 @@ function isJsonPrimitiveWrapper(object) {
|
|
|
1476
1468
|
} catch {}
|
|
1477
1469
|
return false;
|
|
1478
1470
|
}
|
|
1479
|
-
|
|
1480
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Inspectable.js
|
|
1471
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Inspectable.js
|
|
1481
1472
|
/**
|
|
1482
1473
|
* Controls how values appear in logs and debugging output.
|
|
1483
1474
|
*
|
|
@@ -1550,8 +1541,7 @@ const toStringUnknown = (u, whitespace = 2) => {
|
|
|
1550
1541
|
return String(u);
|
|
1551
1542
|
}
|
|
1552
1543
|
};
|
|
1553
|
-
|
|
1554
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/internal/stackTraceLimit.js
|
|
1544
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/internal/stackTraceLimit.js
|
|
1555
1545
|
/**
|
|
1556
1546
|
* Check if `Error.stackTraceLimit` is writable.
|
|
1557
1547
|
* Returns `false` if the property is frozen, non-writable, or `Error` is non-extensible.
|
|
@@ -1582,8 +1572,7 @@ const getStackTraceLimit = () => Error.stackTraceLimit;
|
|
|
1582
1572
|
const setStackTraceLimit = (value) => {
|
|
1583
1573
|
if (canWriteStackTraceLimit) Error.stackTraceLimit = value;
|
|
1584
1574
|
};
|
|
1585
|
-
|
|
1586
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Utils.js
|
|
1575
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Utils.js
|
|
1587
1576
|
/**
|
|
1588
1577
|
* Yields its wrapped value exactly once, then completes with the value sent
|
|
1589
1578
|
* back in.
|
|
@@ -1646,8 +1635,7 @@ var SingleShotGen = class {
|
|
|
1646
1635
|
};
|
|
1647
1636
|
}
|
|
1648
1637
|
};
|
|
1649
|
-
|
|
1650
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/internal/record.js
|
|
1638
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/internal/record.js
|
|
1651
1639
|
/** @internal */
|
|
1652
1640
|
function assignProperty(self, key, value) {
|
|
1653
1641
|
if (key === "__proto__") Object.defineProperty(self, key, {
|
|
@@ -1658,8 +1646,7 @@ function assignProperty(self, key, value) {
|
|
|
1658
1646
|
});
|
|
1659
1647
|
else self[key] = value;
|
|
1660
1648
|
}
|
|
1661
|
-
|
|
1662
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/internal/core.js
|
|
1649
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/internal/core.js
|
|
1663
1650
|
/** @internal */
|
|
1664
1651
|
const EffectTypeId = `~effect/Effect`;
|
|
1665
1652
|
/** @internal */
|
|
@@ -1712,7 +1699,7 @@ const EffectProto = {
|
|
|
1712
1699
|
return {
|
|
1713
1700
|
_id: "Effect",
|
|
1714
1701
|
op: this[identifier],
|
|
1715
|
-
...args in this ? { args: this[args] } : void 0
|
|
1702
|
+
..."~effect/Effect/args" in this ? { args: this[args] } : void 0
|
|
1716
1703
|
};
|
|
1717
1704
|
}
|
|
1718
1705
|
};
|
|
@@ -1872,7 +1859,7 @@ function defaultEvaluate(_fiber) {
|
|
|
1872
1859
|
const makePrimitiveProto = (options) => ({
|
|
1873
1860
|
...EffectProto,
|
|
1874
1861
|
[identifier]: options.op,
|
|
1875
|
-
[evaluate]: options[evaluate] ?? defaultEvaluate,
|
|
1862
|
+
[evaluate]: options["~effect/Effect/evaluate"] ?? defaultEvaluate,
|
|
1876
1863
|
[contA]: options[contA],
|
|
1877
1864
|
[contE]: options[contE],
|
|
1878
1865
|
[contAll]: options[contAll]
|
|
@@ -1908,7 +1895,7 @@ const makeExit = (options) => {
|
|
|
1908
1895
|
};
|
|
1909
1896
|
},
|
|
1910
1897
|
[symbol](that) {
|
|
1911
|
-
return isExit(that) && that._tag === this._tag && equals$1(this[args], that[args]);
|
|
1898
|
+
return isExit(that) && that._tag === this._tag && equals$1(this["~effect/Effect/args"], that["~effect/Effect/args"]);
|
|
1912
1899
|
},
|
|
1913
1900
|
[symbol$1]() {
|
|
1914
1901
|
return combine(string(options.op), hash(this[args]));
|
|
@@ -1974,8 +1961,7 @@ const withFiber$1 = /*#__PURE__*/ makePrimitive({
|
|
|
1974
1961
|
const DoneTypeId = "~effect/Cause/Done";
|
|
1975
1962
|
/** @internal */
|
|
1976
1963
|
const isDone = (u) => hasProperty(u, DoneTypeId);
|
|
1977
|
-
|
|
1978
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Effectable.js
|
|
1964
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Effectable.js
|
|
1979
1965
|
/**
|
|
1980
1966
|
* Create a low-level `Effect` prototype.
|
|
1981
1967
|
*
|
|
@@ -2000,8 +1986,7 @@ const Prototype = (options) => makePrimitiveProto({
|
|
|
2000
1986
|
op: options.label,
|
|
2001
1987
|
[evaluate]: options.evaluate
|
|
2002
1988
|
});
|
|
2003
|
-
|
|
2004
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Order.js
|
|
1989
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Order.js
|
|
2005
1990
|
/**
|
|
2006
1991
|
* Defines comparison functions for ordered values.
|
|
2007
1992
|
*
|
|
@@ -2157,8 +2142,7 @@ const mapInput = /*#__PURE__*/ dual(2, (self, f) => make$2((b1, b2) => self(f(b1
|
|
|
2157
2142
|
* @since 4.0.0
|
|
2158
2143
|
*/
|
|
2159
2144
|
const isGreaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
2160
|
-
|
|
2161
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Context.js
|
|
2145
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Context.js
|
|
2162
2146
|
/**
|
|
2163
2147
|
* Runtime type identifier attached to `Context` service keys and used by
|
|
2164
2148
|
* `isKey` to recognize them.
|
|
@@ -2265,9 +2249,8 @@ const ServiceProto = {
|
|
|
2265
2249
|
const cacheKeys = /*#__PURE__*/ new Set();
|
|
2266
2250
|
const ReferenceTypeId = "~effect/Context/Reference";
|
|
2267
2251
|
const TypeId$1 = "~effect/Context";
|
|
2268
|
-
const MaxDepth = 8;
|
|
2269
2252
|
const FlattenAfterBaseHits = 8;
|
|
2270
|
-
const makeImpl = (cacheRoot, base, overlay, depth) => {
|
|
2253
|
+
const makeImpl = (cacheRoot, base, overlay, depth, maxDepth) => {
|
|
2271
2254
|
const self = Object.create(Proto);
|
|
2272
2255
|
self.cacheRoot = cacheRoot ?? self;
|
|
2273
2256
|
self.base = base;
|
|
@@ -2275,6 +2258,7 @@ const makeImpl = (cacheRoot, base, overlay, depth) => {
|
|
|
2275
2258
|
self.depth = depth;
|
|
2276
2259
|
self._flat = void 0;
|
|
2277
2260
|
self.baseHits = 0;
|
|
2261
|
+
self.maxDepth = maxDepth;
|
|
2278
2262
|
return self;
|
|
2279
2263
|
};
|
|
2280
2264
|
const applyOverlays = (map, overlay) => {
|
|
@@ -2310,8 +2294,23 @@ const lookup = (self, key) => {
|
|
|
2310
2294
|
* Use when constructing a low-level `Context` from a trusted map whose lifecycle
|
|
2311
2295
|
* you control.
|
|
2312
2296
|
*
|
|
2297
|
+
* **Details**
|
|
2298
|
+
*
|
|
2299
|
+
* `options.maxDepth` sets how many `add` calls are kept as overlays before the
|
|
2300
|
+
* context is rebased into a flat map (default `8`). Lower values make lookups
|
|
2301
|
+
* cheaper, higher values make additions to a large base cheaper. Invalid
|
|
2302
|
+
* values fall back to the default.
|
|
2303
|
+
*
|
|
2304
|
+
* Contexts derived with `add`, `pick`, `omit`, and `merge` keep the setting
|
|
2305
|
+
* (`merge` from its first non-empty argument). `make`, `empty`, and `mergeAll`
|
|
2306
|
+
* use the default. Layers are combined with `mergeAll`, so apply it to the
|
|
2307
|
+
* final context rather than inside a layer.
|
|
2308
|
+
*
|
|
2313
2309
|
* **Gotchas**
|
|
2314
2310
|
*
|
|
2311
|
+
* Excessively large `maxDepth` values can cause stack overflow when overlays
|
|
2312
|
+
* are materialized or rebased. Choose a modest value.
|
|
2313
|
+
*
|
|
2315
2314
|
* The provided map is retained without copying and must not be mutated after
|
|
2316
2315
|
* construction. Prefer `empty`, `make`, `add`, or `merge` for normal Context
|
|
2317
2316
|
* construction.
|
|
@@ -2334,7 +2333,10 @@ const lookup = (self, key) => {
|
|
|
2334
2333
|
* @category constructors
|
|
2335
2334
|
* @since 4.0.0
|
|
2336
2335
|
*/
|
|
2337
|
-
const makeUnsafe = (mapUnsafe) =>
|
|
2336
|
+
const makeUnsafe = (mapUnsafe, options) => {
|
|
2337
|
+
const maxDepth = options?.maxDepth;
|
|
2338
|
+
return makeImpl(void 0, mapUnsafe, void 0, 0, Number.isInteger(maxDepth) && maxDepth >= 0 ? maxDepth : 8);
|
|
2339
|
+
};
|
|
2338
2340
|
const Proto = {
|
|
2339
2341
|
get mapUnsafe() {
|
|
2340
2342
|
return flatten(this);
|
|
@@ -2502,17 +2504,17 @@ const add = /*#__PURE__*/ dual(3, (self, key, service) => addUnsafe(self, key.ke
|
|
|
2502
2504
|
const addUnsafe = (self, key, service) => {
|
|
2503
2505
|
const impl = self;
|
|
2504
2506
|
const cacheRoot = cacheKeys.has(key) ? void 0 : impl.cacheRoot;
|
|
2505
|
-
if (impl.depth >=
|
|
2507
|
+
if (impl.depth >= impl.maxDepth) {
|
|
2506
2508
|
const map = new Map(impl._flat ?? impl.base);
|
|
2507
2509
|
if (!impl._flat) applyOverlays(map, impl.overlay);
|
|
2508
2510
|
map.set(key, service);
|
|
2509
|
-
return makeImpl(cacheRoot, map, void 0, 0);
|
|
2511
|
+
return makeImpl(cacheRoot, map, void 0, 0, impl.maxDepth);
|
|
2510
2512
|
}
|
|
2511
2513
|
return makeImpl(cacheRoot, impl.base, {
|
|
2512
2514
|
key,
|
|
2513
2515
|
value: service,
|
|
2514
2516
|
parent: impl.overlay
|
|
2515
|
-
}, impl.depth + 1);
|
|
2517
|
+
}, impl.depth + 1, impl.maxDepth);
|
|
2516
2518
|
};
|
|
2517
2519
|
/** @internal */
|
|
2518
2520
|
const getOrUndefinedUnsafe = (self, key) => {
|
|
@@ -2620,8 +2622,7 @@ const serviceNotFoundError = (service) => {
|
|
|
2620
2622
|
* @since 3.11.0
|
|
2621
2623
|
*/
|
|
2622
2624
|
const Reference = Service;
|
|
2623
|
-
|
|
2624
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Duration.js
|
|
2625
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Duration.js
|
|
2625
2626
|
const TypeId = "~effect/Duration";
|
|
2626
2627
|
const bigint0 = /*#__PURE__*/ BigInt(0);
|
|
2627
2628
|
const bigint1 = /*#__PURE__*/ BigInt(1);
|
|
@@ -3095,8 +3096,7 @@ const Equivalence = (self, that) => matchPair(self, that, {
|
|
|
3095
3096
|
* @since 2.0.0
|
|
3096
3097
|
*/
|
|
3097
3098
|
const equals = /*#__PURE__*/ dual(2, (self, that) => Equivalence(self, that));
|
|
3098
|
-
|
|
3099
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Scheduler.js
|
|
3099
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Scheduler.js
|
|
3100
3100
|
/**
|
|
3101
3101
|
* Controls how runnable Effect fiber tasks are dispatched.
|
|
3102
3102
|
*
|
|
@@ -3332,8 +3332,7 @@ const PreventSchedulerYield = /*#__PURE__*/ Reference("effect/Scheduler/PreventS
|
|
|
3332
3332
|
fiberCached: true,
|
|
3333
3333
|
defaultValue: () => false
|
|
3334
3334
|
});
|
|
3335
|
-
|
|
3336
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Tracer.js
|
|
3335
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Tracer.js
|
|
3337
3336
|
/**
|
|
3338
3337
|
* Defines the string key for the parent-span context service.
|
|
3339
3338
|
*
|
|
@@ -3369,12 +3368,10 @@ const ParentSpanKey = "effect/Tracer/ParentSpan";
|
|
|
3369
3368
|
* @since 4.0.0
|
|
3370
3369
|
*/
|
|
3371
3370
|
const TracerKey = "effect/Tracer";
|
|
3372
|
-
|
|
3373
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/internal/metric.js
|
|
3371
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/internal/metric.js
|
|
3374
3372
|
/** @internal */
|
|
3375
3373
|
const FiberRuntimeMetricsKey = "effect/Metric/FiberRuntimeMetrics";
|
|
3376
|
-
|
|
3377
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/internal/references.js
|
|
3374
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/internal/references.js
|
|
3378
3375
|
/** @internal */
|
|
3379
3376
|
const CurrentStackFrame = /*#__PURE__*/ Reference("effect/References/CurrentStackFrame", {
|
|
3380
3377
|
fiberCached: true,
|
|
@@ -3399,8 +3396,7 @@ const MinimumLogLevel = /*#__PURE__*/ Reference("effect/References/MinimumLogLev
|
|
|
3399
3396
|
});
|
|
3400
3397
|
/** @internal */
|
|
3401
3398
|
const CurrentLogSpans = /*#__PURE__*/ Reference("effect/References/CurrentLogSpans", { defaultValue: () => [] });
|
|
3402
|
-
|
|
3403
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/internal/effect.js
|
|
3399
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/internal/effect.js
|
|
3404
3400
|
/** @internal */
|
|
3405
3401
|
var Interrupt = class extends ReasonBase {
|
|
3406
3402
|
constructor(fiberId, annotations = constEmptyAnnotations) {
|
|
@@ -3699,7 +3695,7 @@ var FiberImpl = class {
|
|
|
3699
3695
|
current = cache.tracerContext ? cache.tracerContext(current, this) : current[evaluate](this);
|
|
3700
3696
|
if (current === Yield) {
|
|
3701
3697
|
const yielded = this._yielded;
|
|
3702
|
-
if (
|
|
3698
|
+
if ("~effect/Exit" in yielded) {
|
|
3703
3699
|
this._deferredInterrupt = false;
|
|
3704
3700
|
this._yielded = void 0;
|
|
3705
3701
|
return yielded;
|
|
@@ -3711,7 +3707,7 @@ var FiberImpl = class {
|
|
|
3711
3707
|
return Yield;
|
|
3712
3708
|
}
|
|
3713
3709
|
} catch (error) {
|
|
3714
|
-
if (!hasProperty(current, evaluate)) return exitDie(`Fiber.runLoop: Not a valid effect: ${String(current)}`);
|
|
3710
|
+
if (!hasProperty(current, "~effect/Effect/evaluate")) return exitDie(`Fiber.runLoop: Not a valid effect: ${String(current)}`);
|
|
3715
3711
|
current = exitDie(error);
|
|
3716
3712
|
}
|
|
3717
3713
|
} finally {
|
|
@@ -3815,7 +3811,7 @@ const yieldNow = /*#__PURE__*/ (/* @__PURE__ */ makePrimitive({
|
|
|
3815
3811
|
fiber.currentDispatcher.scheduleTask(() => {
|
|
3816
3812
|
if (resumed) return;
|
|
3817
3813
|
fiber.evaluate(exitVoid);
|
|
3818
|
-
}, this[args] ?? 0);
|
|
3814
|
+
}, this["~effect/Effect/args"] ?? 0);
|
|
3819
3815
|
return fiber.yieldWith(() => {
|
|
3820
3816
|
resumed = true;
|
|
3821
3817
|
});
|
|
@@ -4130,8 +4126,7 @@ const tracerLogger = /*#__PURE__*/ loggerMake(({ cause, fiber, logLevel, message
|
|
|
4130
4126
|
if (cause.reasons.length > 0) attributes["effect.cause"] = causePretty(cause);
|
|
4131
4127
|
span.event(toStringUnknown(Array.isArray(message) && message.length === 1 ? message[0] : message), clock.currentTimeNanosUnsafe(), attributes);
|
|
4132
4128
|
});
|
|
4133
|
-
|
|
4134
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Exit.js
|
|
4129
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Exit.js
|
|
4135
4130
|
/**
|
|
4136
4131
|
* Checks whether an Exit is a Success.
|
|
4137
4132
|
*
|
|
@@ -4160,8 +4155,7 @@ const tracerLogger = /*#__PURE__*/ loggerMake(({ cause, fiber, logLevel, message
|
|
|
4160
4155
|
* @since 2.0.0
|
|
4161
4156
|
*/
|
|
4162
4157
|
const isSuccess = exitIsSuccess;
|
|
4163
|
-
|
|
4164
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Cause.js
|
|
4158
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Cause.js
|
|
4165
4159
|
/**
|
|
4166
4160
|
* Returns `true` if every reason in the cause is an `Interrupt` (and
|
|
4167
4161
|
* there is at least one reason).
|
|
@@ -4228,8 +4222,7 @@ const hasInterruptsOnly = hasInterruptsOnly$1;
|
|
|
4228
4222
|
* @since 2.0.0
|
|
4229
4223
|
*/
|
|
4230
4224
|
const squash = causeSquash;
|
|
4231
|
-
|
|
4232
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Effect.js
|
|
4225
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Effect.js
|
|
4233
4226
|
/**
|
|
4234
4227
|
* Checks whether a value is an `Effect`.
|
|
4235
4228
|
*
|
|
@@ -4359,8 +4352,7 @@ const runFork = runFork$1;
|
|
|
4359
4352
|
* @since 2.0.0
|
|
4360
4353
|
*/
|
|
4361
4354
|
const logError = /*#__PURE__*/ logWithLevel("Error");
|
|
4362
|
-
|
|
4363
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Runtime.js
|
|
4355
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Runtime.js
|
|
4364
4356
|
/**
|
|
4365
4357
|
* Helpers for turning an `Effect` program into a host application's main entry
|
|
4366
4358
|
* point. This module is the low-level layer used by platform adapters to run a
|
|
@@ -4654,8 +4646,7 @@ const getErrorReported = (u) => {
|
|
|
4654
4646
|
}
|
|
4655
4647
|
return true;
|
|
4656
4648
|
};
|
|
4657
|
-
|
|
4658
|
-
//#region ../../node_modules/.store/@effect/platform-node@4.0.7-qoujxla-7oWSyAn8j7uoGg/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
4649
|
+
// ../../node_modules/.store/@effect/platform-node@4.1.0-AFfpvIzMRb1YoypT_3WsOg/node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
4659
4650
|
/**
|
|
4660
4651
|
* Node.js process runner for Effect programs.
|
|
4661
4652
|
*
|
|
@@ -4708,8 +4699,7 @@ const runMain = /* @__PURE__ */ makeRunMain(({ fiber, teardown }) => {
|
|
|
4708
4699
|
process.on("SIGINT", onSigint);
|
|
4709
4700
|
process.on("SIGTERM", onSigint);
|
|
4710
4701
|
});
|
|
4711
|
-
|
|
4712
|
-
//#region ../../node_modules/.store/effect@4.0.7-oqmuoScL2wa9Z9xqPi9qIg/node_modules/effect/dist/Console.js
|
|
4702
|
+
// ../../node_modules/.store/effect@4.1.0-0ErXqN9ojVY8orGaP3oNQg/node_modules/effect/dist/Console.js
|
|
4713
4703
|
/**
|
|
4714
4704
|
* Context reference for the current console service in the Effect system, allowing access to the active console implementation from within the Effect context.
|
|
4715
4705
|
*
|
|
@@ -4811,11 +4801,9 @@ const consoleWith = (f) => withFiber$1((fiber) => f(fiber.getRef(Console)));
|
|
|
4811
4801
|
const log = (...args) => consoleWith((console) => sync(() => {
|
|
4812
4802
|
console.log(...args);
|
|
4813
4803
|
}));
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
//#endregion
|
|
4818
|
-
//#region src/Program.ts
|
|
4804
|
+
// package.json
|
|
4805
|
+
var version = "0.0.2";
|
|
4806
|
+
// src/Program.ts
|
|
4819
4807
|
/** The places to find Falkara, in the order `npm create falkara` lists them. */
|
|
4820
4808
|
const channels = [
|
|
4821
4809
|
{
|
|
@@ -4831,8 +4819,7 @@ const channels = [
|
|
|
4831
4819
|
url: "https://npmjs.com/org/falkara"
|
|
4832
4820
|
}
|
|
4833
4821
|
];
|
|
4834
|
-
|
|
4835
|
-
//#region src/Entrypoint.ts
|
|
4822
|
+
// src/Entrypoint.ts
|
|
4836
4823
|
runMain(log([
|
|
4837
4824
|
`create-falkara ${version}`,
|
|
4838
4825
|
"The starting point for new projects on Falkara products.",
|
|
@@ -4840,5 +4827,4 @@ runMain(log([
|
|
|
4840
4827
|
...channels.map(({ label, url }) => ` ${label.padEnd(Math.max(...channels.map((channel) => channel.label.length)))} ${url}`),
|
|
4841
4828
|
""
|
|
4842
4829
|
].join("\n")));
|
|
4843
|
-
//#endregion
|
|
4844
4830
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-falkara",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Falkara builds how brands show up, online and in the room. The create-falkara package powers npm create falkara, the starting point for new projects on Falkara products.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"prepack": "vp pack"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@effect/platform-node": "4.0
|
|
38
|
-
"effect": "4.0
|
|
37
|
+
"@effect/platform-node": "4.1.0",
|
|
38
|
+
"effect": "4.1.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
|
-
"node": "^24.
|
|
41
|
+
"node": "^22.11.0 || ^24.11.0 || ^26.13.0"
|
|
42
42
|
}
|
|
43
43
|
}
|