Lines 1-26javascript
2import { NodeHttpClient, NodeRuntime, NodeServices } from "@effect/platform-node";
3import { Console, Context, Effect, FileSystem, Layer, Option, Path, Redacted, Schema, Stream } from "effect";
4import { Argument, Command, Flag, Prompt } from "effect/unstable/cli";
5import { HttpClient, HttpClientRequest } from "effect/unstable/http";
6import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
8var version = "0.1.1";
HighSandbox Evasion Gated Capability
Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.
dist/index.mjsView on unpkg · L6 10//#region src/config.ts
11const Discord = Schema.Struct({});
12const File = Schema.Struct({
13 desktop: Schema.optional(Schema.Struct({})),
14 discord: Schema.optional(Discord)
16var ConfigError = class extends Schema.TaggedErrorClass()("ConfigError", { message: Schema.String }) {};
17var Service$1 = class extends Context.Service()("Config") {};
18const variable = (destination) => `PAGEME_${destination.toUpperCase()}_TOKEN`;
21const absent = (error) => error.reason._tag === "NotFound";
22const fail = (message) => (cause) => new ConfigError({ message: `${message}: ${cause.message}` });
23const layer$2 = (dir) => Layer.effect(Service$1, Effect.gen(function* () {
24 const fs = yield* FileSystem.FileSystem;
25 const pathOf = yield* Path.Path;
26 const path = pathOf.join(dir, "config.json");