@kitman-sh/cli 0.10.105 → 0.11.0-rc.3
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-30mfra3r.js → chunk-0qz10ek8.js} +1 -1
- package/dist/{chunk-pme28eew.js → chunk-248msks2.js} +4 -4
- package/dist/{chunk-9nrr1dwr.js → chunk-3d4d52e5.js} +1 -1
- package/dist/{chunk-qcct8vjh.js → chunk-52ad8f0f.js} +163 -47
- package/dist/{chunk-1hw35x4x.js → chunk-5hx3j5x8.js} +5 -5
- package/dist/{chunk-tbrpndp2.js → chunk-5j848ckb.js} +2 -2
- package/dist/{chunk-kadsqvtm.js → chunk-6pyxykt1.js} +4 -4
- package/dist/{chunk-0xjrc51m.js → chunk-7fbpsnt7.js} +8 -8
- package/dist/{chunk-t80dhv1r.js → chunk-9a2r12ye.js} +3 -3
- package/dist/{chunk-fzsbapgz.js → chunk-b6m9rfzj.js} +10 -10
- package/dist/{chunk-fe65rbvv.js → chunk-bs81bt3q.js} +9 -9
- package/dist/{chunk-hxqxdy21.js → chunk-c6rbt85q.js} +1 -1
- package/dist/{chunk-044h6f3n.js → chunk-cnzz61ta.js} +16 -14
- package/dist/{chunk-s27r6x3a.js → chunk-d9bv70qb.js} +5 -5
- package/dist/{chunk-cazap5by.js → chunk-egb7pjjz.js} +3 -3
- package/dist/{chunk-c7ym0ce7.js → chunk-japwbj9n.js} +2 -2
- package/dist/{chunk-xckn5gax.js → chunk-nzjb36ad.js} +1 -1
- package/dist/{chunk-7z9m11z3.js → chunk-rtqdqr0v.js} +28 -21
- package/dist/{chunk-5esfnamp.js → chunk-sk6ceghr.js} +2 -2
- package/dist/{chunk-2cznmt28.js → chunk-vkgqtwqm.js} +7 -7
- package/dist/{chunk-hv44tcjs.js → chunk-vmv7gwwr.js} +4 -4
- package/dist/{chunk-che5w0y4.js → chunk-vtfwjhzh.js} +7 -1
- package/dist/{chunk-01fzz2j3.js → chunk-x7b9bwk6.js} +4 -4
- package/dist/{chunk-yjnrw9yb.js → chunk-z450wa10.js} +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
isObject,
|
|
7
7
|
isJsonObject,
|
|
8
8
|
isString
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-c6rbt85q.js";
|
|
10
10
|
import {
|
|
11
11
|
pipeArguments,
|
|
12
12
|
dual,
|
|
@@ -168,12 +168,12 @@ import {
|
|
|
168
168
|
encodePrettyJsonString,
|
|
169
169
|
decodeJsonStringSync,
|
|
170
170
|
encodeUnknownJsonStringSync
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-vtfwjhzh.js";
|
|
172
172
|
import {
|
|
173
173
|
Id,
|
|
174
174
|
secretReference,
|
|
175
175
|
secretPlaceholder
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-0qz10ek8.js";
|
|
177
177
|
import {
|
|
178
178
|
currentTimeMillis,
|
|
179
179
|
SecureRandom,
|
|
@@ -246,7 +246,7 @@ import {
|
|
|
246
246
|
installCommand,
|
|
247
247
|
checkServicesFile,
|
|
248
248
|
checkServices
|
|
249
|
-
} from "./chunk-
|
|
249
|
+
} from "./chunk-rtqdqr0v.js";
|
|
250
250
|
import {
|
|
251
251
|
join,
|
|
252
252
|
interrupt,
|
|
@@ -286,7 +286,7 @@ import {
|
|
|
286
286
|
writeSrtSettings2,
|
|
287
287
|
srtStepArgv2,
|
|
288
288
|
srtArgv2
|
|
289
|
-
} from "./chunk-
|
|
289
|
+
} from "./chunk-3d4d52e5.js";
|
|
290
290
|
import {
|
|
291
291
|
writeAgentEnvironmentConfigFile2,
|
|
292
292
|
readManifestSkillPaths2,
|
|
@@ -302,8 +302,8 @@ import {
|
|
|
302
302
|
applyAgentEnvironmentMaterialization2,
|
|
303
303
|
isPathWithin2,
|
|
304
304
|
skillIdentity2
|
|
305
|
-
} from "./chunk-
|
|
306
|
-
import"./chunk-
|
|
305
|
+
} from "./chunk-5hx3j5x8.js";
|
|
306
|
+
import"./chunk-9a2r12ye.js";
|
|
307
307
|
import {
|
|
308
308
|
egressAllowed,
|
|
309
309
|
writeSecretRegistry,
|
|
@@ -313,7 +313,7 @@ import {
|
|
|
313
313
|
secretFilter2,
|
|
314
314
|
opaqueTunnelRefusal2,
|
|
315
315
|
isOpaqueConnectReason2
|
|
316
|
-
} from "./chunk-
|
|
316
|
+
} from "./chunk-5j848ckb.js";
|
|
317
317
|
import {
|
|
318
318
|
sliceBytes2,
|
|
319
319
|
maxLineBytes2,
|
|
@@ -321,23 +321,23 @@ import {
|
|
|
321
321
|
decodedOption2,
|
|
322
322
|
decoded2,
|
|
323
323
|
readOpencode2
|
|
324
|
-
} from "./chunk-
|
|
324
|
+
} from "./chunk-vmv7gwwr.js";
|
|
325
325
|
import {
|
|
326
326
|
uploadRunFile,
|
|
327
327
|
programLease,
|
|
328
328
|
rpcRunFiles,
|
|
329
329
|
programHostsEnv,
|
|
330
330
|
undeclaredHostsEnv
|
|
331
|
-
} from "./chunk-
|
|
332
|
-
import"./chunk-
|
|
331
|
+
} from "./chunk-6pyxykt1.js";
|
|
332
|
+
import"./chunk-248msks2.js";
|
|
333
333
|
import {
|
|
334
334
|
nextInt
|
|
335
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-nzjb36ad.js";
|
|
336
336
|
import {
|
|
337
337
|
ChildProcessSpawner,
|
|
338
338
|
make3
|
|
339
|
-
} from "./chunk-
|
|
340
|
-
import"./chunk-
|
|
339
|
+
} from "./chunk-sk6ceghr.js";
|
|
340
|
+
import"./chunk-egb7pjjz.js";
|
|
341
341
|
|
|
342
342
|
// packages/core/src/sync-kit.ts
|
|
343
343
|
import { createHash } from "crypto";
|
|
@@ -5728,9 +5728,11 @@ var runCheckouts = (rootDir, credentials) => {
|
|
|
5728
5728
|
const directory = `${rootDir}/scratch/${work.id}`;
|
|
5729
5729
|
return yield* acquireRelease(as(fs.makeDirectory(directory, { recursive: true }), directory), () => ignore(fs.remove(directory, { recursive: true, force: true })));
|
|
5730
5730
|
});
|
|
5731
|
+
const reaches = (repoBinding) => flatMap3(remote(repoBinding), ({ url, env }) => map8(exit(runCommand2("git", [...stallLimit, "ls-remote", url, "HEAD"], { timeout: "1 minute", env })), isSuccess2));
|
|
5731
5732
|
return {
|
|
5732
5733
|
clone,
|
|
5733
5734
|
transferEnv,
|
|
5735
|
+
reaches,
|
|
5734
5736
|
checkout,
|
|
5735
5737
|
scratch,
|
|
5736
5738
|
held: gen(function* () {
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-vmv7gwwr.js";
|
|
11
|
+
import"./chunk-sk6ceghr.js";
|
|
12
|
+
import"./chunk-c6rbt85q.js";
|
|
13
|
+
import"./chunk-3d4d52e5.js";
|
|
14
|
+
import"./chunk-vtfwjhzh.js";
|
|
15
15
|
export {
|
|
16
16
|
decoded2 as decoded,
|
|
17
17
|
decodedOption2 as decodedOption,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-vtfwjhzh.js";
|
|
100
100
|
import {
|
|
101
101
|
interrupt,
|
|
102
102
|
getCurrent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-3d4d52e5.js";
|
|
112
112
|
import {
|
|
113
113
|
Clock,
|
|
114
114
|
empty,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-rtqdqr0v.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-3d4d52e5.js";
|
|
18
|
+
import"./chunk-vtfwjhzh.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -249,7 +249,7 @@ import {
|
|
|
249
249
|
decodeJsonStringOption,
|
|
250
250
|
encodeJsonStringSync,
|
|
251
251
|
encodePrettyJsonString
|
|
252
|
-
} from "./chunk-
|
|
252
|
+
} from "./chunk-vtfwjhzh.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-3d4d52e5.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-0qz10ek8.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-c6rbt85q.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-sk6ceghr.js";
|
|
361
361
|
|
|
362
362
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
363
363
|
var makeEquivalence3 = Tuple;
|
|
@@ -6064,7 +6064,8 @@ var RunWaiting = Union([
|
|
|
6064
6064
|
workUnitId: Id,
|
|
6065
6065
|
rank: Literals(ClaimRanks),
|
|
6066
6066
|
position: Int.check(isGreaterThanOrEqualTo(1)),
|
|
6067
|
-
reason: String4
|
|
6067
|
+
reason: String4,
|
|
6068
|
+
movesUpAt: optionalKey(String4)
|
|
6068
6069
|
})
|
|
6069
6070
|
]);
|
|
6070
6071
|
var RunEvidence = Struct({
|
|
@@ -6516,6 +6517,7 @@ var RunStartPreview = Struct({
|
|
|
6516
6517
|
missing: ArraySchema(String4),
|
|
6517
6518
|
message: optionalKey(String4),
|
|
6518
6519
|
waitingOn: optionalKey(WaitingOn),
|
|
6520
|
+
unreachable: optionalKey(Struct({ repoBindingId: Id, message: String4 })),
|
|
6519
6521
|
teamId: optionalKey(Id),
|
|
6520
6522
|
inferred: Struct({
|
|
6521
6523
|
repoBindingId: optionalKey(Id),
|
|
@@ -6964,6 +6966,7 @@ var RunnerProblemCodes = [
|
|
|
6964
6966
|
"sandbox_missing",
|
|
6965
6967
|
"herdr_core_missing",
|
|
6966
6968
|
"update_failed",
|
|
6969
|
+
"update_required",
|
|
6967
6970
|
"processes_unreaped",
|
|
6968
6971
|
"processes_uncontained",
|
|
6969
6972
|
"full_access_refused"
|
|
@@ -8010,12 +8013,14 @@ function defaultRunnerCapabilities() {
|
|
|
8010
8013
|
// packages/core/src/team-context.ts
|
|
8011
8014
|
var BranchTemplate = String4.check(isMinLength(1), isMaxLength(160));
|
|
8012
8015
|
var DeliveryMode = Literals(["gated", "auto"]);
|
|
8016
|
+
var HoursPerPriorityLevel = Int.check(isGreaterThanOrEqualTo(1), isLessThanOrEqualTo(168));
|
|
8013
8017
|
var TeamDeliverySettings = Struct({
|
|
8014
8018
|
defaultRepoBindingId: optionalKey(Id),
|
|
8015
8019
|
standardBranchTemplate: BranchTemplate,
|
|
8016
8020
|
epicBranchTemplate: BranchTemplate,
|
|
8017
8021
|
isolatedChildBranchTemplate: BranchTemplate,
|
|
8018
8022
|
delivery: DeliveryMode,
|
|
8023
|
+
hoursPerPriorityLevel: HoursPerPriorityLevel,
|
|
8019
8024
|
revision: Int.check(isGreaterThanOrEqualTo(1))
|
|
8020
8025
|
});
|
|
8021
8026
|
var TeamDeliverySettingsUpdate = Struct({
|
|
@@ -8024,6 +8029,7 @@ var TeamDeliverySettingsUpdate = Struct({
|
|
|
8024
8029
|
epicBranchTemplate: optionalKey(BranchTemplate),
|
|
8025
8030
|
isolatedChildBranchTemplate: optionalKey(BranchTemplate),
|
|
8026
8031
|
delivery: optionalKey(DeliveryMode),
|
|
8032
|
+
hoursPerPriorityLevel: optionalKey(HoursPerPriorityLevel),
|
|
8027
8033
|
expectedRevision: Int.check(isGreaterThanOrEqualTo(1))
|
|
8028
8034
|
});
|
|
8029
8035
|
var TeamReference = Struct({ id: Id, workspaceId: Id, key: String4, name: String4 });
|
|
@@ -14014,7 +14020,6 @@ var Service = () => (id, options) => {
|
|
|
14014
14020
|
// packages/live/src/rpc/runner-group.ts
|
|
14015
14021
|
var RunnerHeaders = { runnerId: "x-kitman-runner-id", protocolVersion: "x-kitman-rpc-protocol" };
|
|
14016
14022
|
var RunnerRpcProtocolVersion = 5;
|
|
14017
|
-
|
|
14018
14023
|
class RunnerRpcError extends TaggedError2()("RunnerRpcError", {
|
|
14019
14024
|
code: String4,
|
|
14020
14025
|
message: String4,
|
|
@@ -15763,27 +15768,28 @@ var launchableHarnesses = (input) => {
|
|
|
15763
15768
|
function herdrRunnerCapabilitiesForRepoBinding2(repoBinding, input) {
|
|
15764
15769
|
const capabilities = herdrRunnerCapabilities2(input);
|
|
15765
15770
|
const sshAgentAvailable = input.sshAgentAvailable === true;
|
|
15766
|
-
const credentialProviderTypes = [
|
|
15767
|
-
...new Set(repoBinding.credentialRefs.flatMap((credential) => credential.kind === "runner_secret" || credential.kind === "local_env" ? [credential.kind === "runner_secret" ? credential.providerType : "env"] : []))
|
|
15768
|
-
];
|
|
15769
15771
|
const authenticated = repoBinding.credentialRefs.every((credential) => credential.kind === "none") || repoBinding.credentialRefs.every((credential) => credential.kind === "ssh_agent") && sshAgentAvailable;
|
|
15770
15772
|
return {
|
|
15771
15773
|
...capabilities,
|
|
15772
15774
|
deliveryTools: input.fullAccess === true && repoBinding.provider === "gitlab" ? [{ kind: "glab", available: true, providerHosts: [repoBinding.host], authenticated }] : capabilities.deliveryTools,
|
|
15773
|
-
repoBindings:
|
|
15774
|
-
|
|
15775
|
-
|
|
15776
|
-
repoBindingId: repoBinding.id,
|
|
15777
|
-
provider: repoBinding.provider,
|
|
15778
|
-
host: repoBinding.host,
|
|
15779
|
-
accessModes: ["managed_clone"],
|
|
15780
|
-
credentialProviderTypes,
|
|
15781
|
-
authenticated,
|
|
15775
|
+
...capabilities.repoBindings === undefined ? undefined : {
|
|
15776
|
+
repoBindings: capabilities.repoBindings.map((reported) => reported.repoBindingId === repoBinding.id ? {
|
|
15777
|
+
...reported,
|
|
15782
15778
|
canPush: input.fullAccess === true && repoBinding.credentialRefs.every((credential) => credential.kind === "ssh_agent") && sshAgentAvailable
|
|
15783
|
-
}
|
|
15784
|
-
|
|
15779
|
+
} : reported)
|
|
15780
|
+
}
|
|
15785
15781
|
};
|
|
15786
15782
|
}
|
|
15783
|
+
var reportedRepoBinding = ({ repoBinding, reachable }) => ({
|
|
15784
|
+
repoBindingId: repoBinding.id,
|
|
15785
|
+
provider: repoBinding.provider,
|
|
15786
|
+
host: repoBinding.host,
|
|
15787
|
+
accessModes: ["managed_clone"],
|
|
15788
|
+
credentialProviderTypes: [
|
|
15789
|
+
...new Set(repoBinding.credentialRefs.flatMap((credential) => credential.kind === "runner_secret" || credential.kind === "local_env" ? [credential.kind === "runner_secret" ? credential.providerType : "env"] : []))
|
|
15790
|
+
],
|
|
15791
|
+
authenticated: reachable
|
|
15792
|
+
});
|
|
15787
15793
|
function herdrRunnerCapabilities2(input) {
|
|
15788
15794
|
const bunVersion = process.versions.bun;
|
|
15789
15795
|
const sandboxBackends = (input.sandbox?.backends ?? []).filter((backend) => backend !== "host");
|
|
@@ -15813,6 +15819,7 @@ function herdrRunnerCapabilities2(input) {
|
|
|
15813
15819
|
providerActions: input.fullAccess ? { comment: "allowed", requestChanges: "allowed", approve: "allowed", merge: "disabled" } : { comment: "disabled", requestChanges: "disabled", approve: "disabled", merge: "disabled" },
|
|
15814
15820
|
cacheSharingModes: []
|
|
15815
15821
|
},
|
|
15822
|
+
...input.reached === undefined || input.reached.length === 0 ? undefined : { repoBindings: input.reached.map(reportedRepoBinding) },
|
|
15816
15823
|
resourceLimits: { maxConcurrentRuns: 1, maxRunSeconds: 86400 },
|
|
15817
15824
|
measure: true,
|
|
15818
15825
|
resolve: true
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
map8,
|
|
23
23
|
raceFirst,
|
|
24
24
|
scoped
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-vtfwjhzh.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-3d4d52e5.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;
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-248msks2.js";
|
|
8
|
+
import"./chunk-egb7pjjz.js";
|
|
9
|
+
import"./chunk-rtqdqr0v.js";
|
|
10
|
+
import"./chunk-0qz10ek8.js";
|
|
11
|
+
import"./chunk-c6rbt85q.js";
|
|
12
|
+
import"./chunk-3d4d52e5.js";
|
|
13
|
+
import"./chunk-vtfwjhzh.js";
|
|
14
14
|
export {
|
|
15
15
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
16
16
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -22,21 +22,21 @@ import {
|
|
|
22
22
|
NullOr,
|
|
23
23
|
Finite,
|
|
24
24
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-vtfwjhzh.js";
|
|
26
26
|
import {
|
|
27
27
|
isNumber,
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-c6rbt85q.js";
|
|
31
31
|
import {
|
|
32
32
|
make11,
|
|
33
33
|
runForEach,
|
|
34
34
|
compiled2
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-3d4d52e5.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
38
|
make3
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-sk6ceghr.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -2072,6 +2072,12 @@ var toMillis = (self) => match2(fromInputUnsafe(self), {
|
|
|
2072
2072
|
onInfinity: () => Infinity,
|
|
2073
2073
|
onNegativeInfinity: () => -Infinity
|
|
2074
2074
|
});
|
|
2075
|
+
var toMinutes = (self) => match2(fromInputUnsafe(self), {
|
|
2076
|
+
onMillis: (millis) => millis / 60000,
|
|
2077
|
+
onNanos: (nanos) => nanosToUnit(nanos, 60000000000),
|
|
2078
|
+
onInfinity: () => Infinity,
|
|
2079
|
+
onNegativeInfinity: () => -Infinity
|
|
2080
|
+
});
|
|
2075
2081
|
var toNanosUnsafe = (input) => {
|
|
2076
2082
|
const self = fromInputUnsafe(input);
|
|
2077
2083
|
switch (self.value._tag) {
|
|
@@ -10160,4 +10166,4 @@ var encodePrettyJsonString = encodeEffect(fromJsonString(Json, { space: 2 }));
|
|
|
10160
10166
|
var decodeJsonStringSync = decodeUnknownSync(JsonFromString);
|
|
10161
10167
|
var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
10162
10168
|
|
|
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 };
|
|
10169
|
+
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, toMinutes, 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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-sk6ceghr.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-rtqdqr0v.js";
|
|
16
|
+
import"./chunk-3d4d52e5.js";
|
|
17
|
+
import"./chunk-vtfwjhzh.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-5j848ckb.js";
|
|
8
|
+
import"./chunk-0qz10ek8.js";
|
|
9
|
+
import"./chunk-c6rbt85q.js";
|
|
10
|
+
import"./chunk-vtfwjhzh.js";
|
|
11
11
|
export {
|
|
12
12
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
13
13
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-japwbj9n.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-z450wa10.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-d9bv70qb.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-52ad8f0f.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|