@athrio/loom 0.0.5 → 0.0.6
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/dist/{LoomServer-DdMrIE4N.js → LoomServer-ew_Ofzfo.js} +6 -6
- package/dist/{LoomServer-DdMrIE4N.js.map → LoomServer-ew_Ofzfo.js.map} +1 -1
- package/dist/{LoomStore-CxUQqaPK.js → LoomStore-DOjrkJaQ.js} +3 -3
- package/dist/{LoomStore-CxUQqaPK.js.map → LoomStore-DOjrkJaQ.js.map} +1 -1
- package/dist/{main-BQJiwrlj.js → main-mXrU4uag.js} +3 -3
- package/dist/{main-BQJiwrlj.js.map → main-mXrU4uag.js.map} +1 -1
- package/dist/main.js +48 -64
- package/dist/main.js.map +1 -1
- package/dist/{rolldown-runtime-yvBN9yY6.js → rolldown-runtime-YU9U6SYh.js} +1 -1
- package/dist/{volar-service-markdown-ZE1pdvJT.js → volar-service-markdown-C0HvK7Au.js} +4 -4
- package/dist/{volar-service-markdown-ZE1pdvJT.js.map → volar-service-markdown-C0HvK7Au.js.map} +1 -1
- package/package.json +3 -2
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
2
|
-
import { t as __commonJSMin } from "./rolldown-runtime-
|
|
3
|
-
import { $ as mkString, $n as done, $t as ensuring, A as log, An as timeoutOrElse, Ar as none, At as mapDone, B as WatchBackend, Bn as provide, Br as dual, Bt as acquireRelease, C as errorExitCode, Cn as runFork, Cr as fromUndefinedOr, Ct as is, D as Crypto$1, Dn as suspend, Dr as isSome, En as succeed, Er as isNone, Et as toCodecStringTree, F as TypeId$5, Fn as catchDone, Fr as hasProperty, Ft as offerUnsafe, G as empty$1, Gn as _await, Gt as callback, H as callback$1, Hn as succeed$3, Hr as pipe, Ht as andThen, I as FileDescriptor, Ir as isNotNull, It as take, J as fromEffect, Jn as makeUnsafe$1, Jt as catchTag, K as filter$1, Kn as doneUnsafe, L as FileSystem, Ln as taggedEnum, Lr as isNotUndefined, Lt as make$7, M as FalseValues, Mn as try_, Mr as String$2, Mt as failCauseUnsafe, N as TrueValues, Nn as uninterruptible, Nr as BaseProto, Nt as make$12, O as make$9, On as sync, Or as map$4, P as Path$1, Pn as void_, Pr as format, Pt as offer, Q as merge, Qn as UnknownError, Qt as effectify, R as FileTypeId, Rn as effect, Rr as isNullish, Rt as makeUnsafe, S as make$10, Sn as result, Sr as fromNullishOr, St as decodeUnknownEffect, T as makeRunMain, Tn as serviceOption, Tr as getOrUndefined, Tt as tag, U as concat, Un as addFinalizer, Ur as pipeArguments, Ut as as, V as make$8, Vn as provideMerge, Vr as identity, Vt as addFinalizer$1, W as decodeText, Wn as MinimumLogLevel, Wt as asVoid, X as isStream, Xn as succeed$2, Xt as catch_, Y as groupedWithin, Yn as fail$2, Yt as catchTags, Z as mapEffect, Zn as Done, _ as QuitError, _n as orElseSucceed, _r as fail$1, _t as ErrorClass, a as storeDir, an as forkScoped, ar as make$6, at as transduce, b as make$13, bn as provideService, br as contains, bt as Struct, c as LoomCompiler, cn as interrupt, cr as filter, ct as make$11, dn as map$2, dt as isSink, en as fail, er as fail$3, et as orDie$1, f as PackageConfig, fn as mapError, fr as map$3, ft as BadArgument, gn as orDie, gr as sort, gt as Defect, hn as option, hr as reduce, ht as ArraySchema, i as servicePackage, in as forever, ir as getUnsafe, it as splitLines, j as Boolean, jn as tryPromise, jr as some, jt as endUnsafe, k as error, kr as match$2, kt as fromTransform, l as ignoredDirs, ln as isEffect, lt as drain, mn as matchEffect, mr as of, mt as systemError, n as installedServices, nn as fnUntraced, nr as Service, nt as runCollect, o as workspaceRoot, on as gen, or as Prototype, ot as unwrap, p as LoomConfig, pn as match$1, pr as match, pt as badArgument, q as fromChannel$1, qn as isDone, qt as catchFilter, r as removeService, rn as forEach, rr as empty, rt as runForEach, s as DocumentSource, sn as ignore, sr as dedupe, st as get, t as addService, tn as flatMap, tr as Reference, tt as run$2, ut as fromChannel, v as Terminal, vn as provide$1, vr as match$3, vt as Literal, w as errorReported, wn as scoped, wr as getOrElse, wt as optional$3, x as Stdio, xn as raceFirst, xr as flatMap$1, xt as Union, y as isQuitError, yn as provideContext, yr as succeed$1, yt as String$1, z as Size, zn as mergeAll, zr as isUndefined, zt as nominal } from "./LoomStore-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { t as __commonJSMin } from "./rolldown-runtime-YU9U6SYh.js";
|
|
3
|
+
import { $ as mkString, $n as done, $t as ensuring, A as log, An as timeoutOrElse, Ar as none, At as mapDone, B as WatchBackend, Bn as provide, Br as dual, Bt as acquireRelease, C as errorExitCode, Cn as runFork, Cr as fromUndefinedOr, Ct as is, D as Crypto$1, Dn as suspend, Dr as isSome, En as succeed, Er as isNone, Et as toCodecStringTree, F as TypeId$5, Fn as catchDone, Fr as hasProperty, Ft as offerUnsafe, G as empty$1, Gn as _await, Gt as callback, H as callback$1, Hn as succeed$3, Hr as pipe, Ht as andThen, I as FileDescriptor, Ir as isNotNull, It as take, J as fromEffect, Jn as makeUnsafe$1, Jt as catchTag, K as filter$1, Kn as doneUnsafe, L as FileSystem, Ln as taggedEnum, Lr as isNotUndefined, Lt as make$7, M as FalseValues, Mn as try_, Mr as String$2, Mt as failCauseUnsafe, N as TrueValues, Nn as uninterruptible, Nr as BaseProto, Nt as make$12, O as make$9, On as sync, Or as map$4, P as Path$1, Pn as void_, Pr as format, Pt as offer, Q as merge, Qn as UnknownError, Qt as effectify, R as FileTypeId, Rn as effect, Rr as isNullish, Rt as makeUnsafe, S as make$10, Sn as result, Sr as fromNullishOr, St as decodeUnknownEffect, T as makeRunMain, Tn as serviceOption, Tr as getOrUndefined, Tt as tag, U as concat, Un as addFinalizer, Ur as pipeArguments, Ut as as, V as make$8, Vn as provideMerge, Vr as identity, Vt as addFinalizer$1, W as decodeText, Wn as MinimumLogLevel, Wt as asVoid, X as isStream, Xn as succeed$2, Xt as catch_, Y as groupedWithin, Yn as fail$2, Yt as catchTags, Z as mapEffect, Zn as Done, _ as QuitError, _n as orElseSucceed, _r as fail$1, _t as ErrorClass, a as storeDir, an as forkScoped, ar as make$6, at as transduce, b as make$13, bn as provideService, br as contains, bt as Struct, c as LoomCompiler, cn as interrupt, cr as filter, ct as make$11, dn as map$2, dt as isSink, en as fail, er as fail$3, et as orDie$1, f as PackageConfig, fn as mapError, fr as map$3, ft as BadArgument, gn as orDie, gr as sort, gt as Defect, hn as option, hr as reduce, ht as ArraySchema, i as servicePackage, in as forever, ir as getUnsafe, it as splitLines, j as Boolean, jn as tryPromise, jr as some, jt as endUnsafe, k as error, kr as match$2, kt as fromTransform, l as ignoredDirs, ln as isEffect, lt as drain, mn as matchEffect, mr as of, mt as systemError, n as installedServices, nn as fnUntraced, nr as Service, nt as runCollect, o as workspaceRoot, on as gen, or as Prototype, ot as unwrap, p as LoomConfig, pn as match$1, pr as match, pt as badArgument, q as fromChannel$1, qn as isDone, qt as catchFilter, r as removeService, rn as forEach, rr as empty, rt as runForEach, s as DocumentSource, sn as ignore, sr as dedupe, st as get, t as addService, tn as flatMap, tr as Reference, tt as run$2, ut as fromChannel, v as Terminal, vn as provide$1, vr as match$3, vt as Literal, w as errorReported, wn as scoped, wr as getOrElse, wt as optional$3, x as Stdio, xn as raceFirst, xr as flatMap$1, xt as Union, y as isQuitError, yn as provideContext, yr as succeed$1, yt as String$1, z as Size, zn as mergeAll, zr as isUndefined, zt as nominal } from "./LoomStore-DOjrkJaQ.js";
|
|
4
4
|
import * as NodeChildProcess from "node:child_process";
|
|
5
5
|
import { PassThrough } from "node:stream";
|
|
6
6
|
import * as Crypto from "node:crypto";
|
|
@@ -9886,18 +9886,19 @@ var makeFileSystem = /*#__PURE__*/ map$2(/*#__PURE__*/ serviceOption(WatchBacken
|
|
|
9886
9886
|
writeFile
|
|
9887
9887
|
}));
|
|
9888
9888
|
//#endregion
|
|
9889
|
-
//#region ../../node_modules/@effect/platform-
|
|
9889
|
+
//#region ../../node_modules/@effect/platform-node/dist/NodeFileSystem.js
|
|
9890
9890
|
/**
|
|
9891
|
-
*
|
|
9891
|
+
* Node.js `FileSystem` layer for programs that perform real filesystem I/O.
|
|
9892
9892
|
*
|
|
9893
|
-
*
|
|
9894
|
-
*
|
|
9895
|
-
*
|
|
9893
|
+
* The exported layer satisfies the platform-independent `FileSystem` service
|
|
9894
|
+
* with Node-backed operations for files, directories, metadata, permissions,
|
|
9895
|
+
* links, temporary paths, and path watching. Effects still call the service from
|
|
9896
|
+
* `effect/FileSystem`; this module only chooses the Node implementation.
|
|
9896
9897
|
*
|
|
9897
9898
|
* @since 4.0.0
|
|
9898
9899
|
*/
|
|
9899
9900
|
/**
|
|
9900
|
-
*
|
|
9901
|
+
* Provides the `FileSystem` service backed by Node filesystem APIs.
|
|
9901
9902
|
*
|
|
9902
9903
|
* @category layers
|
|
9903
9904
|
* @since 4.0.0
|
|
@@ -9934,22 +9935,22 @@ var digest = (algorithm, data) => try_({
|
|
|
9934
9935
|
})
|
|
9935
9936
|
});
|
|
9936
9937
|
//#endregion
|
|
9937
|
-
//#region ../../node_modules/@effect/platform-
|
|
9938
|
+
//#region ../../node_modules/@effect/platform-node/dist/NodeCrypto.js
|
|
9938
9939
|
/**
|
|
9939
|
-
* The `
|
|
9940
|
-
* programs. Provide {@link layer} at the edge of a
|
|
9941
|
-
* test to satisfy `effect/Crypto` with
|
|
9942
|
-
* UUID generation, random values, and
|
|
9940
|
+
* The `NodeCrypto` module provides the Node.js `Crypto` service layer for
|
|
9941
|
+
* Effect programs. Provide {@link layer} at the edge of a Node application,
|
|
9942
|
+
* CLI, script, or test to satisfy `effect/Crypto` with Node's `node:crypto`
|
|
9943
|
+
* implementation for secure random bytes, UUID generation, random values, and
|
|
9944
|
+
* SHA digest operations.
|
|
9943
9945
|
*
|
|
9944
|
-
* This adapter
|
|
9945
|
-
*
|
|
9946
|
-
*
|
|
9947
|
-
* security-sensitive designs.
|
|
9946
|
+
* This module is the public Node adapter around the shared Node-compatible
|
|
9947
|
+
* implementation. Digest failures are reported as platform errors, and SHA-1
|
|
9948
|
+
* remains available only for interoperability with existing protocols.
|
|
9948
9949
|
*
|
|
9949
9950
|
* @since 1.0.0
|
|
9950
9951
|
*/
|
|
9951
9952
|
/**
|
|
9952
|
-
* Layer that provides the
|
|
9953
|
+
* Layer that provides the Node.js Crypto service implementation.
|
|
9953
9954
|
*
|
|
9954
9955
|
* @category layers
|
|
9955
9956
|
* @since 1.0.0
|
|
@@ -9989,19 +9990,20 @@ var toFileUrl = (path) => try_({
|
|
|
9989
9990
|
({ ...Path.posix });
|
|
9990
9991
|
({ ...Path.win32 });
|
|
9991
9992
|
//#endregion
|
|
9992
|
-
//#region ../../node_modules/@effect/platform-
|
|
9993
|
+
//#region ../../node_modules/@effect/platform-node/dist/NodePath.js
|
|
9993
9994
|
/**
|
|
9994
|
-
*
|
|
9995
|
+
* Node.js layers for Effect's `Path` service.
|
|
9995
9996
|
*
|
|
9996
|
-
* This module provides the
|
|
9997
|
-
*
|
|
9998
|
-
*
|
|
9999
|
-
*
|
|
9997
|
+
* This module provides the default, POSIX, and Windows variants of the
|
|
9998
|
+
* platform-independent `Path` service by reusing the shared Node path
|
|
9999
|
+
* implementation. The provided path services include Node file URL conversion
|
|
10000
|
+
* behavior.
|
|
10000
10001
|
*
|
|
10001
10002
|
* @since 4.0.0
|
|
10002
10003
|
*/
|
|
10003
10004
|
/**
|
|
10004
|
-
*
|
|
10005
|
+
* Provides the default Node `Path` service using the platform's `node:path`
|
|
10006
|
+
* implementation.
|
|
10005
10007
|
*
|
|
10006
10008
|
* @category layers
|
|
10007
10009
|
* @since 4.0.0
|
|
@@ -10013,14 +10015,14 @@ var layer$5 = /* @__PURE__ */ succeed$3(Path$1)({
|
|
|
10013
10015
|
toFileUrl
|
|
10014
10016
|
});
|
|
10015
10017
|
//#endregion
|
|
10016
|
-
//#region ../../node_modules/@effect/platform-
|
|
10018
|
+
//#region ../../node_modules/@effect/platform-node/dist/NodeStdio.js
|
|
10017
10019
|
/**
|
|
10018
|
-
*
|
|
10020
|
+
* Node.js `Stdio` layer for the current process.
|
|
10019
10021
|
*
|
|
10020
|
-
*
|
|
10021
|
-
*
|
|
10022
|
-
*
|
|
10023
|
-
* `process.stdout` and `process.stderr`.
|
|
10022
|
+
* The exported layer reuses the shared Node stdio implementation. It satisfies
|
|
10023
|
+
* the platform-independent `Stdio` service by reading command-line arguments
|
|
10024
|
+
* from `process.argv`, consuming input from `process.stdin`, and writing output
|
|
10025
|
+
* streams to `process.stdout` and `process.stderr`.
|
|
10024
10026
|
*
|
|
10025
10027
|
* @since 4.0.0
|
|
10026
10028
|
*/
|
|
@@ -10133,42 +10135,24 @@ function defaultShouldQuit(input) {
|
|
|
10133
10135
|
return input.key.ctrl && (input.key.name === "c" || input.key.name === "d");
|
|
10134
10136
|
}
|
|
10135
10137
|
//#endregion
|
|
10136
|
-
//#region ../../node_modules/@effect/platform-
|
|
10138
|
+
//#region ../../node_modules/@effect/platform-node/dist/NodeServices.js
|
|
10137
10139
|
/**
|
|
10138
|
-
*
|
|
10139
|
-
*
|
|
10140
|
-
* This module reuses the shared Node terminal implementation for Bun. `make`
|
|
10141
|
-
* creates a scoped process-backed `Terminal` service, and `layer` provides the
|
|
10142
|
-
* default terminal service with the standard quit behavior for key input.
|
|
10143
|
-
*
|
|
10144
|
-
* @since 4.0.0
|
|
10145
|
-
*/
|
|
10146
|
-
/**
|
|
10147
|
-
* Provides the default process-backed `Terminal` service, ending key input on
|
|
10148
|
-
* the default quit keys.
|
|
10149
|
-
*
|
|
10150
|
-
* @category layers
|
|
10151
|
-
* @since 4.0.0
|
|
10152
|
-
*/
|
|
10153
|
-
var layer$1 = layer$2;
|
|
10154
|
-
//#endregion
|
|
10155
|
-
//#region ../../node_modules/@effect/platform-bun/dist/BunServices.js
|
|
10156
|
-
/**
|
|
10157
|
-
* Provides the default Bun implementations for child process spawning,
|
|
10140
|
+
* Provides the default Node implementations for child process spawning,
|
|
10158
10141
|
* filesystem, path, stdio, and terminal services.
|
|
10159
10142
|
*
|
|
10160
10143
|
* @category layers
|
|
10161
10144
|
* @since 4.0.0
|
|
10162
10145
|
*/
|
|
10163
|
-
var layer = /*#__PURE__*/ layer$11
|
|
10146
|
+
var layer = /*#__PURE__*/ provideMerge(layer$11, /*#__PURE__*/ mergeAll(layer$9, layer$7, layer$5, layer$3, layer$2));
|
|
10164
10147
|
//#endregion
|
|
10165
|
-
//#region ../../node_modules/@effect/platform-
|
|
10148
|
+
//#region ../../node_modules/@effect/platform-node/dist/NodeRuntime.js
|
|
10166
10149
|
/**
|
|
10167
|
-
*
|
|
10150
|
+
* Node.js process runner for Effect programs.
|
|
10168
10151
|
*
|
|
10169
10152
|
* This module exports `runMain`, which runs one Effect as the main process
|
|
10170
|
-
* fiber in
|
|
10171
|
-
* reporting,
|
|
10153
|
+
* fiber in Node.js. It reuses the shared Node runtime runner, including its
|
|
10154
|
+
* error reporting, `SIGINT` / `SIGTERM` interruption, and optional teardown
|
|
10155
|
+
* behavior.
|
|
10172
10156
|
*
|
|
10173
10157
|
* @since 4.0.0
|
|
10174
10158
|
*/
|
|
@@ -10177,8 +10161,9 @@ var layer = /*#__PURE__*/ layer$11.pipe(/*#__PURE__*/ provideMerge(/*#__PURE__*/
|
|
|
10177
10161
|
*
|
|
10178
10162
|
* **When to use**
|
|
10179
10163
|
*
|
|
10180
|
-
* Use to run a
|
|
10181
|
-
* log management, interrupt support, or advanced teardown
|
|
10164
|
+
* Use to run a Node.js application's main Effect with structured error
|
|
10165
|
+
* handling, log management, interrupt support, or advanced teardown
|
|
10166
|
+
* capabilities.
|
|
10182
10167
|
*
|
|
10183
10168
|
* **Details**
|
|
10184
10169
|
*
|
|
@@ -10188,9 +10173,8 @@ var layer = /*#__PURE__*/ layer$11.pipe(/*#__PURE__*/ provideMerge(/*#__PURE__*/
|
|
|
10188
10173
|
* behaviors can be turned off. You can also provide custom teardown logic to
|
|
10189
10174
|
* finalize resources or produce different exit codes.
|
|
10190
10175
|
*
|
|
10191
|
-
*
|
|
10176
|
+
* The optional configuration object can include:
|
|
10192
10177
|
* - `disableErrorReporting`: Turn off automatic error logging.
|
|
10193
|
-
* - `disablePrettyLogger`: Avoid adding the pretty logger.
|
|
10194
10178
|
* - `teardown`: Provide custom finalization logic.
|
|
10195
10179
|
*
|
|
10196
10180
|
* @category running
|
|
@@ -10481,11 +10465,11 @@ var program = run(make$5("loom").pipe(withSubcommands([
|
|
|
10481
10465
|
removeCommand,
|
|
10482
10466
|
statusCommand,
|
|
10483
10467
|
setCommand
|
|
10484
|
-
])), { version: "0.0.
|
|
10468
|
+
])), { version: "0.0.6" }).pipe(provide$1(LoomTangler.layer), provide$1(LoomWeaver.layer), provide$1(LoomContents.layer), provide$1(DocumentSource.layer), provide$1(PackageConfig.layer), provide$1(LoomConfig.layer), provide$1(layer));
|
|
10485
10469
|
if (process.argv[2] === "lsp") {
|
|
10486
10470
|
const { createRequire } = await import("node:module");
|
|
10487
10471
|
globalThis.require = createRequire(import.meta.url);
|
|
10488
|
-
const { startLanguageServer } = await import("./LoomServer-
|
|
10472
|
+
const { startLanguageServer } = await import("./LoomServer-ew_Ofzfo.js");
|
|
10489
10473
|
startLanguageServer();
|
|
10490
10474
|
} else runMain(program);
|
|
10491
10475
|
//#endregion
|