@kitman-sh/cli 0.10.99 → 0.10.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-et6qa95h.js → chunk-30mfra3r.js} +1 -1
- package/dist/{chunk-k0shg2fb.js → chunk-4kxjvd6d.js} +8 -6
- package/dist/{chunk-3r7ahnwy.js → chunk-5esfnamp.js} +2 -2
- package/dist/{chunk-0tsc91qr.js → chunk-756n3pq8.js} +4 -4
- package/dist/{chunk-vjcn82g3.js → chunk-9nrr1dwr.js} +1 -1
- package/dist/{chunk-3v70x040.js → chunk-afy705a7.js} +5 -5
- package/dist/{chunk-rrj434w6.js → chunk-b1cn9zfa.js} +62 -15
- package/dist/{chunk-g3r5xp0t.js → chunk-c7ym0ce7.js} +2 -2
- package/dist/{chunk-ampzxrqe.js → chunk-che5w0y4.js} +2 -1
- package/dist/{chunk-0hjtwtms.js → chunk-e70qpgft.js} +94 -23
- package/dist/{chunk-t7ncjd6s.js → chunk-hv44tcjs.js} +4 -4
- package/dist/{chunk-bk3dpjxq.js → chunk-hxqxdy21.js} +1 -1
- package/dist/{chunk-3ka78n56.js → chunk-hzf25za9.js} +7 -7
- package/dist/{chunk-56e202xk.js → chunk-ne0vptcd.js} +4 -4
- package/dist/{chunk-0a10kdrd.js → chunk-psz28edd.js} +4 -4
- package/dist/{chunk-4sswz0mn.js → chunk-q492wb19.js} +8 -8
- package/dist/{chunk-rp224rm4.js → chunk-qhyzesdb.js} +3 -3
- package/dist/{chunk-z2f9enrp.js → chunk-r16msggg.js} +3 -3
- package/dist/{chunk-abf4m4b2.js → chunk-s27r6x3a.js} +5 -5
- package/dist/{chunk-fv6kgtze.js → chunk-tbrpndp2.js} +2 -2
- package/dist/{chunk-2fs34341.js → chunk-x75d47ez.js} +25 -19
- package/dist/{chunk-a244myqw.js → chunk-xckn5gax.js} +1 -1
- package/dist/{chunk-6vmpa1nw.js → chunk-xyfs9f2k.js} +10 -10
- package/dist/{chunk-rdv42ygn.js → chunk-yjnrw9yb.js} +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-che5w0y4.js";
|
|
22
22
|
|
|
23
23
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
24
|
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
@@ -249,7 +249,7 @@ import {
|
|
|
249
249
|
decodeJsonStringOption,
|
|
250
250
|
encodeJsonStringSync,
|
|
251
251
|
encodePrettyJsonString
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-che5w0y4.js";
|
|
253
253
|
import {
|
|
254
254
|
map,
|
|
255
255
|
makeEquivalence,
|
|
@@ -316,7 +316,7 @@ import {
|
|
|
316
316
|
String2,
|
|
317
317
|
optionalEnv,
|
|
318
318
|
harnessesUnsupportedInSrt2
|
|
319
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-9nrr1dwr.js";
|
|
320
320
|
import {
|
|
321
321
|
isDateTime,
|
|
322
322
|
Numeric,
|
|
@@ -329,7 +329,7 @@ import {
|
|
|
329
329
|
SecretScope,
|
|
330
330
|
SecretHosts,
|
|
331
331
|
isSecretReference
|
|
332
|
-
} from "./chunk-
|
|
332
|
+
} from "./chunk-30mfra3r.js";
|
|
333
333
|
import {
|
|
334
334
|
toJsonValue,
|
|
335
335
|
isOneOf,
|
|
@@ -343,7 +343,7 @@ import {
|
|
|
343
343
|
isSymbol,
|
|
344
344
|
isUndefined,
|
|
345
345
|
kindOf
|
|
346
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-hxqxdy21.js";
|
|
347
347
|
import {
|
|
348
348
|
isRedacted,
|
|
349
349
|
make,
|
|
@@ -357,7 +357,7 @@ import {
|
|
|
357
357
|
make3,
|
|
358
358
|
parseFdName,
|
|
359
359
|
fdName
|
|
360
|
-
} from "./chunk-
|
|
360
|
+
} from "./chunk-5esfnamp.js";
|
|
361
361
|
|
|
362
362
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
363
363
|
var makeEquivalence3 = Tuple;
|
|
@@ -6015,7 +6015,9 @@ var RunWaiting = Union([
|
|
|
6015
6015
|
kind: Literal("event"),
|
|
6016
6016
|
name: String4.check(isMinLength(1)),
|
|
6017
6017
|
event: String4.check(isMinLength(1)),
|
|
6018
|
-
timesOutAt: Timestamp
|
|
6018
|
+
timesOutAt: Timestamp,
|
|
6019
|
+
changeRequestId: optionalKey(Id),
|
|
6020
|
+
head: optionalKey(String4)
|
|
6019
6021
|
}),
|
|
6020
6022
|
Struct({ kind: Literal("step"), name: String4.check(isMinLength(1)), stepAttemptId: Id }),
|
|
6021
6023
|
Struct({ kind: Literal("child"), name: String4.check(isMinLength(1)), runId: Id }),
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
map8,
|
|
23
23
|
raceFirst,
|
|
24
24
|
scoped
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-che5w0y4.js";
|
|
26
26
|
import {
|
|
27
27
|
unwrap,
|
|
28
28
|
drainFork,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
runCollect,
|
|
32
32
|
runDrain,
|
|
33
33
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-9nrr1dwr.js";
|
|
35
35
|
|
|
36
36
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
37
|
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-che5w0y4.js";
|
|
79
79
|
import {
|
|
80
80
|
guard
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-30mfra3r.js";
|
|
82
82
|
import {
|
|
83
83
|
currentTimeMillis,
|
|
84
84
|
WebCrypto,
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
KitDigest,
|
|
106
106
|
KitSetup,
|
|
107
107
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-4kxjvd6d.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-9nrr1dwr.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -199,7 +199,7 @@ import {
|
|
|
199
199
|
String4,
|
|
200
200
|
toCodecStringTree,
|
|
201
201
|
encodeUnknownJsonStringSync
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-che5w0y4.js";
|
|
203
203
|
|
|
204
204
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
205
205
|
var headUnsafe = (self) => {
|
|
@@ -23,24 +23,24 @@ import {
|
|
|
23
23
|
fnUntraced,
|
|
24
24
|
encodePrettyJsonString,
|
|
25
25
|
decodeJsonStringSync
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-che5w0y4.js";
|
|
27
27
|
import {
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-hxqxdy21.js";
|
|
31
31
|
import {
|
|
32
32
|
FileSystem,
|
|
33
33
|
Path,
|
|
34
34
|
optionalEnv
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-9nrr1dwr.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentHarnessIds,
|
|
38
38
|
sha2562,
|
|
39
39
|
runCommand2
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-4kxjvd6d.js";
|
|
41
41
|
import {
|
|
42
42
|
NpmRegistry
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-qhyzesdb.js";
|
|
44
44
|
|
|
45
45
|
// packages/agent-runtime/src/config-convergence.ts
|
|
46
46
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
decodeJsonString,
|
|
88
88
|
encodeJsonStringSync,
|
|
89
89
|
encodePrettyJsonString
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-che5w0y4.js";
|
|
91
91
|
import {
|
|
92
92
|
tap,
|
|
93
93
|
mapError,
|
|
@@ -99,7 +99,7 @@ import {
|
|
|
99
99
|
withDefault,
|
|
100
100
|
option,
|
|
101
101
|
String2
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-9nrr1dwr.js";
|
|
103
103
|
import {
|
|
104
104
|
currentTimeMillis,
|
|
105
105
|
SecureRandom,
|
|
@@ -207,10 +207,10 @@ import {
|
|
|
207
207
|
harnessNames,
|
|
208
208
|
herdrRunnerCapabilities2,
|
|
209
209
|
declaredChecks
|
|
210
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-4kxjvd6d.js";
|
|
211
211
|
import {
|
|
212
212
|
Id
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-30mfra3r.js";
|
|
214
214
|
import {
|
|
215
215
|
toJsonValue,
|
|
216
216
|
isOneOf,
|
|
@@ -220,11 +220,11 @@ import {
|
|
|
220
220
|
isObject,
|
|
221
221
|
isJsonObject,
|
|
222
222
|
isString
|
|
223
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-hxqxdy21.js";
|
|
224
224
|
import {
|
|
225
225
|
ChildProcessSpawner,
|
|
226
226
|
make3
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-5esfnamp.js";
|
|
228
228
|
|
|
229
229
|
// apps/cli/src/cli-error.ts
|
|
230
230
|
function cliErrorCode(error, status) {
|
|
@@ -507,10 +507,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
507
507
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
508
508
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
509
509
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
510
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
510
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-psz28edd.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
511
511
|
});
|
|
512
512
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
513
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
513
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-psz28edd.js")), (module) => module.updateHerdrCore(options))
|
|
514
514
|
});
|
|
515
515
|
var herdrCoreMissing = (error) => {
|
|
516
516
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -861,7 +861,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
861
861
|
});
|
|
862
862
|
var syncKits = (input) => gen(function* () {
|
|
863
863
|
const fs = yield* FileSystem;
|
|
864
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
864
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-q492wb19.js"));
|
|
865
865
|
const harnesses = yield* syncTargets(input.harness);
|
|
866
866
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
867
867
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1779,7 +1779,7 @@ var package_default = {
|
|
|
1779
1779
|
};
|
|
1780
1780
|
|
|
1781
1781
|
// apps/cli/src/scaffold.ts
|
|
1782
|
-
var cliVersion = "0.10.
|
|
1782
|
+
var cliVersion = "0.10.101";
|
|
1783
1783
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
1784
1784
|
name,
|
|
1785
1785
|
private: true,
|
|
@@ -1968,6 +1968,8 @@ var Usage = [
|
|
|
1968
1968
|
" kitman inbox read|unread|done|undone|unsnooze <task:id|run:id|proposal:id|project_update:id>...",
|
|
1969
1969
|
" kitman inbox snooze <task:id|run:id|proposal:id|project_update:id>... --until <time>",
|
|
1970
1970
|
" kitman inbox unsubscribe <task>...",
|
|
1971
|
+
" kitman cr approve <id|url> [--summary <text>] (approves the head Kitman last saw; only a person, not an agent or a tool acting for one)",
|
|
1972
|
+
" kitman cr request-changes <id|url> --summary <text>",
|
|
1971
1973
|
"",
|
|
1972
1974
|
"",
|
|
1973
1975
|
"Loops and Agents the Kits deployed here declare (kitman deploy changes them):",
|
|
@@ -2032,7 +2034,7 @@ var Usage = [
|
|
|
2032
2034
|
"Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
|
|
2033
2035
|
].join(`
|
|
2034
2036
|
`);
|
|
2035
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2037
|
+
var agentRuntime = promise(() => import("./chunk-x75d47ez.js"));
|
|
2036
2038
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2037
2039
|
defaultValue: () => gen(function* () {
|
|
2038
2040
|
const tui = yield* tryPromise({
|
|
@@ -2111,6 +2113,8 @@ function runEffect(args) {
|
|
|
2111
2113
|
return yield* networkHostCommand(args);
|
|
2112
2114
|
if (command === "claim")
|
|
2113
2115
|
return yield* claimCommand(args);
|
|
2116
|
+
if (command === "cr")
|
|
2117
|
+
return yield* changeRequestCommand(args);
|
|
2114
2118
|
if (command === "deploy")
|
|
2115
2119
|
return yield* rest[0] === "bind" || rest[0] === "bindings" || rest[0] === "unbind" ? deployBindingCommand(args) : deployCommand(["deploy", "deploy", ...rest]);
|
|
2116
2120
|
if (command === "dev")
|
|
@@ -2926,7 +2930,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
2926
2930
|
});
|
|
2927
2931
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
2928
2932
|
defaultValue: () => (options) => gen(function* () {
|
|
2929
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
2933
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-hzf25za9.js"));
|
|
2930
2934
|
return yield* makeRunnerRpcClient({
|
|
2931
2935
|
runnerId: options.runnerId,
|
|
2932
2936
|
bearer: options.bearer,
|
|
@@ -3403,7 +3407,7 @@ function mcpCommand(args) {
|
|
|
3403
3407
|
if (command.action === "run") {
|
|
3404
3408
|
if (command.args.length > 0)
|
|
3405
3409
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3406
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3410
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-e70qpgft.js"));
|
|
3407
3411
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3408
3412
|
}
|
|
3409
3413
|
if (command.action !== "setup")
|
|
@@ -4614,9 +4618,52 @@ function claimCommand(args) {
|
|
|
4614
4618
|
}
|
|
4615
4619
|
});
|
|
4616
4620
|
}
|
|
4617
|
-
var
|
|
4621
|
+
var urlLookupLimit = 100;
|
|
4622
|
+
var changeRequestNamed = (client, workspaceId, ref) => gen(function* () {
|
|
4623
|
+
if (!/^https?:\/\//i.test(ref))
|
|
4624
|
+
return yield* client.getChangeRequest(ref);
|
|
4625
|
+
const wanted = ref.replace(/\/+$/, "");
|
|
4626
|
+
for (const team of (yield* client.listTeams(workspaceId)).items)
|
|
4627
|
+
for (const status of ["open", "draft"]) {
|
|
4628
|
+
const found = (yield* client.listChangeRequests(team.id, { status, limit: urlLookupLimit })).items.find((candidate) => candidate.url.replace(/\/+$/, "") === wanted);
|
|
4629
|
+
if (found !== undefined)
|
|
4630
|
+
return found;
|
|
4631
|
+
}
|
|
4632
|
+
return yield* new CliError({
|
|
4633
|
+
message: `No open or draft ChangeRequest among each Team's ${urlLookupLimit} most recently updated has the URL ${ref}; name it by its id instead`
|
|
4634
|
+
});
|
|
4635
|
+
});
|
|
4636
|
+
function changeRequestCommand(args) {
|
|
4637
|
+
return gen(function* () {
|
|
4638
|
+
const command = parseCommand(args);
|
|
4639
|
+
const client = yield* loopClientFor(yield* resolveApiUrl(command.flags.apiUrl));
|
|
4640
|
+
const workspaceId = yield* activeWorkspaceId(command.flags);
|
|
4641
|
+
if (command.action !== "approve" && command.action !== "request-changes")
|
|
4642
|
+
return yield* new CliError({ message: `Unknown cr command: ${command.action}` });
|
|
4643
|
+
const { summary } = command.flags;
|
|
4644
|
+
if (command.action === "request-changes" && summary === undefined)
|
|
4645
|
+
return yield* new CliError({ message: "Say what should change with --summary <text>" });
|
|
4646
|
+
const named = yield* changeRequestNamed(client, workspaceId, requiredArg(command, "a ChangeRequest id or URL"));
|
|
4647
|
+
const changeRequest = yield* client.refreshChangeRequest(named.id).pipe(catch_((error2) => as(error(`warning: could not read ${named.title} from the forge (${error2.message}), so this names the head Kitman last saw`), named)));
|
|
4648
|
+
const head = changeRequest.providerMetadata?.headCommitSha;
|
|
4649
|
+
if (command.action === "approve" && head === undefined)
|
|
4650
|
+
return yield* new CliError({
|
|
4651
|
+
message: `Kitman has not seen the head of ${changeRequest.title}; refresh it on ${changeRequest.url} and try again`
|
|
4652
|
+
});
|
|
4653
|
+
const short = head?.slice(0, 12) ?? "the head";
|
|
4654
|
+
const review = yield* client.recordChangeRequestReview(changeRequest.id, {
|
|
4655
|
+
outcome: command.action === "approve" ? "approved" : "changes_requested",
|
|
4656
|
+
summary: summary ?? `Approved ${short} with the Kitman CLI.`,
|
|
4657
|
+
...head === undefined ? undefined : { headCommitSha: head }
|
|
4658
|
+
});
|
|
4659
|
+
if (command.flags.json)
|
|
4660
|
+
return yield* printJson(review);
|
|
4661
|
+
yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
|
|
4662
|
+
});
|
|
4663
|
+
}
|
|
4664
|
+
var KitWriter = map8(promise(() => import("./chunk-xyfs9f2k.js")), (build) => build.writeKit);
|
|
4618
4665
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4619
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4666
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-xyfs9f2k.js")), (build) => build.buildKit(directory))
|
|
4620
4667
|
});
|
|
4621
4668
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4622
4669
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-9nrr1dwr.js";
|
|
18
|
+
import"./chunk-che5w0y4.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -1537,6 +1537,7 @@ var map4 = /* @__PURE__ */ dual(2, (self, f) => isNone(self) ? none() : some(f(s
|
|
|
1537
1537
|
var flatMap = /* @__PURE__ */ dual(2, (self, f) => isNone(self) ? none() : f(self.value));
|
|
1538
1538
|
var toArray = (self) => isNone(self) ? [] : [self.value];
|
|
1539
1539
|
var filter2 = /* @__PURE__ */ dual(2, (self, predicate) => isNone(self) ? none() : predicate(self.value) ? some(self.value) : none());
|
|
1540
|
+
var exists = /* @__PURE__ */ dual(2, (self, refinement) => isNone(self) ? false : refinement(self.value));
|
|
1540
1541
|
|
|
1541
1542
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Context.js
|
|
1542
1543
|
var ServiceTypeId = "~effect/Context/Service";
|
|
@@ -10159,4 +10160,4 @@ var encodePrettyJsonString = encodeEffect(fromJsonString(Json, { space: 2 }));
|
|
|
10159
10160
|
var decodeJsonStringSync = decodeUnknownSync(JsonFromString);
|
|
10160
10161
|
var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
10161
10162
|
|
|
10162
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make16, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync };
|
|
10163
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString2, isNumber2, isBoolean2, isBigInt2, isSymbol2, isFunction2, isUndefined2, isNotUndefined, isNotNull, isNullish, isObjectOrArray, isObject2, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, asVoidAll, makeUnsafe5, make16, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, isEffect, all3, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map8, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, Pointer, makeFormatterStandardSchemaV1, passthrough, transformEffect, Transformation, transform, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map9, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeEffect, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, Error3, TaggedError2, toEquivalence, toCodecJson, toCodecStringTree, Json, JsonObject, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync };
|