@kitman-sh/cli 0.12.12 → 0.12.13
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-gxbcvd4q.js → chunk-1msvjdrq.js} +4 -4
- package/dist/{chunk-0h49y8gf.js → chunk-20qmtmt2.js} +17 -17
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-7afnkx5b.js → chunk-4hdk4bje.js} +7 -7
- package/dist/{chunk-mtkstrh3.js → chunk-5f8whb7j.js} +14 -60
- package/dist/{chunk-5zth85pj.js → chunk-73fqehr2.js} +2 -2
- package/dist/{chunk-gwnyxm1r.js → chunk-853g269m.js} +22 -22
- package/dist/{chunk-ajwxd61t.js → chunk-axh2mt1y.js} +1 -1
- package/dist/{chunk-ywzxwgrz.js → chunk-cxqaccxr.js} +6 -6
- package/dist/{chunk-fr79hgq2.js → chunk-dmbcgwea.js} +5 -5
- package/dist/{chunk-nb1x1swa.js → chunk-fsmh52xq.js} +11 -11
- package/dist/{chunk-y1krmnbv.js → chunk-ggmwpwhf.js} +2 -2
- package/dist/{chunk-4gy4ty6k.js → chunk-hb71prd2.js} +4 -4
- package/dist/{chunk-gy9rf14f.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-k6jnrs2f.js → chunk-mr95mxxv.js} +21 -21
- package/dist/{chunk-jn7w2ntt.js → chunk-n1mzvqt2.js} +4 -4
- package/dist/{chunk-s9ts6nct.js → chunk-ntxzkz25.js} +23 -23
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-cbpb2rww.js → chunk-qpfb12g1.js} +7 -7
- package/dist/{chunk-vkg40ysx.js → chunk-rjxkcjb2.js} +7 -7
- package/dist/{chunk-4w0c1ykv.js → chunk-vm5s72rr.js} +109 -108
- package/dist/{chunk-azfjx5d8.js → chunk-vmhpnqss.js} +3 -3
- package/dist/{chunk-w83fadhh.js → chunk-vnfshhpk.js} +14 -7
- package/dist/{chunk-5zhh41gb.js → chunk-vp2xdw4r.js} +4 -4
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -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-ggmwpwhf.js";
|
|
8
|
+
import"./chunk-pxvd8w2v.js";
|
|
9
|
+
import"./chunk-zgraq2y3.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make15,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
decodeJsonString,
|
|
105
105
|
encodeJsonStringSync,
|
|
106
106
|
encodePrettyJsonString
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-zgraq2y3.js";
|
|
108
108
|
import {
|
|
109
109
|
tap,
|
|
110
110
|
mapError,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
withDefault,
|
|
117
117
|
option,
|
|
118
118
|
String2
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-20qmtmt2.js";
|
|
120
120
|
import {
|
|
121
121
|
currentTimeMillis,
|
|
122
122
|
SecureRandom,
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
digestSha256,
|
|
167
167
|
sha256Hasher,
|
|
168
168
|
raw,
|
|
169
|
-
|
|
169
|
+
make4,
|
|
170
170
|
get,
|
|
171
171
|
put,
|
|
172
172
|
HttpClient,
|
|
@@ -228,14 +228,14 @@ import {
|
|
|
228
228
|
harnessNames,
|
|
229
229
|
herdrRunnerCapabilities2,
|
|
230
230
|
declaredChecks
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-vm5s72rr.js";
|
|
232
232
|
import {
|
|
233
233
|
Id
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-pxvd8w2v.js";
|
|
235
235
|
import {
|
|
236
236
|
ChildProcessSpawner,
|
|
237
|
-
|
|
238
|
-
} from "./chunk-
|
|
237
|
+
make2
|
|
238
|
+
} from "./chunk-5f8whb7j.js";
|
|
239
239
|
|
|
240
240
|
// apps/cli/src/cli-error.ts
|
|
241
241
|
function cliErrorCode(error, status) {
|
|
@@ -989,10 +989,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
989
989
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
990
990
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
991
991
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
992
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
992
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-1msvjdrq.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
993
993
|
});
|
|
994
994
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
995
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
995
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-1msvjdrq.js")), (module) => module.updateHerdrCore(options))
|
|
996
996
|
});
|
|
997
997
|
var herdrCoreMissing = (error) => {
|
|
998
998
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1412,7 +1412,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1412
1412
|
});
|
|
1413
1413
|
var syncKits = (input) => gen(function* () {
|
|
1414
1414
|
const fs = yield* FileSystem;
|
|
1415
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1415
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-rjxkcjb2.js"));
|
|
1416
1416
|
const harnesses = yield* syncTargets(input.harness);
|
|
1417
1417
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1418
1418
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1929,7 +1929,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1929
1929
|
run: (command, args) => runCommand2(command, args),
|
|
1930
1930
|
attach: (command, args) => gen(function* () {
|
|
1931
1931
|
const spawner = yield* ChildProcessSpawner;
|
|
1932
|
-
const handle = yield* spawner.spawn(
|
|
1932
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1933
1933
|
const exitCode = yield* handle.exitCode;
|
|
1934
1934
|
if (exitCode !== 0)
|
|
1935
1935
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -2331,7 +2331,7 @@ var package_default = {
|
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
2333
|
// apps/cli/src/scaffold.ts
|
|
2334
|
-
var cliVersion = "0.12.
|
|
2334
|
+
var cliVersion = "0.12.13";
|
|
2335
2335
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2336
2336
|
name,
|
|
2337
2337
|
private: true,
|
|
@@ -2483,7 +2483,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2483
2483
|
|
|
2484
2484
|
// apps/cli/src/commands.ts
|
|
2485
2485
|
var ClientId = "kitman-cli";
|
|
2486
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2486
|
+
var agentRuntime = promise(() => import("./chunk-853g269m.js"));
|
|
2487
2487
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2488
2488
|
defaultValue: () => gen(function* () {
|
|
2489
2489
|
const tui = yield* tryPromise({
|
|
@@ -3507,7 +3507,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3507
3507
|
});
|
|
3508
3508
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3509
3509
|
defaultValue: () => (options) => gen(function* () {
|
|
3510
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3510
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-cxqaccxr.js"));
|
|
3511
3511
|
return yield* makeRunnerRpcClient({
|
|
3512
3512
|
runnerId: options.runnerId,
|
|
3513
3513
|
bearer: options.bearer,
|
|
@@ -3787,7 +3787,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3787
3787
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3788
3788
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
|
|
3789
3789
|
const platform = yield* context();
|
|
3790
|
-
const updated = yield*
|
|
3790
|
+
const updated = yield* make15();
|
|
3791
3791
|
const scope = yield* scope2;
|
|
3792
3792
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3793
3793
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4039,7 +4039,7 @@ function mcpCommand(args) {
|
|
|
4039
4039
|
if (command.action === "run") {
|
|
4040
4040
|
if (command.args.length > 0)
|
|
4041
4041
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4042
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4042
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-ntxzkz25.js"));
|
|
4043
4043
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4044
4044
|
}
|
|
4045
4045
|
if (command.action !== "setup")
|
|
@@ -4527,7 +4527,7 @@ function programLoopCommand(command) {
|
|
|
4527
4527
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4528
4528
|
});
|
|
4529
4529
|
}
|
|
4530
|
-
var docsModule = promise(() => import("./chunk-
|
|
4530
|
+
var docsModule = promise(() => import("./chunk-axh2mt1y.js"));
|
|
4531
4531
|
function docsCommand(args) {
|
|
4532
4532
|
return gen(function* () {
|
|
4533
4533
|
const command = parseCommand(args);
|
|
@@ -5361,9 +5361,9 @@ function changeRequestCommand(args) {
|
|
|
5361
5361
|
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}`);
|
|
5362
5362
|
});
|
|
5363
5363
|
}
|
|
5364
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5364
|
+
var KitWriter = map8(promise(() => import("./chunk-fsmh52xq.js")), (build) => build.writeKit);
|
|
5365
5365
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5366
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5366
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-fsmh52xq.js")), (build) => build.buildKit(directory))
|
|
5367
5367
|
});
|
|
5368
5368
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5369
5369
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -6140,7 +6140,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
6140
6140
|
return gen(function* () {
|
|
6141
6141
|
const fs = yield* FileSystem;
|
|
6142
6142
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
6143
|
-
const response = yield* send(
|
|
6143
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
6144
6144
|
if (response.status < 200 || response.status >= 300)
|
|
6145
6145
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
6146
6146
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zgraq2y3.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-20qmtmt2.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-vm5s72rr.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-vmhpnqss.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
decodeJsonStringOption,
|
|
119
119
|
encodeJsonStringSync,
|
|
120
120
|
encodePrettyJsonString
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-zgraq2y3.js";
|
|
122
122
|
import {
|
|
123
123
|
currentTimeMillis,
|
|
124
124
|
SecureRandom,
|
|
@@ -158,8 +158,8 @@ import {
|
|
|
158
158
|
sessionForApi,
|
|
159
159
|
readAuthStore,
|
|
160
160
|
agentCredentialForApi,
|
|
161
|
+
make5,
|
|
161
162
|
make6,
|
|
162
|
-
make7,
|
|
163
163
|
Service,
|
|
164
164
|
shouldRefresh,
|
|
165
165
|
refreshSession,
|
|
@@ -170,13 +170,13 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-vm5s72rr.js";
|
|
174
174
|
import {
|
|
175
175
|
guard,
|
|
176
176
|
Id,
|
|
177
177
|
Timestamp,
|
|
178
178
|
ActorType
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-pxvd8w2v.js";
|
|
180
180
|
import {
|
|
181
181
|
join,
|
|
182
182
|
interrupt,
|
|
@@ -190,21 +190,21 @@ import {
|
|
|
190
190
|
withDefault,
|
|
191
191
|
option,
|
|
192
192
|
String2
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-20qmtmt2.js";
|
|
194
194
|
import {
|
|
195
195
|
searchDocs2,
|
|
196
196
|
readDoc2
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-vnfshhpk.js";
|
|
198
198
|
import {
|
|
199
199
|
nextInt
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-24h0y27w.js";
|
|
201
201
|
import {
|
|
202
202
|
layerJson,
|
|
203
|
-
|
|
203
|
+
make3,
|
|
204
204
|
withHeaders,
|
|
205
205
|
layerProtocolSocket,
|
|
206
206
|
ConnectionHooks
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-dmbcgwea.js";
|
|
208
208
|
|
|
209
209
|
// apps/cli/src/mcp.ts
|
|
210
210
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -1956,56 +1956,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1956
1956
|
LivePresenceSubscriptionUpdate
|
|
1957
1957
|
]);
|
|
1958
1958
|
|
|
1959
|
-
class LiveRpcs extends
|
|
1959
|
+
class LiveRpcs extends make6(make5("Session", {
|
|
1960
1960
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1961
1961
|
error: LiveRpcError
|
|
1962
|
-
}),
|
|
1962
|
+
}), make5("Subscribe", {
|
|
1963
1963
|
payload: LiveSubscribeInput,
|
|
1964
1964
|
success: LiveSubscriptionMessage,
|
|
1965
1965
|
error: LiveRpcError,
|
|
1966
1966
|
stream: true
|
|
1967
|
-
}),
|
|
1967
|
+
}), make5("Replay", {
|
|
1968
1968
|
payload: LiveReplayInput,
|
|
1969
1969
|
success: ArraySchema(LiveEvent),
|
|
1970
1970
|
error: LiveRpcError
|
|
1971
|
-
}),
|
|
1971
|
+
}), make5("Ack", {
|
|
1972
1972
|
payload: LiveAckInput,
|
|
1973
1973
|
success: LiveAckResult,
|
|
1974
1974
|
error: LiveRpcError
|
|
1975
|
-
}),
|
|
1975
|
+
}), make5("SubscribeWeb", {
|
|
1976
1976
|
payload: LiveWebSubscribeInput,
|
|
1977
1977
|
success: LiveWebSubscriptionMessage,
|
|
1978
1978
|
error: LiveRpcError,
|
|
1979
1979
|
stream: true
|
|
1980
|
-
}),
|
|
1980
|
+
}), make5("SubscriptionStatus", {
|
|
1981
1981
|
payload: { subscriptionId: String4 },
|
|
1982
1982
|
success: LiveSubscriptionStatus,
|
|
1983
1983
|
error: LiveRpcError
|
|
1984
|
-
}),
|
|
1984
|
+
}), make5("ReplayWeb", {
|
|
1985
1985
|
payload: LiveWebReplayInput,
|
|
1986
1986
|
success: LiveWebReplayResult,
|
|
1987
1987
|
error: LiveRpcError
|
|
1988
|
-
}),
|
|
1988
|
+
}), make5("AckWeb", {
|
|
1989
1989
|
payload: LiveWebAckInput,
|
|
1990
1990
|
success: LiveWebAckResult,
|
|
1991
1991
|
error: LiveRpcError
|
|
1992
|
-
}),
|
|
1992
|
+
}), make5("PublishPresence", {
|
|
1993
1993
|
payload: LivePresencePublishInput,
|
|
1994
1994
|
success: LivePresenceEntry,
|
|
1995
1995
|
error: LiveRpcError
|
|
1996
|
-
}),
|
|
1996
|
+
}), make5("SubscribePresence", {
|
|
1997
1997
|
payload: LivePresenceSubscribeInput,
|
|
1998
1998
|
success: LivePresenceSubscriptionMessage,
|
|
1999
1999
|
error: LiveRpcError,
|
|
2000
2000
|
stream: true
|
|
2001
|
-
}),
|
|
2001
|
+
}), make5("ClearPresence", {
|
|
2002
2002
|
payload: { scope: optional(LiveScope) },
|
|
2003
2003
|
error: LiveRpcError
|
|
2004
|
-
}),
|
|
2004
|
+
}), make5("RecordSessionUpdate", {
|
|
2005
2005
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
2006
2006
|
success: SessionUpdate,
|
|
2007
2007
|
error: LiveRpcError
|
|
2008
|
-
}),
|
|
2008
|
+
}), make5("EndSession", {
|
|
2009
2009
|
payload: { sessionId: String4, input: SessionEnd },
|
|
2010
2010
|
success: Session,
|
|
2011
2011
|
error: LiveRpcError
|
|
@@ -2057,7 +2057,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2057
2057
|
})
|
|
2058
2058
|
});
|
|
2059
2059
|
const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2060
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2060
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2061
2061
|
let abandon = () => {};
|
|
2062
2062
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2063
2063
|
abandon = reject;
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-zgraq2y3.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"];
|
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
isJsonObject,
|
|
26
26
|
isString2,
|
|
27
27
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zgraq2y3.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
30
|
+
make10,
|
|
31
31
|
runForEach,
|
|
32
32
|
compiled2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-20qmtmt2.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make2
|
|
37
|
+
} from "./chunk-5f8whb7j.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -167,8 +167,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
167
167
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
168
168
|
const spawner = yield* ChildProcessSpawner;
|
|
169
169
|
const [command, ...args] = opencodeReaderCommand();
|
|
170
|
-
const handle = yield* spawner.spawn(
|
|
171
|
-
stdin:
|
|
170
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
171
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
172
172
|
stderr: "ignore",
|
|
173
173
|
extendEnv: false,
|
|
174
174
|
env: {},
|
|
@@ -13,27 +13,27 @@ import {
|
|
|
13
13
|
isJsonObject,
|
|
14
14
|
decodeJsonString,
|
|
15
15
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import"./chunk-
|
|
16
|
+
} from "./chunk-zgraq2y3.js";
|
|
17
|
+
import"./chunk-pxvd8w2v.js";
|
|
18
18
|
import {
|
|
19
19
|
FileSystem,
|
|
20
20
|
Path
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-20qmtmt2.js";
|
|
22
22
|
import {
|
|
23
23
|
tomlTableHeader2,
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-n1mzvqt2.js";
|
|
28
28
|
import {
|
|
29
29
|
instructionsStart,
|
|
30
30
|
instructionsEnd,
|
|
31
31
|
renderMcpServer,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-vm5s72rr.js";
|
|
35
|
+
import"./chunk-vmhpnqss.js";
|
|
36
|
+
import"./chunk-5f8whb7j.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|