@kitman-sh/cli 0.17.0 → 0.19.0
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-2928qj8m.js → chunk-0sbd6e4d.js} +21 -21
- package/dist/{chunk-kx8rpa62.js → chunk-2dhhyy04.js} +5 -5
- package/dist/{chunk-pnckztvv.js → chunk-2y646fhs.js} +20 -20
- package/dist/{chunk-nqh0pbgt.js → chunk-36dejya4.js} +1 -1
- package/dist/{chunk-829r4kya.js → chunk-3gmqn9yp.js} +4 -4
- package/dist/{chunk-g3jqqpky.js → chunk-4rq880g6.js} +9 -9
- package/dist/{chunk-zy21drtv.js → chunk-6387vj9z.js} +2 -2
- package/dist/{chunk-9a6wbk11.js → chunk-6hxtg6eb.js} +3 -3
- package/dist/{chunk-2sazk478.js → chunk-9cj8g584.js} +4 -4
- package/dist/{chunk-0wqkz371.js → chunk-am57a75e.js} +3 -3
- package/dist/{chunk-ekyj0bps.js → chunk-bevxc9rx.js} +7 -7
- package/dist/{chunk-j37p2y71.js → chunk-e863b7v1.js} +350 -189
- package/dist/{chunk-y64ssczv.js → chunk-ew07nt2d.js} +71 -257
- package/dist/{chunk-5me7tnrw.js → chunk-gqcz0d3j.js} +2 -2
- package/dist/{chunk-pd3azxev.js → chunk-haq904fk.js} +1 -1
- package/dist/{chunk-r3d2yjsh.js → chunk-hrdh72c7.js} +25 -25
- package/dist/{chunk-qjxgew0k.js → chunk-khn17hdn.js} +2 -2
- package/dist/{chunk-0f67q0tf.js → chunk-kx00yd3c.js} +9 -9
- package/dist/{chunk-ebpjd7kg.js → chunk-qp3kqaw1.js} +6 -6
- package/dist/{chunk-r2kzvdrg.js → chunk-qvpkwnky.js} +1 -1
- package/dist/{chunk-nf9rfrvv.js → chunk-t5gb7bqv.js} +34 -34
- package/dist/{chunk-vh2a72d1.js → chunk-t6y0c0ds.js} +60 -14
- package/dist/{chunk-z59pvcbk.js → chunk-w9mxqrsp.js} +178 -187
- package/dist/{chunk-8r1a93rc.js → chunk-y4nrvwgy.js} +4 -4
- package/dist/{chunk-m1qp6swh.js → chunk-y7bth30s.js} +1 -1
- package/dist/{chunk-jg1pjhba.js → chunk-zb8mwx3s.js} +21 -21
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -118,9 +118,8 @@ import {
|
|
|
118
118
|
decodeJsonStringOption,
|
|
119
119
|
encodeJsonStringSync,
|
|
120
120
|
encodePrettyJsonString
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-ew07nt2d.js";
|
|
122
122
|
import {
|
|
123
|
-
currentTimeMillis,
|
|
124
123
|
SecureRandom,
|
|
125
124
|
makeUnsafe,
|
|
126
125
|
formatIso,
|
|
@@ -158,8 +157,8 @@ import {
|
|
|
158
157
|
sessionForApi,
|
|
159
158
|
readAuthStore,
|
|
160
159
|
agentCredentialForApi,
|
|
161
|
-
make5,
|
|
162
160
|
make6,
|
|
161
|
+
make7,
|
|
163
162
|
Service,
|
|
164
163
|
shouldRefresh,
|
|
165
164
|
refreshSession,
|
|
@@ -170,8 +169,9 @@ import {
|
|
|
170
169
|
runMcpEffect,
|
|
171
170
|
createAgentAuthSignedFetch,
|
|
172
171
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-e863b7v1.js";
|
|
174
173
|
import {
|
|
174
|
+
currentTimeMillis,
|
|
175
175
|
join,
|
|
176
176
|
interrupt,
|
|
177
177
|
empty2,
|
|
@@ -187,30 +187,30 @@ import {
|
|
|
187
187
|
withDefault,
|
|
188
188
|
option,
|
|
189
189
|
String2
|
|
190
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-w9mxqrsp.js";
|
|
191
191
|
import {
|
|
192
192
|
searchDocs2,
|
|
193
193
|
readDoc2
|
|
194
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-gqcz0d3j.js";
|
|
195
195
|
import {
|
|
196
196
|
nextInt
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-y7bth30s.js";
|
|
198
198
|
import {
|
|
199
199
|
recommendationProblem
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-haq904fk.js";
|
|
201
201
|
import {
|
|
202
202
|
layerJson,
|
|
203
|
-
|
|
203
|
+
make4,
|
|
204
204
|
withHeaders,
|
|
205
205
|
layerProtocolSocket,
|
|
206
206
|
ConnectionHooks
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-2y646fhs.js";
|
|
208
208
|
import {
|
|
209
209
|
guard,
|
|
210
210
|
Id,
|
|
211
211
|
Timestamp,
|
|
212
212
|
ActorType
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-qvpkwnky.js";
|
|
214
214
|
|
|
215
215
|
// apps/cli/src/mcp.ts
|
|
216
216
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -1947,56 +1947,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1947
1947
|
LivePresenceSubscriptionUpdate
|
|
1948
1948
|
]);
|
|
1949
1949
|
|
|
1950
|
-
class LiveRpcs extends make6(
|
|
1950
|
+
class LiveRpcs extends make7(make6("Session", {
|
|
1951
1951
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1952
1952
|
error: LiveRpcError
|
|
1953
|
-
}),
|
|
1953
|
+
}), make6("Subscribe", {
|
|
1954
1954
|
payload: LiveSubscribeInput,
|
|
1955
1955
|
success: LiveSubscriptionMessage,
|
|
1956
1956
|
error: LiveRpcError,
|
|
1957
1957
|
stream: true
|
|
1958
|
-
}),
|
|
1958
|
+
}), make6("Replay", {
|
|
1959
1959
|
payload: LiveReplayInput,
|
|
1960
1960
|
success: ArraySchema(LiveEvent),
|
|
1961
1961
|
error: LiveRpcError
|
|
1962
|
-
}),
|
|
1962
|
+
}), make6("Ack", {
|
|
1963
1963
|
payload: LiveAckInput,
|
|
1964
1964
|
success: LiveAckResult,
|
|
1965
1965
|
error: LiveRpcError
|
|
1966
|
-
}),
|
|
1966
|
+
}), make6("SubscribeWeb", {
|
|
1967
1967
|
payload: LiveWebSubscribeInput,
|
|
1968
1968
|
success: LiveWebSubscriptionMessage,
|
|
1969
1969
|
error: LiveRpcError,
|
|
1970
1970
|
stream: true
|
|
1971
|
-
}),
|
|
1971
|
+
}), make6("SubscriptionStatus", {
|
|
1972
1972
|
payload: { subscriptionId: String4 },
|
|
1973
1973
|
success: LiveSubscriptionStatus,
|
|
1974
1974
|
error: LiveRpcError
|
|
1975
|
-
}),
|
|
1975
|
+
}), make6("ReplayWeb", {
|
|
1976
1976
|
payload: LiveWebReplayInput,
|
|
1977
1977
|
success: LiveWebReplayResult,
|
|
1978
1978
|
error: LiveRpcError
|
|
1979
|
-
}),
|
|
1979
|
+
}), make6("AckWeb", {
|
|
1980
1980
|
payload: LiveWebAckInput,
|
|
1981
1981
|
success: LiveWebAckResult,
|
|
1982
1982
|
error: LiveRpcError
|
|
1983
|
-
}),
|
|
1983
|
+
}), make6("PublishPresence", {
|
|
1984
1984
|
payload: LivePresencePublishInput,
|
|
1985
1985
|
success: LivePresenceEntry,
|
|
1986
1986
|
error: LiveRpcError
|
|
1987
|
-
}),
|
|
1987
|
+
}), make6("SubscribePresence", {
|
|
1988
1988
|
payload: LivePresenceSubscribeInput,
|
|
1989
1989
|
success: LivePresenceSubscriptionMessage,
|
|
1990
1990
|
error: LiveRpcError,
|
|
1991
1991
|
stream: true
|
|
1992
|
-
}),
|
|
1992
|
+
}), make6("ClearPresence", {
|
|
1993
1993
|
payload: { scope: optional(LiveScope) },
|
|
1994
1994
|
error: LiveRpcError
|
|
1995
|
-
}),
|
|
1995
|
+
}), make6("RecordSessionUpdate", {
|
|
1996
1996
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
1997
1997
|
success: SessionUpdate,
|
|
1998
1998
|
error: LiveRpcError
|
|
1999
|
-
}),
|
|
1999
|
+
}), make6("EndSession", {
|
|
2000
2000
|
payload: { sessionId: String4, input: SessionEnd },
|
|
2001
2001
|
success: Session,
|
|
2002
2002
|
error: LiveRpcError
|
|
@@ -2048,7 +2048,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2048
2048
|
})
|
|
2049
2049
|
});
|
|
2050
2050
|
const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2051
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2051
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2052
2052
|
let abandon = () => {};
|
|
2053
2053
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2054
2054
|
abandon = reject;
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
writeSrtSettings2,
|
|
16
16
|
srtStepArgv2,
|
|
17
17
|
srtArgv2
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import"./chunk-
|
|
18
|
+
} from "./chunk-w9mxqrsp.js";
|
|
19
|
+
import"./chunk-ew07nt2d.js";
|
|
20
20
|
export {
|
|
21
21
|
compiled2 as compiled,
|
|
22
22
|
harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
empty3,
|
|
13
13
|
add,
|
|
14
14
|
getOrUndefined2,
|
|
15
|
-
|
|
15
|
+
get3,
|
|
16
16
|
merge3,
|
|
17
17
|
Reference,
|
|
18
18
|
fromInputUnsafe,
|
|
@@ -138,9 +138,8 @@ import {
|
|
|
138
138
|
toJsonSchemaDocument,
|
|
139
139
|
toCodecJson,
|
|
140
140
|
Json
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-ew07nt2d.js";
|
|
142
142
|
import {
|
|
143
|
-
currentTimeMillis,
|
|
144
143
|
WebCrypto,
|
|
145
144
|
makeUnsafe,
|
|
146
145
|
formatIso,
|
|
@@ -176,23 +175,24 @@ import {
|
|
|
176
175
|
StepManifest,
|
|
177
176
|
KitSetup,
|
|
178
177
|
RunnerRpcError
|
|
179
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-e863b7v1.js";
|
|
180
179
|
import {
|
|
180
|
+
currentTimeMillis,
|
|
181
181
|
getCurrent,
|
|
182
182
|
runForEach,
|
|
183
183
|
FileSystem
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-w9mxqrsp.js";
|
|
185
185
|
import {
|
|
186
186
|
splitQuestionOptions,
|
|
187
187
|
recommendationProblem,
|
|
188
188
|
questionAdvice
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-haq904fk.js";
|
|
190
190
|
import {
|
|
191
191
|
guard,
|
|
192
192
|
Id,
|
|
193
193
|
Timestamp,
|
|
194
194
|
ActorType
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-qvpkwnky.js";
|
|
196
196
|
var __defProp = Object.defineProperty;
|
|
197
197
|
var __returnValue = (v) => v;
|
|
198
198
|
function __exportSetter(name, newValue) {
|
|
@@ -769,7 +769,7 @@ class Suspended extends (/* @__PURE__ */ Class2("effect/workflow/Workflow/Suspen
|
|
|
769
769
|
[ResultTypeId] = ResultTypeId;
|
|
770
770
|
}
|
|
771
771
|
var wrapActivityResult = (effect, isSuspend) => contextWith((context) => {
|
|
772
|
-
const instance =
|
|
772
|
+
const instance = get3(context, InstanceTag);
|
|
773
773
|
return acquireUseRelease(sync2(() => adoptActivityUnsafe(context, instance) ?? registerActivityUnsafe(instance)), () => effect, (registration, exit) => {
|
|
774
774
|
releaseActivityUnsafe(registration);
|
|
775
775
|
const isSuspended = isSuccess2(exit) && isSuspend(exit.value);
|
|
@@ -1420,7 +1420,7 @@ var scopingActivities = (engine) => ({
|
|
|
1420
1420
|
}),
|
|
1421
1421
|
activityExecute: (activity, attempt) => gen(function* () {
|
|
1422
1422
|
const scope = yield* StepScope;
|
|
1423
|
-
if (scope === "" ||
|
|
1423
|
+
if (scope === "" || get3(activity.annotations, ActivityNamed))
|
|
1424
1424
|
return yield* engine.activityExecute(activity, attempt);
|
|
1425
1425
|
return yield* engine.activityExecute(renamed(activity, scopedName(scope, activity.name)), attempt);
|
|
1426
1426
|
})
|
|
@@ -4,12 +4,12 @@ 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-
|
|
7
|
+
} from "./chunk-4rq880g6.js";
|
|
8
|
+
import"./chunk-2y646fhs.js";
|
|
9
|
+
import"./chunk-e863b7v1.js";
|
|
10
|
+
import"./chunk-qvpkwnky.js";
|
|
11
|
+
import"./chunk-w9mxqrsp.js";
|
|
12
|
+
import"./chunk-ew07nt2d.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -108,25 +108,8 @@ import {
|
|
|
108
108
|
decodeJsonStringOption,
|
|
109
109
|
encodeJsonStringSync,
|
|
110
110
|
encodePrettyJsonString
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-ew07nt2d.js";
|
|
112
112
|
import {
|
|
113
|
-
tap,
|
|
114
|
-
mapError,
|
|
115
|
-
decodeText,
|
|
116
|
-
run,
|
|
117
|
-
mkString,
|
|
118
|
-
FileSystem,
|
|
119
|
-
Path,
|
|
120
|
-
withDefault,
|
|
121
|
-
option,
|
|
122
|
-
String2
|
|
123
|
-
} from "./chunk-z59pvcbk.js";
|
|
124
|
-
import {
|
|
125
|
-
ChildProcessSpawner,
|
|
126
|
-
make2
|
|
127
|
-
} from "./chunk-vh2a72d1.js";
|
|
128
|
-
import {
|
|
129
|
-
currentTimeMillis,
|
|
130
113
|
SecureRandom,
|
|
131
114
|
layerWebCrypto,
|
|
132
115
|
runMain,
|
|
@@ -189,7 +172,7 @@ import {
|
|
|
189
172
|
digestSha256,
|
|
190
173
|
sha256Hasher,
|
|
191
174
|
raw,
|
|
192
|
-
|
|
175
|
+
make5,
|
|
193
176
|
get,
|
|
194
177
|
put,
|
|
195
178
|
HttpClient,
|
|
@@ -255,11 +238,28 @@ import {
|
|
|
255
238
|
harnessNames,
|
|
256
239
|
herdrRunnerCapabilities2,
|
|
257
240
|
declaredChecks
|
|
258
|
-
} from "./chunk-
|
|
241
|
+
} from "./chunk-e863b7v1.js";
|
|
242
|
+
import {
|
|
243
|
+
currentTimeMillis,
|
|
244
|
+
tap,
|
|
245
|
+
mapError,
|
|
246
|
+
decodeText,
|
|
247
|
+
run,
|
|
248
|
+
mkString,
|
|
249
|
+
FileSystem,
|
|
250
|
+
Path,
|
|
251
|
+
withDefault,
|
|
252
|
+
option,
|
|
253
|
+
String2
|
|
254
|
+
} from "./chunk-w9mxqrsp.js";
|
|
255
|
+
import {
|
|
256
|
+
ChildProcessSpawner,
|
|
257
|
+
make3
|
|
258
|
+
} from "./chunk-t6y0c0ds.js";
|
|
259
259
|
import {
|
|
260
260
|
Id,
|
|
261
261
|
Timestamp
|
|
262
|
-
} from "./chunk-
|
|
262
|
+
} from "./chunk-qvpkwnky.js";
|
|
263
263
|
|
|
264
264
|
// apps/cli/src/cli-error.ts
|
|
265
265
|
function cliErrorCode(error, status) {
|
|
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1326
1326
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1327
1327
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1328
1328
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1329
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1329
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-3gmqn9yp.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1330
1330
|
});
|
|
1331
1331
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1332
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1332
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-3gmqn9yp.js")), (module) => module.updateHerdrCore(options))
|
|
1333
1333
|
});
|
|
1334
1334
|
var herdrCoreMissing = (error) => {
|
|
1335
1335
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1773
1773
|
});
|
|
1774
1774
|
var syncKits = (input) => gen(function* () {
|
|
1775
1775
|
const fs = yield* FileSystem;
|
|
1776
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1776
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-bevxc9rx.js"));
|
|
1777
1777
|
const harnesses = yield* syncTargets(input.harness);
|
|
1778
1778
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1779
1779
|
for (const { name, problem } of chain.skipped)
|
|
@@ -2290,7 +2290,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
2290
2290
|
run: (command, args) => runCommand2(command, args),
|
|
2291
2291
|
attach: (command, args) => gen(function* () {
|
|
2292
2292
|
const spawner = yield* ChildProcessSpawner;
|
|
2293
|
-
const handle = yield* spawner.spawn(
|
|
2293
|
+
const handle = yield* spawner.spawn(make3(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
2294
2294
|
const exitCode = yield* handle.exitCode;
|
|
2295
2295
|
if (exitCode !== 0)
|
|
2296
2296
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
|
|
|
3268
3268
|
};
|
|
3269
3269
|
|
|
3270
3270
|
// apps/cli/src/scaffold-files.ts
|
|
3271
|
-
var cliVersion = "0.
|
|
3271
|
+
var cliVersion = "0.19.0";
|
|
3272
3272
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3273
3273
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3274
3274
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3533
3533
|
|
|
3534
3534
|
// apps/cli/src/commands.ts
|
|
3535
3535
|
var ClientId = "kitman-cli";
|
|
3536
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3536
|
+
var agentRuntime = promise(() => import("./chunk-0sbd6e4d.js"));
|
|
3537
3537
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3538
3538
|
defaultValue: () => gen(function* () {
|
|
3539
3539
|
const tui = yield* tryPromise({
|
|
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5072
5072
|
});
|
|
5073
5073
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5074
5074
|
defaultValue: () => (options) => gen(function* () {
|
|
5075
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5075
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-qp3kqaw1.js"));
|
|
5076
5076
|
return yield* makeRunnerRpcClient({
|
|
5077
5077
|
runnerId: options.runnerId,
|
|
5078
5078
|
bearer: options.bearer,
|
|
@@ -5645,7 +5645,7 @@ function mcpCommand(args) {
|
|
|
5645
5645
|
if (command.action === "run") {
|
|
5646
5646
|
if (command.args.length > 0)
|
|
5647
5647
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5648
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5648
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-hrdh72c7.js"));
|
|
5649
5649
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5650
5650
|
}
|
|
5651
5651
|
if (command.action !== "setup")
|
|
@@ -6145,7 +6145,7 @@ function programLoopCommand(command) {
|
|
|
6145
6145
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6146
6146
|
});
|
|
6147
6147
|
}
|
|
6148
|
-
var docsModule = promise(() => import("./chunk-
|
|
6148
|
+
var docsModule = promise(() => import("./chunk-36dejya4.js"));
|
|
6149
6149
|
function docsCommand(args) {
|
|
6150
6150
|
return gen(function* () {
|
|
6151
6151
|
const command = parseCommand(args);
|
|
@@ -7149,7 +7149,7 @@ function changeRequestCommand(args) {
|
|
|
7149
7149
|
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}`);
|
|
7150
7150
|
});
|
|
7151
7151
|
}
|
|
7152
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7152
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-zb8mwx3s.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7153
7153
|
var loopOutline = (command) => gen(function* () {
|
|
7154
7154
|
const path = yield* Path;
|
|
7155
7155
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7169,9 +7169,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7169
7169
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7170
7170
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7171
7171
|
});
|
|
7172
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7172
|
+
var KitWriter = map9(promise(() => import("./chunk-zb8mwx3s.js")), (build) => build.writeKit);
|
|
7173
7173
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7174
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7174
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-zb8mwx3s.js")), (build) => build.buildKit(directory))
|
|
7175
7175
|
});
|
|
7176
7176
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7177
7177
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -7950,7 +7950,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
7950
7950
|
return gen(function* () {
|
|
7951
7951
|
const fs = yield* FileSystem;
|
|
7952
7952
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
7953
|
-
const response = yield* send(
|
|
7953
|
+
const response = yield* send(make5(download.method)(download.url), failed);
|
|
7954
7954
|
if (response.status < 200 || response.status >= 300)
|
|
7955
7955
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
7956
7956
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
isString,
|
|
4
|
+
hasProperty,
|
|
5
|
+
symbol,
|
|
6
|
+
hash,
|
|
7
|
+
symbol2,
|
|
8
|
+
equals,
|
|
3
9
|
BaseProto,
|
|
10
|
+
PipeInspectableProto,
|
|
4
11
|
Prototype,
|
|
5
12
|
some,
|
|
6
13
|
Service2,
|
|
@@ -14,11 +21,8 @@ import {
|
|
|
14
21
|
andThen2,
|
|
15
22
|
map9,
|
|
16
23
|
raceFirst,
|
|
17
|
-
scoped
|
|
18
|
-
|
|
19
|
-
make16,
|
|
20
|
-
value
|
|
21
|
-
} from "./chunk-y64ssczv.js";
|
|
24
|
+
scoped
|
|
25
|
+
} from "./chunk-ew07nt2d.js";
|
|
22
26
|
import {
|
|
23
27
|
unwrap,
|
|
24
28
|
drainFork,
|
|
@@ -27,7 +31,49 @@ import {
|
|
|
27
31
|
runCollect,
|
|
28
32
|
runDrain,
|
|
29
33
|
mkString
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-w9mxqrsp.js";
|
|
35
|
+
|
|
36
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
38
|
+
var value2 = (self) => {
|
|
39
|
+
if (redactedRegistry.has(self)) {
|
|
40
|
+
return redactedRegistry.get(self);
|
|
41
|
+
} else {
|
|
42
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
47
|
+
var TypeId = "~effect/Redacted";
|
|
48
|
+
var isRedacted = (u) => hasProperty(u, TypeId);
|
|
49
|
+
var make = (value, options) => {
|
|
50
|
+
const self = Object.create(Proto);
|
|
51
|
+
if (options?.label) {
|
|
52
|
+
self.label = options.label;
|
|
53
|
+
}
|
|
54
|
+
redactedRegistry.set(self, value);
|
|
55
|
+
return self;
|
|
56
|
+
};
|
|
57
|
+
var Proto = {
|
|
58
|
+
[TypeId]: {
|
|
59
|
+
_A: (_) => _
|
|
60
|
+
},
|
|
61
|
+
label: undefined,
|
|
62
|
+
...PipeInspectableProto,
|
|
63
|
+
toJSON() {
|
|
64
|
+
return this.toString();
|
|
65
|
+
},
|
|
66
|
+
toString() {
|
|
67
|
+
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
68
|
+
},
|
|
69
|
+
[symbol]() {
|
|
70
|
+
return hash(redactedRegistry.get(this));
|
|
71
|
+
},
|
|
72
|
+
[symbol2](that) {
|
|
73
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var value = value2;
|
|
31
77
|
|
|
32
78
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
33
79
|
function nominal() {
|
|
@@ -55,7 +101,7 @@ var HandleProto = {
|
|
|
55
101
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
56
102
|
...params
|
|
57
103
|
}, HandleProto);
|
|
58
|
-
var
|
|
104
|
+
var make2 = (spawn) => {
|
|
59
105
|
const streamString = (command, options) => spawn(command).pipe(map9((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
60
106
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
61
107
|
return ChildProcessSpawner.of({
|
|
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
|
|
|
176
222
|
if (word.length === 0)
|
|
177
223
|
return;
|
|
178
224
|
const value = word.map(unwrap2).join("");
|
|
179
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
225
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
|
|
180
226
|
word = [];
|
|
181
227
|
plain = true;
|
|
182
228
|
braceDepth = 0;
|
|
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
|
|
|
266
312
|
};
|
|
267
313
|
|
|
268
314
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
269
|
-
var
|
|
270
|
-
var
|
|
315
|
+
var TypeId2 = "~effect/process/ChildProcess";
|
|
316
|
+
var Proto2 = {
|
|
271
317
|
.../* @__PURE__ */ Prototype({
|
|
272
318
|
label: "Command",
|
|
273
319
|
evaluate(fiber) {
|
|
274
320
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
275
321
|
}
|
|
276
322
|
}),
|
|
277
|
-
[
|
|
323
|
+
[TypeId2]: TypeId2
|
|
278
324
|
};
|
|
279
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
325
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
|
|
280
326
|
_tag: "StandardCommand",
|
|
281
327
|
command,
|
|
282
328
|
args,
|
|
283
329
|
options
|
|
284
330
|
});
|
|
285
|
-
var
|
|
331
|
+
var make3 = function make(...args) {
|
|
286
332
|
if (isTemplateString(args[0])) {
|
|
287
333
|
const [templates, ...expressions] = args;
|
|
288
334
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
|
|
|
340
386
|
}
|
|
341
387
|
return script;
|
|
342
388
|
};
|
|
343
|
-
export { ExitCode, ProcessId, makeHandle,
|
|
389
|
+
export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
|