@kitman-sh/cli 0.13.8 → 0.13.9
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-q5w3v4k1.js → chunk-0tjg9eya.js} +1 -1
- package/dist/{chunk-zz589n7a.js → chunk-0wj65j5e.js} +12 -12
- package/dist/{chunk-7bytsxkf.js → chunk-1ht6jwzm.js} +13 -12
- package/dist/{chunk-5zth85pj.js → chunk-53qp6kcp.js} +2 -2
- package/dist/{chunk-gj1padza.js → chunk-69fcvx7d.js} +39 -39
- package/dist/{chunk-eg1n8wvf.js → chunk-6jtjcvnc.js} +44 -44
- package/dist/{chunk-vm2qy986.js → chunk-9gg1w4aa.js} +283 -375
- package/dist/{chunk-96svx416.js → chunk-a44ebqzx.js} +6 -6
- package/dist/{chunk-0h49y8gf.js → chunk-aezq3fyy.js} +74 -214
- package/dist/{chunk-gq7y5v3e.js → chunk-cw61zyh5.js} +1 -1
- package/dist/{chunk-5zhh41gb.js → chunk-ezv4p0zr.js} +4 -4
- package/dist/{chunk-gy9rf14f.js → chunk-fh58za51.js} +3 -3
- package/dist/{chunk-byeasm6x.js → chunk-hezxa6q5.js} +7 -7
- package/dist/{chunk-mtkstrh3.js → chunk-kq88aaa3.js} +4 -4
- package/dist/{chunk-cq2h8q9e.js → chunk-ksgt1tdc.js} +4 -4
- package/dist/{chunk-c4ccpwjy.js → chunk-pj3mer60.js} +4 -4
- package/dist/{chunk-zw3gf6r5.js → chunk-qjqa338f.js} +333 -94
- package/dist/{chunk-h1rmw7yk.js → chunk-qkjfx2ts.js} +14 -14
- package/dist/{chunk-08dyrk6y.js → chunk-rz18qefg.js} +10 -10
- package/dist/{chunk-gr17n0z3.js → chunk-s63fjc69.js} +25 -25
- package/dist/{chunk-cbpb2rww.js → chunk-tspf987k.js} +8 -8
- package/dist/{chunk-ff1r9vcq.js → chunk-v190zzc5.js} +1 -1
- package/dist/{chunk-a24jc5rx.js → chunk-wzr1n3zy.js} +7 -3
- package/dist/{chunk-z68rzf0f.js → chunk-x8sewxzm.js} +145 -145
- package/dist/{chunk-y1krmnbv.js → chunk-z5f7g1w1.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-tspf987k.js";
|
|
11
|
+
import"./chunk-kq88aaa3.js";
|
|
12
|
+
import"./chunk-aezq3fyy.js";
|
|
13
|
+
import"./chunk-qjqa338f.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-z5f7g1w1.js";
|
|
8
|
+
import"./chunk-0tjg9eya.js";
|
|
9
|
+
import"./chunk-qjqa338f.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
gen,
|
|
13
13
|
fail7,
|
|
14
14
|
flatMap3,
|
|
15
|
-
|
|
15
|
+
map7,
|
|
16
16
|
mapError2,
|
|
17
17
|
orDie,
|
|
18
18
|
provide3,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-qjqa338f.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-aezq3fyy.js";
|
|
32
32
|
import {
|
|
33
33
|
newerKitmanVersion,
|
|
34
34
|
digestSha256,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
get2,
|
|
40
40
|
layer4,
|
|
41
41
|
KitDigest
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-9gg1w4aa.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -73,7 +73,7 @@ var PackageJson = Struct({ kitman: optionalKey(Unknown) });
|
|
|
73
73
|
var decodePackageJson = decodeUnknownOption(fromJsonString(PackageJson));
|
|
74
74
|
var decodeManifest = decodeUnknownOption(KitManifest);
|
|
75
75
|
var decodeJson = decodeUnknownOption(fromJsonString(Unknown));
|
|
76
|
-
var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(
|
|
76
|
+
var gunzip = (bytes) => tryPromise(() => new Response(new Blob([new Uint8Array(bytes)]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer()).pipe(map7((buffer) => new Uint8Array(buffer)));
|
|
77
77
|
var text = (bytes) => new TextDecoder().decode(bytes).replace(/\0.*$/su, "");
|
|
78
78
|
var untar = (tar) => {
|
|
79
79
|
const files = new Map;
|
|
@@ -103,7 +103,7 @@ var untar = (tar) => {
|
|
|
103
103
|
var registryUrl = String2("NPM_CONFIG_REGISTRY").pipe(withDefault("https://registry.npmjs.org"));
|
|
104
104
|
var newerOf = (latest, next) => latest === undefined || next !== undefined && newerKitmanVersion(next, latest) ? next : latest;
|
|
105
105
|
var npmRegistryAt = (url = registryUrl) => {
|
|
106
|
-
const base = (isString(url) ? succeed6(url) : orDie(url)).pipe(
|
|
106
|
+
const base = (isString(url) ? succeed6(url) : orDie(url)).pipe(map7((value) => value.replace(/\/+$/u, "")));
|
|
107
107
|
const unreachable = (name, version) => (error) => new NpmRegistryError({
|
|
108
108
|
kind: "unreachable",
|
|
109
109
|
message: `npm did not answer for ${name}@${version}: ${error.message}; try again`
|
|
@@ -131,7 +131,7 @@ var npmRegistryAt = (url = registryUrl) => {
|
|
|
131
131
|
const dist = found.versions[version]?.dist;
|
|
132
132
|
if (dist === undefined)
|
|
133
133
|
return yield* new NpmRegistryError({ kind: "not_found", message: `npm has no ${name}@${wanted}` });
|
|
134
|
-
const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer),
|
|
134
|
+
const tarball = yield* get2(dist.tarball).pipe(flatMap3(filterStatusOk), flatMap3((response) => response.arrayBuffer), map7((buffer) => new Uint8Array(buffer)), mapError2(unreachable(name, version)), provide3(layer4));
|
|
135
135
|
if (!tarballMatches(tarball, dist))
|
|
136
136
|
return yield* new NpmRegistryError({
|
|
137
137
|
kind: "integrity",
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
never,
|
|
20
20
|
flatMap3,
|
|
21
21
|
andThen2,
|
|
22
|
-
|
|
22
|
+
map7,
|
|
23
23
|
raceFirst,
|
|
24
24
|
scoped
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-qjqa338f.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-aezq3fyy.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;
|
|
@@ -102,7 +102,7 @@ var makeHandle = (params) => Object.setPrototypeOf({
|
|
|
102
102
|
...params
|
|
103
103
|
}, HandleProto);
|
|
104
104
|
var make2 = (spawn) => {
|
|
105
|
-
const streamString = (command, options) => spawn(command).pipe(
|
|
105
|
+
const streamString = (command, options) => spawn(command).pipe(map7((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
106
106
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
107
107
|
return ChildProcessSpawner.of({
|
|
108
108
|
spawn,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-qjqa338f.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-aezq3fyy.js";
|
|
13
13
|
import {
|
|
14
14
|
WebSocketConstructor,
|
|
15
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-9gg1w4aa.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-qkjfx2ts.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-kq88aaa3.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-9gg1w4aa.js";
|
|
16
|
+
import"./chunk-aezq3fyy.js";
|
|
17
|
+
import"./chunk-qjqa338f.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|