@confect/cli 1.0.0-next.0 → 1.0.0-next.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/CHANGELOG.md +18 -0
- package/dist/FunctionPath.mjs.map +1 -1
- package/dist/FunctionPaths.mjs +3 -3
- package/dist/FunctionPaths.mjs.map +1 -1
- package/dist/GroupPath.mjs +1 -0
- package/dist/GroupPath.mjs.map +1 -1
- package/dist/cliApp.mjs +1 -1
- package/dist/confect/codegen.mjs +2 -2
- package/dist/confect/codegen.mjs.map +1 -1
- package/dist/confect/dev.mjs +2 -2
- package/dist/confect/dev.mjs.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/dist/package.mjs +6 -0
- package/dist/package.mjs.map +1 -0
- package/dist/services/ProjectRoot.mjs +2 -2
- package/dist/services/ProjectRoot.mjs.map +1 -1
- package/dist/utils.mjs +7 -7
- package/dist/utils.mjs.map +1 -1
- package/package.json +25 -21
- package/src/FunctionPath.ts +0 -1
- package/dist/_virtual/rolldown_runtime.mjs +0 -28
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.mjs +0 -12
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeFileSystem.mjs +0 -15
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeFileSystem.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodePath.mjs +0 -25
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodePath.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeRuntime.mjs +0 -12
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeRuntime.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeTerminal.mjs +0 -17
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeTerminal.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.mjs +0 -129
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/error.mjs +0 -43
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/error.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/fileSystem.mjs +0 -329
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/fileSystem.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/path.mjs +0 -51
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/path.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/runtime.mjs +0 -31
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/runtime.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/sink.mjs +0 -24
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/sink.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/stream.mjs +0 -91
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/stream.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/terminal.mjs +0 -75
- package/dist/node_modules/.pnpm/@effect_platform-node-shared@0.53.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/terminal.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/NodeContext.mjs +0 -21
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/NodeContext.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/NodeFileSystem.mjs +0 -15
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/NodeFileSystem.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/NodeRuntime.mjs +0 -15
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/NodeRuntime.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/NodeWorker.mjs +0 -27
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/NodeWorker.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/internal/worker.mjs +0 -71
- package/dist/node_modules/.pnpm/@effect_platform-node@0.100.0_@effect_cluster@0.52.9_@effect_platform@0.93.2_effect@3.1_a15ca1802d939cd85cc564105ef862ac/node_modules/@effect/platform-node/dist/esm/internal/worker.mjs.map +0 -1
- package/dist/packages/cli/package.mjs +0 -6
- package/dist/packages/cli/package.mjs.map +0 -1
- package/dist/packages/core/dist/Spec.mjs +0 -23
- package/dist/packages/core/dist/Spec.mjs.map +0 -1
- package/dist/packages/core/dist/_virtual/rolldown_runtime.mjs +0 -14
- package/dist/packages/core/dist/_virtual/rolldown_runtime.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@confect/cli",
|
|
3
|
-
"version": "1.0.0-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.0-next.2",
|
|
4
|
+
"description": "Developer tooling for codegen and sync",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/rjdellecese/confect.git"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/rjdellecese/confect/issues"
|
|
11
11
|
},
|
|
12
|
-
"homepage": "https://confect.
|
|
12
|
+
"homepage": "https://confect.dev",
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"bin": {
|
|
@@ -38,34 +38,37 @@
|
|
|
38
38
|
"author": "RJ Dellecese",
|
|
39
39
|
"license": "ISC",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@effect/cli": "^0.
|
|
41
|
+
"@effect/cli": "^0.73.2",
|
|
42
|
+
"@effect/platform-node": "0.104.1",
|
|
43
|
+
"@effect/platform-node-shared": "0.57.1",
|
|
42
44
|
"@effect/printer": "^0.47.0",
|
|
43
45
|
"@effect/printer-ansi": "^0.47.0",
|
|
44
46
|
"code-block-writer": "^13.0.3",
|
|
45
|
-
"esbuild": "^0.
|
|
46
|
-
"tsx": "^4.
|
|
47
|
+
"esbuild": "^0.27.3",
|
|
48
|
+
"tsx": "^4.21.0"
|
|
47
49
|
},
|
|
48
50
|
"devDependencies": {
|
|
49
|
-
"@effect/language-service": "0.
|
|
50
|
-
"@effect/platform
|
|
51
|
+
"@effect/language-service": "0.73.1",
|
|
52
|
+
"@effect/platform": "0.94.4",
|
|
51
53
|
"@effect/vitest": "0.27.0",
|
|
52
|
-
"@eslint/js": "9.39.
|
|
53
|
-
"@
|
|
54
|
-
"@types/node": "24.10.1",
|
|
54
|
+
"@eslint/js": "9.39.2",
|
|
55
|
+
"@types/node": "25.2.3",
|
|
55
56
|
"@vitest/coverage-v8": "3.2.4",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
57
|
+
"effect": "3.19.16",
|
|
58
|
+
"eslint": "9.39.2",
|
|
59
|
+
"prettier": "3.8.1",
|
|
60
|
+
"tsdown": "0.20.3",
|
|
59
61
|
"typescript": "5.9.3",
|
|
60
|
-
"typescript-eslint": "8.
|
|
61
|
-
"vite": "7.
|
|
62
|
-
"vite-tsconfig-paths": "
|
|
62
|
+
"typescript-eslint": "8.55.0",
|
|
63
|
+
"vite": "7.3.1",
|
|
64
|
+
"vite-tsconfig-paths": "6.1.1",
|
|
63
65
|
"vitest": "3.2.4"
|
|
64
66
|
},
|
|
65
67
|
"peerDependencies": {
|
|
66
|
-
"@effect/platform": "^0.
|
|
67
|
-
"effect": "^3.19.
|
|
68
|
-
"@confect/
|
|
68
|
+
"@effect/platform": "^0.94.4",
|
|
69
|
+
"effect": "^3.19.16",
|
|
70
|
+
"@confect/core": "1.0.0-next.2",
|
|
71
|
+
"@confect/server": "1.0.0-next.2"
|
|
69
72
|
},
|
|
70
73
|
"engines": {
|
|
71
74
|
"node": ">=22",
|
|
@@ -80,7 +83,8 @@
|
|
|
80
83
|
"test": "vitest run",
|
|
81
84
|
"typecheck": "tsc --noEmit --project tsconfig.json",
|
|
82
85
|
"fix": "prettier --write . && eslint --fix . --max-warnings=0",
|
|
83
|
-
"
|
|
86
|
+
"format": "prettier --check .",
|
|
87
|
+
"lint": "eslint . --max-warnings=0",
|
|
84
88
|
"clean": "rm -rf dist coverage node_modules"
|
|
85
89
|
}
|
|
86
90
|
}
|
package/src/FunctionPath.ts
CHANGED
|
@@ -5,7 +5,6 @@ import * as GroupPath from "./GroupPath";
|
|
|
5
5
|
* The path to a function in the Confect API.
|
|
6
6
|
*/
|
|
7
7
|
export class FunctionPath extends Schema.Class<FunctionPath>("FunctionPath")({
|
|
8
|
-
// TODO: Support root-level functions (also must be supported in the other packages, e.g. `core` and `server`)
|
|
9
8
|
groupPath: GroupPath.GroupPath,
|
|
10
9
|
name: Schema.NonEmptyString,
|
|
11
10
|
}) {}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
|
|
3
|
-
//#region rolldown:runtime
|
|
4
|
-
var __create = Object.create;
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
-
key = keys[i];
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
value: mod,
|
|
23
|
-
enumerable: true
|
|
24
|
-
}) : target, mod));
|
|
25
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { layer as layer$1 } from "./internal/commandExecutor.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.js
|
|
4
|
-
/**
|
|
5
|
-
* @since 1.0.0
|
|
6
|
-
* @category layer
|
|
7
|
-
*/
|
|
8
|
-
const layer = layer$1;
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { layer };
|
|
12
|
-
//# sourceMappingURL=NodeCommandExecutor.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeCommandExecutor.mjs","names":["internal.layer"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeCommandExecutor.js"],"sourcesContent":["import * as internal from \"./internal/commandExecutor.js\";\n/**\n * @since 1.0.0\n * @category layer\n */\nexport const layer = internal.layer;\n//# sourceMappingURL=NodeCommandExecutor.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAKA,MAAa,QAAQA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { layer as layer$1 } from "./internal/fileSystem.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeFileSystem.js
|
|
4
|
-
/**
|
|
5
|
-
* @since 1.0.0
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category layer
|
|
10
|
-
*/
|
|
11
|
-
const layer = layer$1;
|
|
12
|
-
|
|
13
|
-
//#endregion
|
|
14
|
-
export { layer };
|
|
15
|
-
//# sourceMappingURL=NodeFileSystem.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeFileSystem.mjs","names":["internal.layer"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeFileSystem.js"],"sourcesContent":["/**\n * @since 1.0.0\n */\nimport * as internal from \"./internal/fileSystem.js\";\n/**\n * @since 1.0.0\n * @category layer\n */\nexport const layer = internal.layer;\n//# sourceMappingURL=NodeFileSystem.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAQA,MAAa,QAAQA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { layer as layer$1, layerPosix as layerPosix$1, layerWin32 as layerWin32$1 } from "./internal/path.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodePath.js
|
|
4
|
-
/**
|
|
5
|
-
* @since 1.0.0
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category layer
|
|
10
|
-
*/
|
|
11
|
-
const layer = layer$1;
|
|
12
|
-
/**
|
|
13
|
-
* @since 1.0.0
|
|
14
|
-
* @category layer
|
|
15
|
-
*/
|
|
16
|
-
const layerPosix = layerPosix$1;
|
|
17
|
-
/**
|
|
18
|
-
* @since 1.0.0
|
|
19
|
-
* @category layer
|
|
20
|
-
*/
|
|
21
|
-
const layerWin32 = layerWin32$1;
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export { layer };
|
|
25
|
-
//# sourceMappingURL=NodePath.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodePath.mjs","names":["internal.layer","internal.layerPosix","internal.layerWin32"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodePath.js"],"sourcesContent":["/**\n * @since 1.0.0\n */\nimport * as internal from \"./internal/path.js\";\n/**\n * @since 1.0.0\n * @category layer\n */\nexport const layer = internal.layer;\n/**\n * @since 1.0.0\n * @category layer\n */\nexport const layerPosix = internal.layerPosix;\n/**\n * @since 1.0.0\n * @category layer\n */\nexport const layerWin32 = internal.layerWin32;\n//# sourceMappingURL=NodePath.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;AAQA,MAAa,QAAQA;;;;;AAKrB,MAAa,aAAaC;;;;;AAK1B,MAAa,aAAaC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { runMain as runMain$1 } from "./internal/runtime.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeRuntime.js
|
|
4
|
-
/**
|
|
5
|
-
* @since 1.0.0
|
|
6
|
-
* @category runtime
|
|
7
|
-
*/
|
|
8
|
-
const runMain = runMain$1;
|
|
9
|
-
|
|
10
|
-
//#endregion
|
|
11
|
-
export { runMain };
|
|
12
|
-
//# sourceMappingURL=NodeRuntime.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeRuntime.mjs","names":["internal.runMain"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeRuntime.js"],"sourcesContent":["import * as internal from \"./internal/runtime.js\";\n/**\n * @since 1.0.0\n * @category runtime\n */\nexport const runMain = internal.runMain;\n//# sourceMappingURL=NodeRuntime.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAKA,MAAa,UAAUA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { layer as layer$1, make as make$1 } from "./internal/terminal.mjs";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeTerminal.js
|
|
4
|
-
/**
|
|
5
|
-
* @since 1.0.0
|
|
6
|
-
* @category constructors
|
|
7
|
-
*/
|
|
8
|
-
const make = make$1;
|
|
9
|
-
/**
|
|
10
|
-
* @since 1.0.0
|
|
11
|
-
* @category layer
|
|
12
|
-
*/
|
|
13
|
-
const layer = layer$1;
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { layer };
|
|
17
|
-
//# sourceMappingURL=NodeTerminal.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NodeTerminal.mjs","names":["InternalTerminal.make","InternalTerminal.layer"],"sources":["../../../../../../../../../../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/NodeTerminal.js"],"sourcesContent":["import * as InternalTerminal from \"./internal/terminal.js\";\n/**\n * @since 1.0.0\n * @category constructors\n */\nexport const make = InternalTerminal.make;\n/**\n * @since 1.0.0\n * @category layer\n */\nexport const layer = InternalTerminal.layer;\n//# sourceMappingURL=NodeTerminal.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAKA,MAAa,OAAOA;;;;;AAKpB,MAAa,QAAQC"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { handleErrnoException } from "./error.mjs";
|
|
2
|
-
import { fromReadable } from "./stream.mjs";
|
|
3
|
-
import { fromWritable } from "./sink.mjs";
|
|
4
|
-
import * as Effect from "effect/Effect";
|
|
5
|
-
import { constUndefined, identity, pipe } from "effect/Function";
|
|
6
|
-
import * as Layer from "effect/Layer";
|
|
7
|
-
import * as Option from "effect/Option";
|
|
8
|
-
import * as Stream from "effect/Stream";
|
|
9
|
-
import * as Deferred from "effect/Deferred";
|
|
10
|
-
import * as Inspectable from "effect/Inspectable";
|
|
11
|
-
import * as FileSystem from "@effect/platform/FileSystem";
|
|
12
|
-
import * as Sink from "effect/Sink";
|
|
13
|
-
import * as Command from "@effect/platform/Command";
|
|
14
|
-
import * as CommandExecutor from "@effect/platform/CommandExecutor";
|
|
15
|
-
import * as ChildProcess from "node:child_process";
|
|
16
|
-
|
|
17
|
-
//#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js
|
|
18
|
-
const inputToStdioOption = (stdin) => typeof stdin === "string" ? stdin : "pipe";
|
|
19
|
-
const outputToStdioOption = (output) => typeof output === "string" ? output : "pipe";
|
|
20
|
-
const toError = (err) => err instanceof globalThis.Error ? err : new globalThis.Error(String(err));
|
|
21
|
-
const toPlatformError = (method, error, command) => {
|
|
22
|
-
const flattened = Command.flatten(command).reduce((acc, curr) => {
|
|
23
|
-
const command$1 = `${curr.command} ${curr.args.join(" ")}`;
|
|
24
|
-
return acc.length === 0 ? command$1 : `${acc} | ${command$1}`;
|
|
25
|
-
}, "");
|
|
26
|
-
return handleErrnoException("Command", method)(error, [flattened]);
|
|
27
|
-
};
|
|
28
|
-
const ProcessProto = {
|
|
29
|
-
[CommandExecutor.ProcessTypeId]: CommandExecutor.ProcessTypeId,
|
|
30
|
-
...Inspectable.BaseProto,
|
|
31
|
-
toJSON() {
|
|
32
|
-
return {
|
|
33
|
-
_id: "@effect/platform/CommandExecutor/Process",
|
|
34
|
-
pid: this.pid
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
const runCommand = (fileSystem) => (command) => {
|
|
39
|
-
switch (command._tag) {
|
|
40
|
-
case "StandardCommand": {
|
|
41
|
-
const spawn = Effect.flatMap(Deferred.make(), (exitCode) => Effect.async((resume) => {
|
|
42
|
-
const handle = ChildProcess.spawn(command.command, command.args, {
|
|
43
|
-
stdio: [
|
|
44
|
-
inputToStdioOption(command.stdin),
|
|
45
|
-
outputToStdioOption(command.stdout),
|
|
46
|
-
outputToStdioOption(command.stderr)
|
|
47
|
-
],
|
|
48
|
-
cwd: Option.getOrElse(command.cwd, constUndefined),
|
|
49
|
-
shell: command.shell,
|
|
50
|
-
env: {
|
|
51
|
-
...process.env,
|
|
52
|
-
...Object.fromEntries(command.env)
|
|
53
|
-
},
|
|
54
|
-
detached: process.platform !== "win32"
|
|
55
|
-
});
|
|
56
|
-
handle.on("error", (err) => {
|
|
57
|
-
resume(Effect.fail(toPlatformError("spawn", err, command)));
|
|
58
|
-
});
|
|
59
|
-
handle.on("exit", (...args) => {
|
|
60
|
-
Deferred.unsafeDone(exitCode, Effect.succeed(args));
|
|
61
|
-
});
|
|
62
|
-
handle.on("spawn", () => {
|
|
63
|
-
resume(Effect.succeed([handle, exitCode]));
|
|
64
|
-
});
|
|
65
|
-
return Effect.sync(() => {
|
|
66
|
-
handle.kill("SIGTERM");
|
|
67
|
-
});
|
|
68
|
-
}));
|
|
69
|
-
const killProcessGroup = process.platform === "win32" ? (handle, _) => Effect.async((resume) => {
|
|
70
|
-
ChildProcess.exec(`taskkill /pid ${handle.pid} /T /F`, (error) => {
|
|
71
|
-
if (error) resume(Effect.fail(toPlatformError("kill", toError(error), command)));
|
|
72
|
-
else resume(Effect.void);
|
|
73
|
-
});
|
|
74
|
-
}) : (handle, signal) => Effect.try({
|
|
75
|
-
try: () => process.kill(-handle.pid, signal),
|
|
76
|
-
catch: (error) => toPlatformError("kill", toError(error), command)
|
|
77
|
-
});
|
|
78
|
-
const killProcess = (handle, signal) => Effect.suspend(() => handle.kill(signal) ? Effect.void : Effect.fail(toPlatformError("kill", new globalThis.Error("Failed to kill process"), command)));
|
|
79
|
-
return pipe(Option.match(command.cwd, {
|
|
80
|
-
onNone: () => Effect.void,
|
|
81
|
-
onSome: (dir) => fileSystem.access(dir)
|
|
82
|
-
}), Effect.zipRight(Effect.acquireRelease(spawn, ([handle, exitCode]) => Effect.flatMap(Deferred.isDone(exitCode), (done) => {
|
|
83
|
-
if (!done) return killProcessGroup(handle, "SIGTERM").pipe(Effect.orElse(() => killProcess(handle, "SIGTERM")), Effect.zipRight(Deferred.await(exitCode)), Effect.ignore);
|
|
84
|
-
return Effect.flatMap(Deferred.await(exitCode), ([code]) => {
|
|
85
|
-
if (code !== 0 && code !== null) return killProcessGroup(handle, "SIGTERM").pipe(Effect.ignore);
|
|
86
|
-
return Effect.void;
|
|
87
|
-
});
|
|
88
|
-
}))), Effect.map(([handle, exitCodeDeferred]) => {
|
|
89
|
-
let stdin = Sink.drain;
|
|
90
|
-
if (handle.stdin !== null) stdin = fromWritable(() => handle.stdin, (err) => toPlatformError("toWritable", toError(err), command));
|
|
91
|
-
const exitCode = Effect.flatMap(Deferred.await(exitCodeDeferred), ([code, signal]) => {
|
|
92
|
-
if (code !== null) return Effect.succeed(CommandExecutor.ExitCode(code));
|
|
93
|
-
return Effect.fail(toPlatformError("exitCode", new globalThis.Error(`Process interrupted due to receipt of signal: ${signal}`), command));
|
|
94
|
-
});
|
|
95
|
-
const isRunning = Effect.negate(Deferred.isDone(exitCodeDeferred));
|
|
96
|
-
const kill = (signal = "SIGTERM") => killProcessGroup(handle, signal).pipe(Effect.orElse(() => killProcess(handle, signal)), Effect.zipRight(Effect.asVoid(Deferred.await(exitCodeDeferred))));
|
|
97
|
-
const pid = CommandExecutor.ProcessId(handle.pid);
|
|
98
|
-
const stderr = fromReadable(() => handle.stderr, (err) => toPlatformError("fromReadable(stderr)", toError(err), command));
|
|
99
|
-
let stdout = fromReadable(() => handle.stdout, (err) => toPlatformError("fromReadable(stdout)", toError(err), command));
|
|
100
|
-
if (typeof command.stdout !== "string") stdout = Stream.transduce(stdout, command.stdout);
|
|
101
|
-
return Object.assign(Object.create(ProcessProto), {
|
|
102
|
-
pid,
|
|
103
|
-
exitCode,
|
|
104
|
-
isRunning,
|
|
105
|
-
kill,
|
|
106
|
-
stdin,
|
|
107
|
-
stderr,
|
|
108
|
-
stdout
|
|
109
|
-
});
|
|
110
|
-
}), typeof command.stdin === "string" ? identity : Effect.tap((process$1) => Effect.forkDaemon(Stream.run(command.stdin, process$1.stdin))));
|
|
111
|
-
}
|
|
112
|
-
case "PipedCommand": {
|
|
113
|
-
const flattened = Command.flatten(command);
|
|
114
|
-
if (flattened.length === 1) return pipe(flattened[0], runCommand(fileSystem));
|
|
115
|
-
const head = flattened[0];
|
|
116
|
-
const tail = flattened.slice(1);
|
|
117
|
-
const initial = tail.slice(0, tail.length - 1);
|
|
118
|
-
const last = tail[tail.length - 1];
|
|
119
|
-
const stream = initial.reduce((stdin, command$1) => pipe(Command.stdin(command$1, stdin), runCommand(fileSystem), Effect.map((process$1) => process$1.stdout), Stream.unwrapScoped), pipe(runCommand(fileSystem)(head), Effect.map((process$1) => process$1.stdout), Stream.unwrapScoped));
|
|
120
|
-
return pipe(Command.stdin(last, stream), runCommand(fileSystem));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
/** @internal */
|
|
125
|
-
const layer = /* @__PURE__ */ Layer.effect(CommandExecutor.CommandExecutor, /* @__PURE__ */ pipe(FileSystem.FileSystem, /* @__PURE__ */ Effect.map((fileSystem) => CommandExecutor.makeExecutor(runCommand(fileSystem)))));
|
|
126
|
-
|
|
127
|
-
//#endregion
|
|
128
|
-
export { layer };
|
|
129
|
-
//# sourceMappingURL=commandExecutor.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"commandExecutor.mjs","names":["command","process"],"sources":["../../../../../../../../../../../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/commandExecutor.js"],"sourcesContent":["import * as Command from \"@effect/platform/Command\";\nimport * as CommandExecutor from \"@effect/platform/CommandExecutor\";\nimport * as FileSystem from \"@effect/platform/FileSystem\";\nimport * as Deferred from \"effect/Deferred\";\nimport * as Effect from \"effect/Effect\";\nimport { constUndefined, identity, pipe } from \"effect/Function\";\nimport * as Inspectable from \"effect/Inspectable\";\nimport * as Layer from \"effect/Layer\";\nimport * as Option from \"effect/Option\";\nimport * as Sink from \"effect/Sink\";\nimport * as Stream from \"effect/Stream\";\nimport * as ChildProcess from \"node:child_process\";\nimport { handleErrnoException } from \"./error.js\";\nimport { fromWritable } from \"./sink.js\";\nimport { fromReadable } from \"./stream.js\";\nconst inputToStdioOption = stdin => typeof stdin === \"string\" ? stdin : \"pipe\";\nconst outputToStdioOption = output => typeof output === \"string\" ? output : \"pipe\";\nconst toError = err => err instanceof globalThis.Error ? err : new globalThis.Error(String(err));\nconst toPlatformError = (method, error, command) => {\n const flattened = Command.flatten(command).reduce((acc, curr) => {\n const command = `${curr.command} ${curr.args.join(\" \")}`;\n return acc.length === 0 ? command : `${acc} | ${command}`;\n }, \"\");\n return handleErrnoException(\"Command\", method)(error, [flattened]);\n};\nconst ProcessProto = {\n [CommandExecutor.ProcessTypeId]: CommandExecutor.ProcessTypeId,\n ...Inspectable.BaseProto,\n toJSON() {\n return {\n _id: \"@effect/platform/CommandExecutor/Process\",\n pid: this.pid\n };\n }\n};\nconst runCommand = fileSystem => command => {\n switch (command._tag) {\n case \"StandardCommand\":\n {\n const spawn = Effect.flatMap(Deferred.make(), exitCode => Effect.async(resume => {\n const handle = ChildProcess.spawn(command.command, command.args, {\n stdio: [inputToStdioOption(command.stdin), outputToStdioOption(command.stdout), outputToStdioOption(command.stderr)],\n cwd: Option.getOrElse(command.cwd, constUndefined),\n shell: command.shell,\n env: {\n ...process.env,\n ...Object.fromEntries(command.env)\n },\n detached: process.platform !== \"win32\"\n });\n handle.on(\"error\", err => {\n resume(Effect.fail(toPlatformError(\"spawn\", err, command)));\n });\n handle.on(\"exit\", (...args) => {\n Deferred.unsafeDone(exitCode, Effect.succeed(args));\n });\n handle.on(\"spawn\", () => {\n resume(Effect.succeed([handle, exitCode]));\n });\n return Effect.sync(() => {\n handle.kill(\"SIGTERM\");\n });\n }));\n const killProcessGroup = process.platform === \"win32\" ? (handle, _) => Effect.async(resume => {\n ChildProcess.exec(`taskkill /pid ${handle.pid} /T /F`, error => {\n if (error) {\n resume(Effect.fail(toPlatformError(\"kill\", toError(error), command)));\n } else {\n resume(Effect.void);\n }\n });\n }) : (handle, signal) => Effect.try({\n try: () => process.kill(-handle.pid, signal),\n catch: error => toPlatformError(\"kill\", toError(error), command)\n });\n const killProcess = (handle, signal) => Effect.suspend(() => handle.kill(signal) ? Effect.void : Effect.fail(toPlatformError(\"kill\", new globalThis.Error(\"Failed to kill process\"), command)));\n return pipe(\n // Validate that the directory is accessible\n Option.match(command.cwd, {\n onNone: () => Effect.void,\n onSome: dir => fileSystem.access(dir)\n }), Effect.zipRight(Effect.acquireRelease(spawn, ([handle, exitCode]) => Effect.flatMap(Deferred.isDone(exitCode), done => {\n if (!done) {\n // Process is still running, kill it\n return killProcessGroup(handle, \"SIGTERM\").pipe(Effect.orElse(() => killProcess(handle, \"SIGTERM\")), Effect.zipRight(Deferred.await(exitCode)), Effect.ignore);\n }\n // Process has already exited, check if we need to clean up children\n return Effect.flatMap(Deferred.await(exitCode), ([code]) => {\n if (code !== 0 && code !== null) {\n // Non-zero exit code, attempt to clean up process group\n return killProcessGroup(handle, \"SIGTERM\").pipe(Effect.ignore);\n }\n return Effect.void;\n });\n }))), Effect.map(([handle, exitCodeDeferred]) => {\n let stdin = Sink.drain;\n if (handle.stdin !== null) {\n stdin = fromWritable(() => handle.stdin, err => toPlatformError(\"toWritable\", toError(err), command));\n }\n const exitCode = Effect.flatMap(Deferred.await(exitCodeDeferred), ([code, signal]) => {\n if (code !== null) {\n return Effect.succeed(CommandExecutor.ExitCode(code));\n }\n // If code is `null`, then `signal` must be defined. See the NodeJS\n // documentation for the `\"exit\"` event on a `child_process`.\n // https://nodejs.org/api/child_process.html#child_process_event_exit\n return Effect.fail(toPlatformError(\"exitCode\", new globalThis.Error(`Process interrupted due to receipt of signal: ${signal}`), command));\n });\n const isRunning = Effect.negate(Deferred.isDone(exitCodeDeferred));\n const kill = (signal = \"SIGTERM\") => killProcessGroup(handle, signal).pipe(Effect.orElse(() => killProcess(handle, signal)), Effect.zipRight(Effect.asVoid(Deferred.await(exitCodeDeferred))));\n const pid = CommandExecutor.ProcessId(handle.pid);\n const stderr = fromReadable(() => handle.stderr, err => toPlatformError(\"fromReadable(stderr)\", toError(err), command));\n let stdout = fromReadable(() => handle.stdout, err => toPlatformError(\"fromReadable(stdout)\", toError(err), command));\n // TODO: add Sink.isSink\n if (typeof command.stdout !== \"string\") {\n stdout = Stream.transduce(stdout, command.stdout);\n }\n return Object.assign(Object.create(ProcessProto), {\n pid,\n exitCode,\n isRunning,\n kill,\n stdin,\n stderr,\n stdout\n });\n }), typeof command.stdin === \"string\" ? identity : Effect.tap(process => Effect.forkDaemon(Stream.run(command.stdin, process.stdin))));\n }\n case \"PipedCommand\":\n {\n const flattened = Command.flatten(command);\n if (flattened.length === 1) {\n return pipe(flattened[0], runCommand(fileSystem));\n }\n const head = flattened[0];\n const tail = flattened.slice(1);\n const initial = tail.slice(0, tail.length - 1);\n const last = tail[tail.length - 1];\n const stream = initial.reduce((stdin, command) => pipe(Command.stdin(command, stdin), runCommand(fileSystem), Effect.map(process => process.stdout), Stream.unwrapScoped), pipe(runCommand(fileSystem)(head), Effect.map(process => process.stdout), Stream.unwrapScoped));\n return pipe(Command.stdin(last, stream), runCommand(fileSystem));\n }\n }\n};\n/** @internal */\nexport const layer = /*#__PURE__*/Layer.effect(CommandExecutor.CommandExecutor, /*#__PURE__*/pipe(FileSystem.FileSystem, /*#__PURE__*/Effect.map(fileSystem => CommandExecutor.makeExecutor(runCommand(fileSystem)))));\n//# sourceMappingURL=commandExecutor.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;AAeA,MAAM,sBAAqB,UAAS,OAAO,UAAU,WAAW,QAAQ;AACxE,MAAM,uBAAsB,WAAU,OAAO,WAAW,WAAW,SAAS;AAC5E,MAAM,WAAU,QAAO,eAAe,WAAW,QAAQ,MAAM,IAAI,WAAW,MAAM,OAAO,IAAI,CAAC;AAChG,MAAM,mBAAmB,QAAQ,OAAO,YAAY;CAClD,MAAM,YAAY,QAAQ,QAAQ,QAAQ,CAAC,QAAQ,KAAK,SAAS;EAC/D,MAAMA,YAAU,GAAG,KAAK,QAAQ,GAAG,KAAK,KAAK,KAAK,IAAI;AACtD,SAAO,IAAI,WAAW,IAAIA,YAAU,GAAG,IAAI,KAAKA;IAC/C,GAAG;AACN,QAAO,qBAAqB,WAAW,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC;;AAEpE,MAAM,eAAe;EAClB,gBAAgB,gBAAgB,gBAAgB;CACjD,GAAG,YAAY;CACf,SAAS;AACP,SAAO;GACL,KAAK;GACL,KAAK,KAAK;GACX;;CAEJ;AACD,MAAM,cAAa,gBAAc,YA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AW,WAAW,CAAC;;;;;AAKxE,MAAa,QAAqB,sBAAM,OAAO,gBAAgB,iBAA8B,qBAAK,WAAW,YAAyB,uBAAO,KAAI,eAAc,gBAAgB,aAAa,WAAW,WAAW,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { SystemError } from "@effect/platform/Error";
|
|
2
|
-
|
|
3
|
-
//#region ../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/error.js
|
|
4
|
-
/** @internal */
|
|
5
|
-
const handleErrnoException = (module, method) => (err, [path]) => {
|
|
6
|
-
let reason = "Unknown";
|
|
7
|
-
switch (err.code) {
|
|
8
|
-
case "ENOENT":
|
|
9
|
-
reason = "NotFound";
|
|
10
|
-
break;
|
|
11
|
-
case "EACCES":
|
|
12
|
-
reason = "PermissionDenied";
|
|
13
|
-
break;
|
|
14
|
-
case "EEXIST":
|
|
15
|
-
reason = "AlreadyExists";
|
|
16
|
-
break;
|
|
17
|
-
case "EISDIR":
|
|
18
|
-
reason = "BadResource";
|
|
19
|
-
break;
|
|
20
|
-
case "ENOTDIR":
|
|
21
|
-
reason = "BadResource";
|
|
22
|
-
break;
|
|
23
|
-
case "EBUSY":
|
|
24
|
-
reason = "Busy";
|
|
25
|
-
break;
|
|
26
|
-
case "ELOOP":
|
|
27
|
-
reason = "BadResource";
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
return new SystemError({
|
|
31
|
-
reason,
|
|
32
|
-
module,
|
|
33
|
-
method,
|
|
34
|
-
pathOrDescriptor: path,
|
|
35
|
-
syscall: err.syscall,
|
|
36
|
-
description: err.message,
|
|
37
|
-
cause: err
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
export { handleErrnoException };
|
|
43
|
-
//# sourceMappingURL=error.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.mjs","names":[],"sources":["../../../../../../../../../../../../node_modules/.pnpm/@effect+platform-node-shared@0.53.0_@effect+cluster@0.52.9_@effect+platform@0.93.2_effe_e0eeb3aae5ffec3060feb87d17ffb17c/node_modules/@effect/platform-node-shared/dist/esm/internal/error.js"],"sourcesContent":["import { SystemError } from \"@effect/platform/Error\";\n/** @internal */\nexport const handleErrnoException = (module, method) => (err, [path]) => {\n let reason = \"Unknown\";\n switch (err.code) {\n case \"ENOENT\":\n reason = \"NotFound\";\n break;\n case \"EACCES\":\n reason = \"PermissionDenied\";\n break;\n case \"EEXIST\":\n reason = \"AlreadyExists\";\n break;\n case \"EISDIR\":\n reason = \"BadResource\";\n break;\n case \"ENOTDIR\":\n reason = \"BadResource\";\n break;\n case \"EBUSY\":\n reason = \"Busy\";\n break;\n case \"ELOOP\":\n reason = \"BadResource\";\n break;\n }\n return new SystemError({\n reason,\n module,\n method,\n pathOrDescriptor: path,\n syscall: err.syscall,\n description: err.message,\n cause: err\n });\n};\n//# sourceMappingURL=error.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAEA,MAAa,wBAAwB,QAAQ,YAAY,KAAK,CAAC,UAAU;CACvE,IAAI,SAAS;AACb,SAAQ,IAAI,MAAZ;EACE,KAAK;AACH,YAAS;AACT;EACF,KAAK;AACH,YAAS;AACT;EACF,KAAK;AACH,YAAS;AACT;EACF,KAAK;AACH,YAAS;AACT;EACF,KAAK;AACH,YAAS;AACT;EACF,KAAK;AACH,YAAS;AACT;EACF,KAAK;AACH,YAAS;AACT;;AAEJ,QAAO,IAAI,YAAY;EACrB;EACA;EACA;EACA,kBAAkB;EAClB,SAAS,IAAI;EACb,aAAa,IAAI;EACjB,OAAO;EACR,CAAC"}
|