@akterjs/cli 0.1.2 → 0.1.4
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 +2 -2
- package/dist/{Argument-D81dqizB.mjs → Argument-BKjmk8CZ.mjs} +1 -1
- package/dist/{ChildProcess-BCIwxPGc.mjs → ChildProcess-UWPy-kPn.mjs} +2 -2
- package/dist/{CliError-Cf5xqkkj.mjs → CliError-CphGZMfO.mjs} +2 -2
- package/dist/{Command-Dzq9KM-h.mjs → Command-D3hF_i6F.mjs} +8 -8
- package/dist/{Config-B6OND9WR.mjs → Config-DEUiBxw4.mjs} +2 -2
- package/dist/{Console-BKHUkH6a.mjs → Console-DY7H086H.mjs} +1 -1
- package/dist/{Digest-CBd3uv5B.mjs → Digest-CnBYV3Oh.mjs} +2 -2
- package/dist/{Effect-CKFpqbmw.mjs → Effect-CFIPV2Jg.mjs} +44 -4
- package/dist/{FileSystem-4pPcEb_i.mjs → FileSystem-iEC-kUB-.mjs} +2 -2
- package/dist/{HttpClientError-BUeMWx70.mjs → HttpClientError-BVd83gxQ.mjs} +1 -1
- package/dist/{HttpClientResponse-D5ZKICVV.mjs → HttpClientResponse-CifutXCF.mjs} +4 -4
- package/dist/{Path-Djdv_eF5.mjs → Path-BRnAx8py.mjs} +1 -1
- package/dist/{Queue-CO5UQ6os.mjs → Queue-CyWN-MDp.mjs} +1 -1
- package/dist/{Ref-BIPOxJNH.mjs → Ref-CX3ghLq6.mjs} +1 -1
- package/dist/{Runtime-BInIAwK3.mjs → Runtime-CyqeMpLX.mjs} +1 -1
- package/dist/{Schema-MiKt5K1v.mjs → Schema-O3QUdX3B.mjs} +1 -1
- package/dist/{SecureRandom-B_U4ysO3.mjs → SecureRandom-DYpl-YDn.mjs} +2 -2
- package/dist/{Semaphore-DOVJ4ZGS.mjs → Semaphore-DHYKAQSv.mjs} +1 -1
- package/dist/{Stdio-KylmOBX_.mjs → Stdio-7l23nD6W.mjs} +1 -1
- package/dist/{Stream-bK9QIETN.mjs → Stream-BeqiANg7.mjs} +3 -3
- package/dist/{TerminalCapabilities-w_44MAca.mjs → TerminalCapabilities-R2LPyCNs.mjs} +3 -3
- package/dist/{WebCrypto-ZI_GNVlw.mjs → WebCrypto-C_95GMdw.mjs} +1 -1
- package/dist/{actor-call.service-CGM_vD9u.mjs → actor-call.service-vJm8gKjI.mjs} +15 -15
- package/dist/{actor-client.adapter-Coem7gF1.mjs → actor-client.adapter-CfKUj7Gi.mjs} +32 -16
- package/dist/{akter-program.config-Bhpa-tW7.mjs → akter-program.config-C-mFiZp1.mjs} +252 -39
- package/dist/akter.cli.mjs +1 -1
- package/dist/app-cli.config.mjs +4 -3
- package/dist/archive/akter-archive.schema.mjs +1 -1
- package/dist/archive/akter-archive.service.mjs +7 -7
- package/dist/archive/archive-cli.config.mjs +6 -6
- package/dist/archive/archive-invalid.errors.mjs +1 -1
- package/dist/archive/tar.pure.mjs +1 -1
- package/dist/archive/zstd.adapter.mjs +2 -2
- package/dist/bench/bench-report.pure.mjs +7 -2
- package/dist/bench/bench-runner.pure.mjs +40 -3
- package/dist/bench/bench.service.mjs +17 -14
- package/dist/{cli-runtime.layer-BqK2mmVL.mjs → cli-runtime.layer-Bwuqll8h.mjs} +13 -13
- package/dist/cli-runtime.layer.mjs +1 -1
- package/dist/{cloud-client.adapter-Cy1BjDbG.mjs → cloud-client.adapter-Ce4oyGNh.mjs} +94 -17
- package/dist/{cloud-client.adapter-DOVMoYAj.mjs → cloud-client.adapter-Dln8NW-9.mjs} +9 -9
- package/dist/command/akter-commands.config.mjs +2 -2
- package/dist/command/akter-program.config.mjs +1 -1
- package/dist/credentials/credentials.service.mjs +5 -5
- package/dist/credentials/keychain.adapter.mjs +3 -3
- package/dist/credentials/login.config.mjs +9 -9
- package/dist/deploy/auth/api-attempt.service.mjs +4 -4
- package/dist/deploy/auth/token-refresh.errors.mjs +1 -1
- package/dist/deploy/build-bundle.adapter.mjs +8 -8
- package/dist/deploy/cloud-client.adapter.mjs +1 -1
- package/dist/deploy/cloud-url.pure.mjs +2 -2
- package/dist/deploy/deploy-failed.errors.mjs +2 -2
- package/dist/deploy/deploy.service.mjs +6 -6
- package/dist/deploy/request-failure.pure.mjs +3 -3
- package/dist/docs/docs.config.mjs +1 -1
- package/dist/{docs.config-CWSzsV0h.mjs → docs.config-Dy0MFrKd.mjs} +9 -9
- package/dist/export/actor-export.service.mjs +10 -10
- package/dist/export/export-failed.errors.mjs +1 -1
- package/dist/export/export-failure.pure.mjs +14 -3
- package/dist/export/ordered-lines.pure.mjs +3 -3
- package/dist/export/ranged-download.pure.mjs +3 -3
- package/dist/export/snapshot-download.pure.mjs +3 -3
- package/dist/{hosted-runtime.layer-Cx3IPsEd.mjs → hosted-runtime.layer-BDXPqzSp.mjs} +128 -99
- package/dist/local/environment-cli.config.mjs +4 -4
- package/dist/local/local-cli.config.mjs +9 -9
- package/dist/logs/log-follow.config.mjs +2 -2
- package/dist/logs/log-follow.service.mjs +7 -7
- package/dist/logs/log-lines.pure.mjs +4 -4
- package/dist/{operation-input.pure-CS9iUhqK.mjs → operation-input.pure-B72BbxCG.mjs} +2 -2
- package/dist/operation-output.pure-ChUlePFj.mjs +120 -0
- package/dist/{operation-registry.pure-DVC8EDgj.mjs → operation-registry.pure-DeoTbR3J.mjs} +2 -2
- package/dist/registry/actor-call.service.mjs +1 -1
- package/dist/registry/actor-commands.config.mjs +6 -6
- package/dist/registry/approval.service.mjs +5 -5
- package/dist/registry/cloud-commands.config.mjs +3 -3
- package/dist/registry/cloud-served.pure.mjs +1 -1
- package/dist/registry/operation-call.service.mjs +42 -23
- package/dist/registry/operation-input.pure.mjs +1 -1
- package/dist/registry/operation-output.pure.mjs +1 -91
- package/dist/registry/served-command.config.mjs +6 -6
- package/dist/runner-exited.errors.mjs +2 -2
- package/dist/terminal/cli-exit.errors.mjs +2 -2
- package/dist/terminal/cli-failure.pure.mjs +7 -7
- package/dist/terminal/confirm.adapter.mjs +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ The `akter` command, built on `effect/cli`:
|
|
|
28
28
|
- `akter export --organization <organization> --app <app> --url <control-url> --out <folder>`: download every actor's database and history from Akter Cloud into `<folder>/shards/<shard>/<Actor>/<key>/actor.db`, the layout `akter dev` serves. Each `actor.db` is a decrypted, consistent SQLite backup holding the actor's state, tables, command journal, timers, outbox and jobs, and nothing else: no Cloud keys, export records or file grants. Each distinct file the actor's database names goes to `files/<sha256>` beside it, downloaded and checked before the database. It lists the app's 300 shards, 32 at a time, then exports their actors 4 at a time, printing each actor's lines whole and in shard order: it takes one snapshot per actor, downloads it in reads of at most 64 KiB with a progress line every MiB, and checks the SHA-256 and blanks the file grants before it renames the download to `actor.db`. Running it again with the same `--out` keeps finished actors and resumes a partial one from the same snapshot. An erased actor is skipped with a line saying so. A replaced, unauthenticated or mismatched snapshot deletes its partial download and exits nonzero. The server verifies a MAC over every page of the snapshot before it reports it, so a page rolled back within the snapshot stops the export; a rollback inside the live `actor.db` is outside that check. The key comes from `Credentials` and needs export scope.
|
|
29
29
|
- `akter migrate --all`: apply pending migrations to every actor in the folder now, instead of on each actor's next open. It loads the same entry as `akter dev` and reads its `app` export, saying what to export when there is none, writes a runner to `node_modules/.akter/migrate.mjs` that calls `Akter.migrate`, and prints one line per actor with its old and new version (`Room "lobby": version 1 -> 2`). It stops at the first actor that fails, prints its type and key and why it failed (for a migration, its number and SQLite's message and code) and exits 1; the actors after it are left as they were. `--dry-run` prints the same lines without writing, and `--dir` and `--entry` work as they do for `akter dev`. Without `--all` it exits 2, since migrating a single actor isn't built yet. Against Akter Cloud it will run through the Cloud API once that exists.
|
|
30
30
|
- `akter history <Actor>/<key>`: print an actor's command journal, oldest first, one line per command with its time, command, principal, payload and outcome (`-> ok` with the value, or `-> failed` with the command's typed error, such as `NotMemberError`). It loads the same entry as `akter dev`, writes a runner to `node_modules/.akter/history.mjs` and reads the folder through `Akter.local` and the actor's `historyStream`, which reads the journal 500 commands at a time, so a long history prints as it is read instead of being held in memory. `--json` prints one JSON object per command (`seq`, `at`, `command`, `commandId`, `principal`, `payload`, `outcome` and `value` or `error`), `--since 1h` keeps only the commands from that long ago until now (a whole number with `ms`, `s`, `m`, `h` or `d`), and `--dir` and `--entry` work as they do for `akter dev`. When `--since` or a history retention cuts the journal, the first line says from when it is complete (`complete since <time>`, or `{"coveredSince":"<time>"}` with `--json`), and the line repeats if a prune moves that time while the history prints. An actor name the app doesn't serve, a key its schema refuses or a malformed `--since` exits 2 and says why. `--verify` reruns the actor's kept history against the entry's current handlers through `Verify.replay`. It prints the window it replayed, then either `no difference` or the first command whose outcome differs, with its seq, command, command id and time and the expected and actual outcomes, and exits 1 when it finds one. `--json` prints the report as one JSON object, and `--verify` with `--since` exits 2, because replay starts from the actor's first command. When a history retention has pruned the start of the journal, `--verify` exits 1 and says from when the history is complete. Akter Cloud already serves an actor's history (`GET /v1/organizations/{organization}/apps/{app}/actors/{actor}/{key}/history`); this command doesn't call it yet.
|
|
31
|
-
- `akter bench <workload>`: run a workload module (`export const workload = ({ id, kind, url }) => ({ name, open, step })`, where `kind` is `"local"`, `"cloud"` or `"comparison"`, so a workload sends a development identity such as `akter-principal` only to `akter dev`) against `akter dev` or an Akter Cloud app and print one row per outcome, failed steps included as `failed: <tag>`, each with steps, steps per second and p50, p90, p99 and max latency, plus the hardware, runtime, package versions, git commit and lockfile SHA-256. Without `--url` it starts `akter dev` on an empty temporary folder through a runner at `node_modules/.akter/bench.mjs`, and stops it after the run; `--url` takes a loopback `akter dev` someone else started, or any other URL as an Akter Cloud app: the CLI signs in with its credential (`AKTER_API_KEY`, else the key `akter login` saved) and passes the runner the session's bearer header on stdin, then the current one every 10 seconds, so a run longer than the 15-minute token keeps signing its steps. `--system <name> --url <url>` runs a workload against another system for comparison, such as `--system "Rivet actor"`: akter bench signs in to nothing, gives the workload no Akter client, and labels the report `COMPARISON RUN`. `--duration` (30s) and `--concurrency` (8) set the run, `--step-timeout` (30s) bounds the workload's `open` and each step, which counts as `failed: no answer within <ms> ms` when it runs out, and `--json` prints one JSON object. A local report starts with a `LOCAL RUN` notice and `"local": true`; a Cloud report starts with `AKTER CLOUD RUN`, says its latencies include the generator's network path and count only when the generator ran off the machine under load, and has `"local": false`. Cost per row is always `unmeasured`: the bench doesn't read the app's usage yet. The flash-sale and collab-doc examples run theirs with `pnpm bench`.
|
|
31
|
+
- `akter bench <workload>`: run a workload module (`export const workload = ({ id, kind, url }) => ({ name, open, step })`, where `kind` is `"local"`, `"cloud"` or `"comparison"`, so a workload sends a development identity such as `akter-principal` only to `akter dev`) against `akter dev` or an Akter Cloud app and print one row per outcome, failed steps included as `failed: <tag>`, each with steps, steps per second and p50, p90, p99 and max latency, plus the hardware, runtime, package versions, git commit and lockfile SHA-256. Without `--url` it starts `akter dev` on an empty temporary folder through a runner at `node_modules/.akter/bench.mjs`, and stops it after the run; `--url` takes a loopback `akter dev` someone else started, or any other URL as an Akter Cloud app: the CLI signs in with its credential (`AKTER_API_KEY`, else the key `akter login` saved) and passes the runner the session's bearer header on stdin, then the current one every 10 seconds, so a run longer than the 15-minute token keeps signing its steps. `--system <name> --url <url>` runs a workload against another system for comparison, such as `--system "Rivet actor"`: akter bench signs in to nothing, gives the workload no Akter client, and labels the report `COMPARISON RUN`. `--duration` (30s) and `--concurrency` (8) set the run, `--step-timeout` (30s) bounds the workload's `open` and each step, which counts as `failed: no answer within <ms> ms` when it runs out, `--rate <n>` runs an open loop that starts n steps a second with at most `--concurrency` in flight (a step past it counts as `failed: over <n> in flight`) and times each from its scheduled start, and `--json` prints one JSON object. A local report starts with a `LOCAL RUN` notice and `"local": true`; a Cloud report starts with `AKTER CLOUD RUN`, says its latencies include the generator's network path and count only when the generator ran off the machine under load, and has `"local": false`. Cost per row is always `unmeasured`: the bench doesn't read the app's usage yet. The flash-sale and collab-doc examples run theirs with `pnpm bench`.
|
|
32
32
|
|
|
33
33
|
- `akter <group> <operation>`: one command per Cloud API endpoint, derived at startup from the OpenAPI spec of `@akterjs/cloud-api` embedded by `generate` (`src/registry/`). The registry itself is `@akterjs/cloud-api/operations`, shared with Phase 12's MCP server: `operationsOf` turns each endpoint into an `Operation`: its command (`[kebab(group), kebab(name)]`, such as `apps delete`), its MCP tool name (`apps_delete`), its description, its fields (path, query and body properties, or one `payload` for a non-object body), a self-contained JSON Schema of its input and of its success body (component references rewritten to `$defs`), and its annotations: `readOnly`, `destructive`, `idempotent` and `openWorld`, defaulted from the HTTP method and overridden by the spec's `x-akter` extension, plus `confirm`, which defaults to `destructive`. Phase 12's MCP server builds its tools from the same list. `cloudCommands` gives each operation its flags plus `--input` (the whole input as JSON, `@file` or `-` for stdin), `--json` and `--url`; mutations add `--dry-run`, and operations that need a confirmation add `--approval`, sent as the `akter-approval` header. `OperationCall` validates the input against the operation's schema, asks `Approval` to confirm, signs in through `Credentials`, sends the request and checks the answer against the success schema before printing it. `tests/registry/cloud-commands.config.test.ts` fails when the embedded spec differs from the installed one, when an endpoint has no description or not exactly one command, or when a field's flag collides with another flag, and cloud-api's own tests check tool names, annotations and schemas; the streaming commands (`deploy`, `export`, `history`, `logs follow`) stay hand-written beside them. `akter logs follow` (`src/logs/`) is joined to the registry's `logs` group: it pages `logsRead` from the last cursor through the shared `Credentials` and `CloudClient`, retries what a retry may fix, and never prompts.
|
|
34
34
|
- `akter actors <kind>` and `akter files <kind>`: the registry's other half, the operations on an app's actors, which go over the app's actor RPC (akter ADR 0016) rather than the Cloud API (`@akterjs/client/operations`, which also builds each request with `actorRequestOf`, so the CLI and the MCP server send the same one). `call` and `query` run a command or query (`--member`), `state` prints the actor's state once, `watch` prints a query's reply and each new one as JSON lines (`--count` stops it), `create` and `ensure` create an actor from `--payload`, and `fork` copies the actor into `--into` (a key, written like `--key`): over the actor RPC at a loopback `--url` (akter dev), and on any other target as the Cloud API's `actorForks.create`, which the Cloud registry serves as `actors fork`, with `--organization`, `--app`, `--environment` and `--approval`, confirmed and approved like every dangerous Cloud command (`src/registry/served-command.config.ts`); each has an MCP tool name (`actors_call` and so on) and annotations like the Cloud operations. They take `--actor`, `--key` (JSON, or a bare word as a string key), `--payload` (JSON) and `--url` (else `AKTER_APP_URL`), and mutations take `--dry-run` and `--command-id` (made when missing, so a retry runs once). `ActorCall` sends the request through `@akterjs/client`'s protocol with schema-free JSON payloads: a loopback URL (`akter dev`) needs no sign-in, and any other host gets the bearer token `Credentials` and `CloudClient` sign in for at the Cloud API, whose URL comes from `AKTER_CLOUD_URL` or `akter login`, since `--url` here is the app's. The actor's own errors print as the JSON it encoded (exit 1); the host's map to the exit codes below. `akter files <kind>` covers the file RPCs every actor's group carries, under a group of their own because the Cloud API has none: `list` and `usage` print a page of the actor's files (`--prefix`, `--cursor`, `--limit`), `download` writes a file's bytes to stdout (`--path`, and `--offset` with `--length` for a range; `--json` prints the RPC's base64 chunks instead), and a refusal prints and exits like any other, and `upload` sends `--content` (`@<file>`, `-` for stdin, or base64, as the `files_upload` tool takes it) through the open, append and close session in appends of at most 1 MiB and prints the receipt, which a command attaches at a path. `packages/client/tests/actor-operations.pure.test.ts` builds the RPC groups of real actors and fails when an RPC tag has no kind, and `tests/registry/actor-commands.config.test.ts` fails when an exposed kind lacks exactly one command or a tool distinct from every Cloud one; `warm` is deliberately not exposed, and the `computer` tags reserved for Phase 6 fail it until they are.
|
|
@@ -39,7 +39,7 @@ The `akter` command, built on `effect/cli`:
|
|
|
39
39
|
- One program, two bins: `src/command/akter-program.config.ts` exports `runAkter`, which runs the command on the process's arguments, and `@akterjs/cli/program` exports it. This package's `akter` bin and the unscoped `akter` package's both call it, so it is this CLI (ADR 0009); npm refused to publish the unscoped name, so `npx @akterjs/cli` is the way to run it without installing. `akter --version` prints the package's version, which `generate` writes into `.generated`, so it follows the lockstep release version.
|
|
40
40
|
- Startup: `pnpm build && pnpm measure:startup` times spawn to first output for local commands on Node and Bun (`scripts/measure-startup.cli.ts`); the target is p95 ≤ 300 ms.
|
|
41
41
|
|
|
42
|
-
An operation behind a feature flag (its `x-akter` hint names one, akter-cloud ADR 0030) still runs when named, but is left out of help and unknown-command suggestions, as is a group whose every command is flagged. The baked-in spec cannot tell which flags an organization has; the Cloud API refuses an organization without the flag.
|
|
42
|
+
An operation behind a feature flag (its `x-akter` hint names one, akter-cloud ADR 0030) still runs when named, but is left out of help and unknown-command suggestions, as is a group whose every command is flagged. The baked-in spec cannot tell which flags an organization has; the Cloud API refuses an organization without the flag. The joined `actors fork` command has no flag: it is listed in help, and a loopback URL forks on `akter dev`, which has no flags.
|
|
43
43
|
|
|
44
44
|
Status: `akter dev`, `akter migrate --all`, `akter history` and `akter bench` on a local folder, `akter deploy`, `akter export` and the Cloud API commands against Akter Cloud, and `akter login`, `signup`, `logout` and `docs` are implemented. The other commands are not built yet.
|
|
45
45
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { bn as dual } from "./Option-DkxSnBhp.mjs";
|
|
2
|
-
import { _ as String$1, b as withDescription$1, v as argumentKind, y as optional$1 } from "./Command-
|
|
2
|
+
import { _ as String$1, b as withDescription$1, v as argumentKind, y as optional$1 } from "./Command-D3hF_i6F.mjs";
|
|
3
3
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/cli/Argument.js
|
|
4
4
|
/**
|
|
5
5
|
* Creates a positional string argument.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as flatMap, Gt as scoped, Nt as raceFirst,
|
|
1
|
+
import { B as flatMap, Gt as scoped, Nt as raceFirst, ba as Prototype, bt as never, dt as map, ma as getUnsafe, o as andThen, sa as Service } from "./Effect-CFIPV2Jg.mjs";
|
|
2
2
|
import { Q as getOrThrow, Y as fail, at as succeed } from "./Array-B4kuTQeW.mjs";
|
|
3
3
|
import { w as some, xt as BaseProto } from "./Option-DkxSnBhp.mjs";
|
|
4
|
-
import { B as runCollect, K as splitLines, M as mkString, V as runDrain, i as decodeText, nt as unwrap$1, s as drainFork } from "./Stream-
|
|
4
|
+
import { B as runCollect, K as splitLines, M as mkString, V as runDrain, i as decodeText, nt as unwrap$1, s as drainFork } from "./Stream-BeqiANg7.mjs";
|
|
5
5
|
import { i as TaggedError } from "./Data-CeCULr0-.mjs";
|
|
6
6
|
import { i as value, n as make$2, t as isRedacted } from "./Redacted-RkJrG5Me.mjs";
|
|
7
7
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Brand.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { qt as hasProperty } from "./Option-DkxSnBhp.mjs";
|
|
2
|
-
import { n as errorReported, t as errorExitCode } from "./Runtime-
|
|
3
|
-
import { F as String, Y as Union, an as optionalKey, d as Defect, in as optional, n as ArraySchema, x as Literal, z as TaggedError } from "./Schema-
|
|
2
|
+
import { n as errorReported, t as errorExitCode } from "./Runtime-CyqeMpLX.mjs";
|
|
3
|
+
import { F as String, Y as Union, an as optionalKey, d as Defect, in as optional, n as ArraySchema, x as Literal, z as TaggedError } from "./Schema-O3QUdX3B.mjs";
|
|
4
4
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/cli/CliError.js
|
|
5
5
|
/**
|
|
6
6
|
* Defines structured errors for the unstable CLI parser and runner.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { n as log, t as error } from "./Console-
|
|
2
|
-
import { At as provideContext, B as flatMap, E as contextWith, M as fail, S as catchTags, T as context, W as fnUntraced, Xt as succeed,
|
|
1
|
+
import { n as log, t as error } from "./Console-DY7H086H.mjs";
|
|
2
|
+
import { At as provideContext, B as flatMap, E as contextWith, M as fail, S as catchTags, T as context, W as fnUntraced, Xt as succeed, at as isEffect, ba as Prototype, dt as map$2, et as gen, fa as getOrUndefined, gn as void_, ha as make$1, ht as mapError, jt as provideService, la as empty, o as andThen, oa as Reference, rt as interrupt, sa as Service, sr as MinimumLogLevel, ua as get, v as catchFilter, x as catchTag } from "./Effect-CFIPV2Jg.mjs";
|
|
3
3
|
import { Et as format, On as pipeArguments, S as none, Sn as identity, _ as isSome, bn as dual, d as fromUndefinedOr, f as getOrElse, gt as assignProperty, h as isNone, m as getOrUndefined$1, nn as isNotUndefined, on as isObjectKeyword, qt as hasProperty, r as exists, w as some, x as match } from "./Option-DkxSnBhp.mjs";
|
|
4
4
|
import { Y as fail$1, at as succeed$1, j as map$3 } from "./Array-B4kuTQeW.mjs";
|
|
5
|
-
import { n as errorReported } from "./Runtime-
|
|
6
|
-
import { t as Stdio } from "./Stdio-
|
|
7
|
-
import { C as isQuitError, _ as green, a as Number$1, b as white, c as String$4, d as run$2, f as annotate, g as detectColors, h as cyanBright, i as Int$3, l as Theme, m as bold, n as Confirm, o as Password, p as blackBright, r as Date, s as Select, t as TerminalCapabilities, u as Toggle, v as magenta, y as red } from "./TerminalCapabilities-
|
|
8
|
-
import { a as option } from "./Config-
|
|
9
|
-
import { H as TrueLiterals, at as decodeUnknownEffect, g as Finite$3, h as FalseLiterals, ln as toCodecStringTree, mt as is, o as BooleanLiterals, v as Int$4 } from "./Schema-
|
|
10
|
-
import { a as ShowHelp, c as UnrecognizedOption, d as isCliError, i as MissingOption, l as UserError, n as InvalidValue, o as UnexpectedArgument, r as MissingArgument, s as UnknownSubcommand, t as DuplicateOption, u as getUserMessage } from "./CliError-
|
|
5
|
+
import { n as errorReported } from "./Runtime-CyqeMpLX.mjs";
|
|
6
|
+
import { t as Stdio } from "./Stdio-7l23nD6W.mjs";
|
|
7
|
+
import { C as isQuitError, _ as green, a as Number$1, b as white, c as String$4, d as run$2, f as annotate, g as detectColors, h as cyanBright, i as Int$3, l as Theme, m as bold, n as Confirm, o as Password, p as blackBright, r as Date, s as Select, t as TerminalCapabilities, u as Toggle, v as magenta, y as red } from "./TerminalCapabilities-R2LPyCNs.mjs";
|
|
8
|
+
import { a as option } from "./Config-DEUiBxw4.mjs";
|
|
9
|
+
import { H as TrueLiterals, at as decodeUnknownEffect, g as Finite$3, h as FalseLiterals, ln as toCodecStringTree, mt as is, o as BooleanLiterals, v as Int$4 } from "./Schema-O3QUdX3B.mjs";
|
|
10
|
+
import { a as ShowHelp, c as UnrecognizedOption, d as isCliError, i as MissingOption, l as UserError, n as InvalidValue, o as UnexpectedArgument, r as MissingArgument, s as UnknownSubcommand, t as DuplicateOption, u as getUserMessage } from "./CliError-CphGZMfO.mjs";
|
|
11
11
|
import { i as value } from "./Redacted-RkJrG5Me.mjs";
|
|
12
12
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/cli/Primitive.js
|
|
13
13
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as fromResult, M as fail, N as failCause, Qr as
|
|
1
|
+
import { $ as fromResult, Kr as fromReasons, M as fail, N as failCause, Qr as isDieReason, V as flatMapEager, W as fnUntraced, Xt as succeed, _ as catchEager, ai as makeFailReason, ba as Prototype, dt as map$1, ei as isFailReason, ii as makeDieReason, li as reasonAnnotations, m as catchCause, mt as mapEager, oa as Reference } from "./Effect-CFIPV2Jg.mjs";
|
|
2
2
|
import { $ as isFailure, S as isCanonicalArrayIndex, Y as fail$1, at as succeed$1, nt as map$2 } from "./Array-B4kuTQeW.mjs";
|
|
3
3
|
import { Cn as memoize, F as PipeInspectableProto, S as none, bn as dual, gt as assignProperty, un as isTagged, w as some } from "./Option-DkxSnBhp.mjs";
|
|
4
|
-
import { Cn as Transformation, F as String$2, N as Redacted$1, On as transformEffect, P as SchemaError, Sn as unknown, Tn as passthrough, gn as decodeTo, hn as applyToSelfOrLastLinkEncoding, ht as isBetween, jn as Pointer, ln as toCodecStringTree, mn as decodeUnknownEffect, o as BooleanLiterals, tn as make$2, v as Int, vn as getIndexSignatureKeys, xn as toEncoded } from "./Schema-
|
|
4
|
+
import { Cn as Transformation, F as String$2, N as Redacted$1, On as transformEffect, P as SchemaError, Sn as unknown, Tn as passthrough, gn as decodeTo, hn as applyToSelfOrLastLinkEncoding, ht as isBetween, jn as Pointer, ln as toCodecStringTree, mn as decodeUnknownEffect, o as BooleanLiterals, tn as make$2, v as Int, vn as getIndexSignatureKeys, xn as toEncoded } from "./Schema-O3QUdX3B.mjs";
|
|
5
5
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/ConfigProvider.js
|
|
6
6
|
/**
|
|
7
7
|
* Data sources used by `Config` to load raw configuration values. A
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mt as withFiber } from "./Option-DkxSnBhp.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { fi as ConsoleRef, qi as sync } from "./Effect-CFIPV2Jg.mjs";
|
|
3
3
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Console.js
|
|
4
4
|
/**
|
|
5
5
|
* Context reference for the current console service in the Effect system, allowing access to the active console implementation from within the Effect context.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $t as suspend, M as fail$1, O as die, Ot as promise, Un as effect, Xt as succeed, cn as tryPromise, dt as map, en as sync, sa as Service, ta as encode } from "./Effect-CFIPV2Jg.mjs";
|
|
2
2
|
import { qt as hasProperty } from "./Option-DkxSnBhp.mjs";
|
|
3
3
|
import { i as TaggedError } from "./Data-CeCULr0-.mjs";
|
|
4
|
-
import { t as WebCrypto } from "./WebCrypto-
|
|
4
|
+
import { t as WebCrypto } from "./WebCrypto-C_95GMdw.mjs";
|
|
5
5
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/crypto/CryptoError.js
|
|
6
6
|
/**
|
|
7
7
|
* The `CryptoError` returned by the `effect/crypto` modules, and the reasons it
|
|
@@ -2464,7 +2464,7 @@ const asSome$1 = (self) => map$3(self, some);
|
|
|
2464
2464
|
/** @internal */
|
|
2465
2465
|
const andThen$1 = /*#__PURE__*/ dual(2, (self, f) => new ContImpl(self, isEffect$1(f) ? returnPayload : andThenCont, f));
|
|
2466
2466
|
/** @internal */
|
|
2467
|
-
const tap$
|
|
2467
|
+
const tap$2 = /*#__PURE__*/ dual(2, (self, f) => new ContImpl(self, isEffect$1(f) ? tapEffectCont : tapCont, f));
|
|
2468
2468
|
/** @internal */
|
|
2469
2469
|
const asVoid$2 = (self) => new ContImpl(self, returnPayload, exitVoid);
|
|
2470
2470
|
/** @internal */
|
|
@@ -2957,7 +2957,7 @@ const scopedWith$1 = (f) => suspend$1(() => {
|
|
|
2957
2957
|
return onExit$1(f(scope), (exit) => suspend$1(() => scopeCloseUnsafe(scope, exit) ?? void_$2));
|
|
2958
2958
|
});
|
|
2959
2959
|
/** @internal */
|
|
2960
|
-
const acquireRelease$1 = (acquire, release, options) => contextWith$1((context) => uninterruptibleMask$1((restore) => flatMap$1(scope$1, (scope) => tap$
|
|
2960
|
+
const acquireRelease$1 = (acquire, release, options) => contextWith$1((context) => uninterruptibleMask$1((restore) => flatMap$1(scope$1, (scope) => tap$2(options?.interruptible ? restore(acquire) : acquire, (a) => scopeAddFinalizerExit(scope, (exit) => provideContext$1(release(a, exit), context))))));
|
|
2961
2961
|
/** @internal */
|
|
2962
2962
|
const addFinalizer$2 = (finalizer) => flatMap$1(scope$1, (scope) => contextWith$1((context) => scopeAddFinalizerExit(scope, (exit) => provideContext$1(finalizer(exit), context))));
|
|
2963
2963
|
const OnExitImpl = /*#__PURE__*/ function() {
|
|
@@ -7341,6 +7341,46 @@ const spaced = (duration) => {
|
|
|
7341
7341
|
return fromStepWithMetadata(succeed$4((meta) => succeed$4([meta.attempt - 1, decoded])));
|
|
7342
7342
|
};
|
|
7343
7343
|
/**
|
|
7344
|
+
* Returns a new `Schedule` that allows execution of an effectful function for
|
|
7345
|
+
* every decision of the schedule, but does not alter the inputs and outputs of
|
|
7346
|
+
* the schedule.
|
|
7347
|
+
*
|
|
7348
|
+
* **Details**
|
|
7349
|
+
*
|
|
7350
|
+
* The callback receives the full schedule metadata, including the input, output,
|
|
7351
|
+
* computed delay duration, current attempt, and elapsed timing information.
|
|
7352
|
+
*
|
|
7353
|
+
* **Example** (Tapping schedule metadata)
|
|
7354
|
+
*
|
|
7355
|
+
* ```ts import.meta.vitest
|
|
7356
|
+
* import { Effect, Schedule } from "effect"
|
|
7357
|
+
*
|
|
7358
|
+
* const attempts: Array<number> = []
|
|
7359
|
+
* const monitoredSchedule = Schedule.recurs(2).pipe(
|
|
7360
|
+
* Schedule.tap((metadata) => Effect.sync(() => attempts.push(metadata.attempt)))
|
|
7361
|
+
* )
|
|
7362
|
+
* const program = Effect.gen(function*() {
|
|
7363
|
+
* const step = yield* Schedule.toStep(monitoredSchedule)
|
|
7364
|
+
* const [output] = yield* step(0, undefined)
|
|
7365
|
+
* return { attempts, output }
|
|
7366
|
+
* })
|
|
7367
|
+
*
|
|
7368
|
+
* await Effect.runPromise(program) // => { attempts: [1], output: 0 }
|
|
7369
|
+
* ```
|
|
7370
|
+
*
|
|
7371
|
+
* @stability stable
|
|
7372
|
+
* @category sequencing
|
|
7373
|
+
* @since 4.0.0
|
|
7374
|
+
*/
|
|
7375
|
+
const tap$1 = /*#__PURE__*/ dual(2, (self, f) => fromStep(map$3(toStep(self), (step) => {
|
|
7376
|
+
const meta = metadataFn();
|
|
7377
|
+
return (now, input) => tap$2(step(now, input), ([output, duration]) => f({
|
|
7378
|
+
...meta(now, input),
|
|
7379
|
+
output,
|
|
7380
|
+
duration
|
|
7381
|
+
}));
|
|
7382
|
+
})));
|
|
7383
|
+
/**
|
|
7344
7384
|
* Returns a new `Schedule` that limits an existing schedule by elapsed
|
|
7345
7385
|
* duration, number of outputs, or both.
|
|
7346
7386
|
*
|
|
@@ -8806,7 +8846,7 @@ const andThen = andThen$1;
|
|
|
8806
8846
|
* @category sequencing
|
|
8807
8847
|
* @since 2.0.0
|
|
8808
8848
|
*/
|
|
8809
|
-
const tap = tap$
|
|
8849
|
+
const tap = tap$2;
|
|
8810
8850
|
/**
|
|
8811
8851
|
* Converts both success and failure of an `Effect` into a `Result` type.
|
|
8812
8852
|
*
|
|
@@ -12908,4 +12948,4 @@ const catchEager = catchEager$1;
|
|
|
12908
12948
|
* @since 4.0.0
|
|
12909
12949
|
*/
|
|
12910
12950
|
const fnUntracedEager = fnUntracedEager$1;
|
|
12911
|
-
export { fromResult as $,
|
|
12951
|
+
export { fromResult as $, ParentSpan as $i, addFinalizerExit as $n, isDone$1 as $r, suspend as $t, ensuring as A, flatMap$1 as Ai, setInputType as An, isSuccess as Ar, provideContext as At, flatMap as B, reportCauseUnsafe as Bi, isDoneCause as Bn, combine as Br, runPromise as Bt, catch_ as C, fiberAwait as Ci, zipWith as Cn, fail$2 as Cr, onExitPrimitive as Ct, delay as D, fiberJoin as Di, max as Dn, interrupt$1 as Dr, orElseSucceed as Dt, contextWith as E, fiberInterruptAs as Ei, exponential as En, hasInterrupts as Er, orDie as Et, failSync as F, makeLatch as Fi, upTo as Fn, Done as Fr, repeat as Ft, fnUntracedEager as G, succeedNone$1 as Gi, effectDiscard as Gn, findErrorOption as Gr, scoped as Gt, flatten as H, scope$1 as Hi, build as Hn, done$1 as Hr, runSyncExit as Ht, filter as I, makeLatchUnsafe as Ii, while_ as In, ExceededCapacityError as Ir, result as It, forkChild as J, uninterruptibleMask$1 as Ji, provide$2 as Jn, hasInterrupts$1 as Jr, serviceOption as Jt, forEach as K, suspend$1 as Ki, merge as Kn, fromReasons as Kr, scopedWith as Kt, filterOrElse as L, makeSpanUnsafe as Li, catchDone as Ln, IllegalArgumentError as Lr, retry as Lt, fail as M, getCurrentFiber as Mi, tap$1 as Mn, match$1 as Mr, provideServiceEffect as Mt, failCause as N, iterateConcurrent as Ni, toStepWithMetadata as Nn, succeed$3 as Nr, raceFirst as Nt, die as O, fiberRunIn as Oi, min as On, isExit as Or, promise as Ot, failCauseSync as P, iterateEager as Pi, toStepWithSleep as Pn, void_$1 as Pr, reduce as Pt, fromOption as Q, DisablePropagation as Qi, addFinalizer$1 as Qn, isDieReason as Qr, succeedSome as Qt, filterOrFail as R, onExitPrimitive$1 as Ri, doneExitFromCause as Rn, StackTrace as Rr, runFork as Rt, catchTags as S, exitZipRight as Si, yieldNow as Sn, die$1 as Sr, onExit as St, context as T, fiberInterruptAll as Ti, during as Tn, getSuccess as Tr, option as Tt, fn as U, scopeAddFinalizer as Ui, effect as Un, fail$3 as Ur, sandbox as Ut, flatMapEager as V, resolveConcurrency as Vi, matchEffect$1 as Vn, die$2 as Vr, runSync as Vt, fnUntraced as W, succeed$4 as Wi, effectContext as Wn, filterInterruptors as Wr, scope as Wt, forkScoped as X, whileLoop$1 as Xi, succeed$1 as Xn, interruptors as Xr, succeed as Xt, forkIn as Y, void_$2 as Yi, provideMerge as Yn, hasInterruptsOnly as Yr, sleep as Yt, fromNullishOr as Z, TracerTimingEnabled$1 as Zi, Scope as Zn, isCause as Zr, succeedNone as Zt, catchEager as _, merge$1 as _a, currentTimeMillis as _i, when as _n, make$1 as _r, match as _t, all as a, toPredicate as aa, makeFailReason as ai, timeoutOption as an, makeUnsafe as ar, isEffect as at, catchReason as b, Prototype as ba, exitInterrupt as bi, withParentSpan as bn, asVoid$1 as br, never as bt, annotateLogs as c, add as ca, pretty as ci, tryPromise as cn, TracerTimingEnabled as cr, logFatal as ct, asVoid as d, getOption as da, ClockRef as di, txRetry as dn, doneUnsafe as dr, map as dt, externalSpan as ea, isFailReason as ei, sync as en, close as er, gen as et, cached as f, getOrUndefined as fa, ConsoleRef as fi, uninterruptible as fn, fail$1 as fr, mapBoth as ft, catchDefect as g, makeUnsafe$2 as ga, callback$1 as gi, void_ as gn, isDoneUnsafe as gr, mapErrorEager as gt, catchCauseIf as h, make$3 as ha, asSome$1 as hi, useSpan as hn, isDone as hr, mapError as ht, addFinalizer as i, has as ia, makeDieReason as ii, timeout as in, make as ir, interruptible as it, exit as j, forkUnsafe$1 as ji, spaced as jn, map$1 as jr, provideService as jt, effectify as k, findRecoverableError as ki, passthrough as kn, isFailure as kr, provide as kt, as as l, empty as la, reasonAnnotations as li, try_ as ln, _await as lr, logWarning as lt, catchCause as m, getUnsafe as ma, as$1 as mi, updateContext as mn, isDeferred as mr, mapEager as mt, acquireRelease as n, compose as na, isReason as ni, tapCause as nn, fork as nr, ignoreCause as nt, andThen as o, Reference as oa, makeInterruptReason as oi, timeoutOrElse as on, provide$3 as or, logDebug as ot, callback as p, getOrUndefinedUnsafe as pa, andThen$1 as pi, uninterruptibleMask as pn, into as pr, mapBothEager as pt, forever as q, sync$1 as qi, mergeAll as qn, hasDies as qr, service as qt, acquireUseRelease as r, fromPredicate as ra, isTimeoutError as ri, tapError as rn, forkUnsafe as rr, interrupt as rt, annotateCurrentSpan as s, Service as sa, map$2 as si, transposeOption as sn, MinimumLogLevel as sr, logError as st, Transaction as t, encode as ta, isInterruptReason as ti, tap as tn, closeUnsafe as tr, ignore as tt, asSome as u, get as ua, squash as ui, tx as un, done as ur, makeSpanScoped as ut, catchFilter as v, omit as va, effectIsExit as vi, whileLoop as vn, makeUnsafe$1 as vr, matchCauseEffect as vt, clockWith as w, fiberInterrupt as wi, CurrentMetadata as wn, failCause$1 as wr, onInterrupt as wt, catchTag as x, exitVoid as xi, withSpan as xn, asVoidAll as xr, onError as xt, catchIf as y, pick as ya, endSpan as yi, withFiber as yn, succeed$2 as yr, matchEffect as yt, findFirst as z, onExitUnsafe as zi, filterDone as zn, UnknownError as zr, runForkWith as zt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { F as of, z as sort } from "./Array-B4kuTQeW.mjs";
|
|
2
|
-
import { $t as suspend, A as ensuring, B as flatMap,
|
|
2
|
+
import { $t as suspend, A as ensuring, B as flatMap, Cn as zipWith, Hr as done, J as forkChild, K as forEach$1, Ln as catchDone, M as fail, N as failCause, Nt as raceFirst, W as fnUntraced, Xt as succeed, a as all, at as isEffect, b as catchReason, dr as doneUnsafe, dt as map, en as sync, l as as, ln as try_, lr as _await, q as forever, sa as Service, vr as makeUnsafe, x as catchTag, xt as onError, y as catchIf } from "./Effect-CFIPV2Jg.mjs";
|
|
3
3
|
import { On as pipeArguments, Sn as identity, Tn as pipe, nn as isNotUndefined, qt as hasProperty, x as match } from "./Option-DkxSnBhp.mjs";
|
|
4
|
-
import { b as fromPull, ct as toTransform, it as fromTransform$1, lt as unwrap$1, nt as unwrap$2, yt as join$1 } from "./Stream-
|
|
4
|
+
import { b as fromPull, ct as toTransform, it as fromTransform$1, lt as unwrap$1, nt as unwrap$2, yt as join$1 } from "./Stream-BeqiANg7.mjs";
|
|
5
5
|
import { a as String$1, f as mapInput } from "./Order-C1JC991I.mjs";
|
|
6
6
|
import { i as TaggedError, n as Error$1 } from "./Data-CeCULr0-.mjs";
|
|
7
7
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/ByteSize.js
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as TaggedError } from "./Data-CeCULr0-.mjs";
|
|
2
2
|
import { qt as hasProperty } from "./Option-DkxSnBhp.mjs";
|
|
3
|
-
import { S as Literals, d as Defect, in as optional, p as Error, sn as tag, zn as redactUrl } from "./Schema-
|
|
3
|
+
import { S as Literals, d as Defect, in as optional, p as Error, sn as tag, zn as redactUrl } from "./Schema-O3QUdX3B.mjs";
|
|
4
4
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/http/HttpClientError.js
|
|
5
5
|
/**
|
|
6
6
|
* Typed failure model for Effect HTTP client operations.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Ct as NodeInspectSymbol, Et as format, Mt as redact, On as pipeArguments, S as none, St as Class, bn as dual, h as isNone, m as getOrUndefined, qt as hasProperty, u as fromNullishOr, w as some, xt as BaseProto } from "./Option-DkxSnBhp.mjs";
|
|
2
|
-
import { B as flatMap, M as fail, Vt as runSync, Xt as succeed,
|
|
2
|
+
import { B as flatMap, M as fail, Vt as runSync, Xt as succeed, _i as currentTimeMillis$1, cn as tryPromise, di as ClockRef, dt as map, f as cached, ln as try_, oa as Reference } from "./Effect-CFIPV2Jg.mjs";
|
|
3
3
|
import { ot as try_$1, tt as isSuccess } from "./Array-B4kuTQeW.mjs";
|
|
4
|
-
import { $n as set, Bn as set$1, Hn as fromBody, Kn as empty$3, Ln as empty$2, Qn as remove, Rn as fromInput, Vn as setAll$1, Wn as unwrap, cn as toCodecJson, er as setAll, nr as fromSetCookie, pt as fromJsonString, qn as fromInput$1, tt as decodeEffect, zn as redactUrl } from "./Schema-
|
|
4
|
+
import { $n as set, Bn as set$1, Hn as fromBody, Kn as empty$3, Ln as empty$2, Qn as remove, Rn as fromInput, Vn as setAll$1, Wn as unwrap, cn as toCodecJson, er as setAll, nr as fromSetCookie, pt as fromJsonString, qn as fromInput$1, tt as decodeEffect, zn as redactUrl } from "./Schema-O3QUdX3B.mjs";
|
|
5
5
|
import { i as TaggedError } from "./Data-CeCULr0-.mjs";
|
|
6
|
-
import { S as fromReadableStream, f as fail$1 } from "./Stream-
|
|
6
|
+
import { S as fromReadableStream, f as fail$1 } from "./Stream-BeqiANg7.mjs";
|
|
7
7
|
import { a as stringOrRedacted } from "./Redacted-RkJrG5Me.mjs";
|
|
8
|
-
import { i as HttpClientError, n as EmptyBodyError, s as StatusCodeError, t as DecodeError } from "./HttpClientError-
|
|
8
|
+
import { i as HttpClientError, n as EmptyBodyError, s as StatusCodeError, t as DecodeError } from "./HttpClientError-BVd83gxQ.mjs";
|
|
9
9
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Clock.js
|
|
10
10
|
/**
|
|
11
11
|
* Context reference for the active time service in the environment.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { sa as Service } from "./Effect-CFIPV2Jg.mjs";
|
|
2
2
|
import { S as none, w as some } from "./Option-DkxSnBhp.mjs";
|
|
3
3
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Path.js
|
|
4
4
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h as fromIterable, o as empty, st as normalize } from "./Array-B4kuTQeW.mjs";
|
|
2
2
|
import { $ as evaluate, B as args, F as PipeInspectableProto, K as causeFail, S as none, Sn as identity, bn as dual, ft as makePrimitive, gn as constTrue, k as Done, lt as isExit, mt as withFiber, nt as exitFailCause, rt as exitSucceed, tt as exitFail, w as some, yn as constant } from "./Option-DkxSnBhp.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { Bn as isDoneCause, Ki as suspend, Ln as catchDone, Si as exitZipRight, Wi as succeed, Xi as whileLoop, Yi as void_, bi as exitInterrupt$1, gi as callback, mi as as, pi as andThen, qi as sync, xi as exitVoid } from "./Effect-CFIPV2Jg.mjs";
|
|
4
4
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/MutableList.js
|
|
5
5
|
/**
|
|
6
6
|
* Mutable lists for collecting ordered values and draining them from the front.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { en as sync } from "./Effect-
|
|
1
|
+
import { en as sync } from "./Effect-CFIPV2Jg.mjs";
|
|
2
2
|
import { F as PipeInspectableProto, Sn as identity, bn as dual } from "./Option-DkxSnBhp.mjs";
|
|
3
3
|
import { n as set$1, t as make$1 } from "./MutableRef-D4Qv592C.mjs";
|
|
4
4
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Ref.js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ar as isSuccess, Rt as runFork, Yr as hasInterruptsOnly, at as isEffect, gn as void_, nn as tapCause, st as logError, ui as squash, yn as withFiber } from "./Effect-CFIPV2Jg.mjs";
|
|
2
2
|
import { bn as dual, vn as constVoid } from "./Option-DkxSnBhp.mjs";
|
|
3
3
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Runtime.js
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A as makeEquivalence$1, J as makeEquivalence$2, Y as fail$1, at as succeed$1, dt as strictEqual, h as fromIterable$1, i as dedupe, j as map$1, l as filter$1, o as empty$4, t as append, ut as make$8, w as isReadonlyArrayNonEmpty, x as isArrayNonEmpty } from "./Array-B4kuTQeW.mjs";
|
|
2
2
|
import { $t as isNever$1, A as Error$2, At as formatPropertyKey, B as args, Bt as hash, Cn as memoize, Ct as NodeInspectSymbol, Dn as Prototype, Dt as formatDate, En as Class$1, Et as format$1, F as PipeInspectableProto, It as equals, Jt as isBigInt, Kt as symbol$1, Lt as symbol$2, Mt as redact$2, Nt as symbolRedactable, On as pipeArguments, Ot as formatJson, Pt as asEquivalence, Rt as array, S as none, Sn as identity, Ut as string$1, Vt as number$1, Wt as structure, Xt as isError, Yt as isBoolean, Zt as isFunction, _ as isSome, an as isObject, bn as dual, bt as setStackTraceLimit, cn as isString$1, d as fromUndefinedOr, fn as isUnknown, g as isOption, gt as assignProperty, h as isNone, in as isNumber, kt as formatPath, l as fromNullOr, ln as isSymbol, on as isObjectKeyword, p as getOrNull, qt as hasProperty, sn as isPropertyKey, tn as isNotNullish, w as some, wn as memoizeIdempotent, x as match$1, xt as BaseProto, y as liftThrowable, yt as getStackTraceLimit, zt as combine } from "./Option-DkxSnBhp.mjs";
|
|
3
3
|
import { a as String$4, c as isGreaterThanOrEqualTo$1, i as Number$4, l as isLessThan$1, r as Date$3, s as isGreaterThan$1, t as BigInt$4, u as isLessThanOrEqualTo$1 } from "./Order-C1JC991I.mjs";
|
|
4
|
-
import { $ as fromResult, $t as suspend$1,
|
|
4
|
+
import { $ as fromResult, $t as suspend$1, Ar as isSuccess$1, B as flatMap$1, Cr as fail$3, G as fnUntracedEager, Ht as runSyncExit, Kr as fromReasons, Lr as IllegalArgumentError, M as fail$2, Ni as iterateConcurrent, Nr as succeed$2, O as die, Or as isExit, P as failCauseSync, Pi as iterateEager, Pr as void_$1, V as flatMapEager, Vi as resolveConcurrency, Vr as die$1, Xt as succeed$3, Zr as isCause, Zt as succeedNone, ai as makeFailReason, ei as isFailReason, gn as void_$2, gt as mapErrorEager, ii as makeDieReason, j as exit, la as empty$5, ln as try_, m as catchCause, mt as mapEager, ni as isReason, oa as Reference, oi as makeInterruptReason, pt as mapBothEager, si as map$3, ua as get$2, vi as effectIsExit, wr as failCause } from "./Effect-CFIPV2Jg.mjs";
|
|
5
5
|
import { i as TaggedError$1, t as Class$2 } from "./Data-CeCULr0-.mjs";
|
|
6
6
|
import { d as nanos, f as negativeInfinity, i as isDuration, l as millis, p as seconds, r as infinity } from "./Duration-EH9Vy4U6.mjs";
|
|
7
7
|
import { i as value, n as make$10, r as makeEquivalence$3, t as isRedacted } from "./Redacted-RkJrG5Me.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as WebCrypto } from "./WebCrypto-
|
|
1
|
+
import { Un as effect, Xt as succeed, en as sync, sa as Service, w as clockWith } from "./Effect-CFIPV2Jg.mjs";
|
|
2
|
+
import { t as WebCrypto } from "./WebCrypto-C_95GMdw.mjs";
|
|
3
3
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/internal/ulid.js
|
|
4
4
|
const maxTimestamp = 2 ** 48 - 1;
|
|
5
5
|
const base32Chars = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Sn as identity, mt as withFiber } from "./Option-DkxSnBhp.mjs";
|
|
2
|
-
import { Ai as
|
|
2
|
+
import { Ai as flatMap, Gi as succeedNone, Hi as scope, Ji as uninterruptibleMask, Ki as suspend, Mi as getCurrentFiber, Ri as onExitPrimitive, Ui as scopeAddFinalizer, Wi as succeed, Yi as void_, gi as callback, hi as asSome, qi as sync, zi as onExitUnsafe } from "./Effect-CFIPV2Jg.mjs";
|
|
3
3
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Semaphore.js
|
|
4
4
|
/**
|
|
5
5
|
* Creates a `Semaphore` synchronously with the specified total
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Xt as succeed,
|
|
1
|
+
import { Xt as succeed, sa as Service } from "./Effect-CFIPV2Jg.mjs";
|
|
2
2
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Stdio.js
|
|
3
3
|
/**
|
|
4
4
|
* Service contract for command-line arguments and standard input, output, and
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $ as isFailure, F as of, b as isArray, ct as normalizeNonEmpty, j as map$2, o as empty$2, q as headUnsafe, st as normalize, tt as isSuccess, w as isReadonlyArrayNonEmpty, x as isArrayNonEmpty } from "./Array-B4kuTQeW.mjs";
|
|
2
|
-
import { $t as suspend$2, A as ensuring$2,
|
|
2
|
+
import { $n as addFinalizerExit, $r as isDone, $t as suspend$2, A as ensuring$2, Ar as isSuccess$1, At as provideContext$2, B as flatMap$2, Bn as isDoneCause, Bt as runPromise, C as catch_, Ci as fiberAwait, Cr as fail$3, Ct as onExitPrimitive, D as delay, Di as fiberJoin, Dr as interrupt$1, Ei as fiberInterruptAs, Fi as makeLatch, Fr as Done, H as flatten$1, Hr as done, Ii as makeLatchUnsafe, J as forkChild, Kr as fromReasons, Kt as scopedWith, Ln as catchDone, M as fail$2, Mi as getCurrentFiber, N as failCause$1, Nn as toStepWithMetadata, Nt as raceFirst, O as die$3, Oi as fiberRunIn, Ot as promise, Pr as void_$1, Qn as addFinalizer, Rn as doneExitFromCause, Rt as runFork, Sn as yieldNow, St as onExit$1, T as context, Ti as fiberInterruptAll, V as flatMapEager, Vn as matchEffect, Vr as die$2, W as fnUntraced, Xt as succeed$2, Y as forkIn, Zr as isCause, ar as makeUnsafe$1, bt as never, cn as tryPromise, d as asVoid, dt as map$3, en as sync, er as close, et as gen, gn as void_, ht as mapError$2, j as exit, jt as provideService$2, ki as findRecoverableError, kr as isFailure$1, l as as, m as catchCause, nt as ignoreCause, o as andThen, or as provide, q as forever, rn as tapError$2, rr as forkUnsafe, tn as tap$1, ui as squash, vn as whileLoop, vt as matchCauseEffect, wi as fiberInterrupt, wn as CurrentMetadata, wr as failCause$2, xr as asVoidAll, xt as onError, zn as filterDone, zt as runForkWith } from "./Effect-CFIPV2Jg.mjs";
|
|
3
3
|
import { On as pipeArguments, S as none, Sn as identity, bn as dual, gn as constTrue, h as isNone, qt as hasProperty, vn as constVoid, w as some, yn as constant } from "./Option-DkxSnBhp.mjs";
|
|
4
4
|
import { t as make$2 } from "./MutableRef-D4Qv592C.mjs";
|
|
5
|
-
import { _ as takeAll, c as make$3, g as take$1, l as offer, o as failCause$3, p as shutdown, s as failCauseUnsafe, t as bounded, u as offerAll } from "./Queue-
|
|
6
|
-
import { n as makeUnsafe$2 } from "./Semaphore-
|
|
5
|
+
import { _ as takeAll, c as make$3, g as take$1, l as offer, o as failCause$3, p as shutdown, s as failCauseUnsafe, t as bounded, u as offerAll } from "./Queue-CyWN-MDp.mjs";
|
|
6
|
+
import { n as makeUnsafe$2 } from "./Semaphore-DHYKAQSv.mjs";
|
|
7
7
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Fiber.js
|
|
8
8
|
const await_ = fiberAwait;
|
|
9
9
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { S as none, Tn as pipe, _ as isSome, bn as dual, f as getOrElse, qt as hasProperty, w as some, x as match } from "./Option-DkxSnBhp.mjs";
|
|
2
|
-
import { $t as suspend, A as ensuring, B as flatMap$1, Et as orDie, Gt as scoped, M as fail, Nt as raceFirst, W as fnUntraced, Xt as succeed$1, _t as match$1,
|
|
2
|
+
import { $t as suspend, A as ensuring, B as flatMap$1, Et as orDie, Gt as scoped, M as fail, Nt as raceFirst, W as fnUntraced, Xt as succeed$1, _t as match$1, at as isEffect, ba as Prototype, dt as map$1, en as sync, f as cached, ht as mapError, oa as Reference, sa as Service } from "./Effect-CFIPV2Jg.mjs";
|
|
3
3
|
import { L as reduce, M as match$2, d as findFirstIndex, f as findLast, j as map$2, o as empty, u as findFirst, w as isReadonlyArrayNonEmpty } from "./Array-B4kuTQeW.mjs";
|
|
4
|
-
import { p as Error$1, sn as tag } from "./Schema-
|
|
4
|
+
import { p as Error$1, sn as tag } from "./Schema-O3QUdX3B.mjs";
|
|
5
5
|
import { a as taggedEnum } from "./Data-CeCULr0-.mjs";
|
|
6
6
|
import { i as round } from "./Number-BvkRkfc-.mjs";
|
|
7
|
-
import { g as take } from "./Queue-
|
|
7
|
+
import { g as take } from "./Queue-CyWN-MDp.mjs";
|
|
8
8
|
import { n as make$1 } from "./Redacted-RkJrG5Me.mjs";
|
|
9
9
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/Terminal.js
|
|
10
10
|
const TypeId$1 = "~effect/Terminal";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { oa as Reference } from "./Effect-CFIPV2Jg.mjs";
|
|
2
2
|
// ../../node_modules/.pnpm/effect@4.1.2_patch_hash=0e61176203bb1256381ce1c5b488d7951983ce38ff698647d3f4617383abbf07/node_modules/effect/dist/crypto/WebCrypto.js
|
|
3
3
|
/**
|
|
4
4
|
* The WebCrypto `Crypto` object that the `effect/crypto` modules run on.
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { R as some, T as join, j as map, k as makeBy, l as filter, r as contains, s as ensure, y as head } from "./Array-B4kuTQeW.mjs";
|
|
2
2
|
import { t as match } from "./Boolean-kILIvmhE.mjs";
|
|
3
|
-
import { a as option, i as String$1 } from "./Config-
|
|
4
|
-
import { t as error } from "./Console-
|
|
5
|
-
import { $t as suspend, A as ensuring,
|
|
6
|
-
import { t as FileSystem } from "./FileSystem-
|
|
3
|
+
import { a as option, i as String$1 } from "./Config-DEUiBxw4.mjs";
|
|
4
|
+
import { t as error } from "./Console-DY7H086H.mjs";
|
|
5
|
+
import { $t as suspend, A as ensuring, At as provideContext, B as flatMap, Dt as orElseSucceed, En as exponential, Et as orDie, Ft as repeat, Gt as scoped, Hn as build, Jn as provide, K as forEach, Kn as merge, Lt as retry, M as fail, Nt as raceFirst, Q as fromOption, T as context, Un as effect, W as fnUntraced, X as forkScoped, Xn as succeed, Xt as succeed$1, Yn as provideMerge, Yt as sleep, _n as when, a as all, d as asVoid, dt as map$1, en as sync, et as gen, ft as mapBoth, g as catchDefect, gn as void_, ht as mapError, in as timeout, jn as spaced, l as as, ln as try_, n as acquireRelease, o as andThen, q as forever, sa as Service, sn as transposeOption, tt as ignore, x as catchTag, yt as matchEffect } from "./Effect-CFIPV2Jg.mjs";
|
|
6
|
+
import { t as FileSystem } from "./FileSystem-iEC-kUB-.mjs";
|
|
7
7
|
import { C as orElse, S as none, T as toArray, _ as isSome, b as map$2, c as flatten, cn as isString, d as fromUndefinedOr, f as getOrElse, h as isNone, i as filter$1, o as flatMap$1, p as getOrNull, t as all$1, u as fromNullishOr, un as isTagged, v as liftPredicate, w as some$1, x as match$1 } from "./Option-DkxSnBhp.mjs";
|
|
8
|
-
import { B as TaggedStruct, F as String$2, I as Struct, J as UndefinedOr, T as NonEmptyArray, U as Tuple, X as Unknown, Y as Union, an as optionalKey, ar as filter$2, at as decodeUnknownEffect, cr as getSomes, ct as encodeOption, ft as encodeUnknownOption, g as Finite, hr as toEntries, mt as is, n as ArraySchema, nt as decodeOption, or as fromEntries, ot as decodeUnknownOption, pt as fromJsonString, q as Uint8ArrayFromBase64, sr as get, st as encodeEffect, tt as decodeEffect, un as toEncoded, v as Int, y as Json } from "./Schema-
|
|
8
|
+
import { B as TaggedStruct, F as String$2, I as Struct, J as UndefinedOr, T as NonEmptyArray, U as Tuple, X as Unknown, Y as Union, an as optionalKey, ar as filter$2, at as decodeUnknownEffect, cr as getSomes, ct as encodeOption, ft as encodeUnknownOption, g as Finite, hr as toEntries, mt as is, n as ArraySchema, nt as decodeOption, or as fromEntries, ot as decodeUnknownOption, pt as fromJsonString, q as Uint8ArrayFromBase64, sr as get, st as encodeEffect, tt as decodeEffect, un as toEncoded, v as Int, y as Json } from "./Schema-O3QUdX3B.mjs";
|
|
9
9
|
import { i as value } from "./Redacted-RkJrG5Me.mjs";
|
|
10
|
-
import { n as getUnsafe, o as set, r as make, t as get$1 } from "./Ref-
|
|
11
|
-
import { t as Stdio } from "./Stdio-
|
|
12
|
-
import { H as runFold, I as provideContext$1, T as make$2, U as runFoldEffect, W as runForEach, Y as take, dt as make$1, k as mapError$1, m as flatMap$2, nt as unwrap, p as filter$3, pt as open, y as fromIterable, z as run } from "./Stream-
|
|
10
|
+
import { n as getUnsafe, o as set, r as make, t as get$1 } from "./Ref-CX3ghLq6.mjs";
|
|
11
|
+
import { t as Stdio } from "./Stdio-7l23nD6W.mjs";
|
|
12
|
+
import { H as runFold, I as provideContext$1, T as make$2, U as runFoldEffect, W as runForEach, Y as take, dt as make$1, k as mapError$1, m as flatMap$2, nt as unwrap, p as filter$3, pt as open, y as fromIterable, z as run } from "./Stream-BeqiANg7.mjs";
|
|
13
13
|
import { d as replace, g as toLowerCase, h as startsWith, m as split, p as slice, r as endsWith } from "./String-q5dcsVe4.mjs";
|
|
14
|
-
import { D as uploadChunkBytes$1, E as fileTag,
|
|
15
|
-
import { n as layerWebCrypto, t as SecureRandom } from "./SecureRandom-
|
|
16
|
-
import { n as Fetch, r as layer, t as CloudClient } from "./cloud-client.adapter-
|
|
17
|
-
import { f as HttpClient, g as mapRequest } from "./cloud-client.adapter-
|
|
18
|
-
import { P as currentTimeMillis, S as prependUrl, w as setHeaders } from "./HttpClientResponse-
|
|
14
|
+
import { $ as Protocol, Ct as make$3, D as uploadChunkBytes$1, Dt as fromWebSocket, E as fileTag, Ft as make$6, It as remove, Lt as run$1, T as fileRpcsOf, Y as ActorUnavailableError, at as layerNdjson, dt as isTerminalResponse, et as make$4, ft as RpcClientDefect, lt as constPing, n as ActorFileClients, o as Authentication, pt as RpcClientError, t as ActorClients, tt as makeProtocolHttp, vt as make$5 } from "./actor-client.adapter-CfKUj7Gi.mjs";
|
|
15
|
+
import { n as layerWebCrypto, t as SecureRandom } from "./SecureRandom-DYpl-YDn.mjs";
|
|
16
|
+
import { n as Fetch, r as layer, t as CloudClient } from "./cloud-client.adapter-Dln8NW-9.mjs";
|
|
17
|
+
import { f as HttpClient, g as mapRequest } from "./cloud-client.adapter-Ce4oyGNh.mjs";
|
|
18
|
+
import { P as currentTimeMillis, S as prependUrl, w as setHeaders } from "./HttpClientResponse-CifutXCF.mjs";
|
|
19
19
|
import { l as millis } from "./Duration-EH9Vy4U6.mjs";
|
|
20
20
|
import { a as tags, r as orElse$1, s as value$1 } from "./Match-CGPLZYrV.mjs";
|
|
21
21
|
import { Credentials } from "./credentials/credentials.service.mjs";
|
|
22
22
|
import { refusalCode, rejectedRequest, unansweredOf } from "./registry/actor-refusal.pure.mjs";
|
|
23
|
-
import { compactJson, printJson, reported
|
|
23
|
+
import { l as signInFailure, n as compactJson, o as printJson, s as reported } from "./operation-output.pure-ChUlePFj.mjs";
|
|
24
24
|
import { RunnerExitedError } from "./runner-exited.errors.mjs";
|
|
25
25
|
import { CliExitError } from "./terminal/cli-exit.errors.mjs";
|
|
26
26
|
// ../client/src/actor-rpc.pure.ts
|
|
@@ -760,7 +760,7 @@ const declared = [
|
|
|
760
760
|
readOnly: true
|
|
761
761
|
},
|
|
762
762
|
{
|
|
763
|
-
description: "Copy one file
|
|
763
|
+
description: "Copy one file between an actor and its computer. fromComputer returns a receipt; attach it with an actor command.",
|
|
764
764
|
fields: [
|
|
765
765
|
"actor",
|
|
766
766
|
"key",
|