@kitman-sh/cli 0.12.0-rc.3 → 0.12.0-rc.4
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-0qz10ek8.js → chunk-6b0k02x4.js} +1 -1
- package/dist/{chunk-jef2vdr6.js → chunk-74txrt4s.js} +4 -4
- package/dist/{chunk-vtfwjhzh.js → chunk-79gx7ek9.js} +70 -28
- package/dist/{chunk-794hjysw.js → chunk-7kjsvwzv.js} +5 -5
- package/dist/{chunk-2gg3ccte.js → chunk-aafxvmj1.js} +7 -7
- package/dist/{chunk-0346hwh6.js → chunk-b50dvx41.js} +5 -5
- package/dist/{chunk-nzjb36ad.js → chunk-bq55md8p.js} +1 -1
- package/dist/{chunk-c6rbt85q.js → chunk-c9007k48.js} +1 -1
- package/dist/{chunk-8ez1s9cr.js → chunk-ckkpqcfv.js} +4 -4
- package/dist/{chunk-y8sscyvt.js → chunk-e7q2frvs.js} +7 -7
- package/dist/{chunk-e7e120qw.js → chunk-ezf2myj0.js} +3 -3
- package/dist/{chunk-xwya1er0.js → chunk-jntxtx9j.js} +14 -60
- package/dist/{chunk-56knbdt6.js → chunk-k81ay8y5.js} +8 -8
- package/dist/{chunk-y73z1kkz.js → chunk-kybp1mkk.js} +8 -8
- package/dist/{chunk-x55v5kyg.js → chunk-nzsrse8d.js} +23 -23
- package/dist/{chunk-z450wa10.js → chunk-pw10mq9e.js} +4 -4
- package/dist/{chunk-mc87tyzm.js → chunk-qjd6w9sw.js} +1 -1
- package/dist/{chunk-dymepetx.js → chunk-r1z41qx6.js} +113 -109
- package/dist/{chunk-h6hd61dn.js → chunk-rjasmnav.js} +22 -22
- package/dist/{chunk-ks3p7yha.js → chunk-t2mr6z38.js} +24 -24
- package/dist/{chunk-trb9325k.js → chunk-w0aj9mkz.js} +5 -5
- package/dist/{chunk-6akwhwyp.js → chunk-w6cm939j.js} +19 -19
- package/dist/{chunk-5j848ckb.js → chunk-xavcp9se.js} +2 -2
- package/dist/{chunk-ewhzaqp3.js → chunk-xy5f2nv9.js} +2 -2
- package/dist/{chunk-yatva7be.js → chunk-ydydx55z.js} +1 -1
- package/dist/{chunk-gspfm7qh.js → chunk-zmcghp8w.js} +17 -17
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
decodeJsonString,
|
|
97
97
|
encodeJsonStringSync,
|
|
98
98
|
encodePrettyJsonString
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-79gx7ek9.js";
|
|
100
100
|
import {
|
|
101
101
|
tap,
|
|
102
102
|
mapError,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
withDefault,
|
|
109
109
|
option,
|
|
110
110
|
String2
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-zmcghp8w.js";
|
|
112
112
|
import {
|
|
113
113
|
currentTimeMillis,
|
|
114
114
|
SecureRandom,
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
digestSha256,
|
|
157
157
|
sha256Hasher,
|
|
158
158
|
raw,
|
|
159
|
-
|
|
159
|
+
make4,
|
|
160
160
|
get,
|
|
161
161
|
put,
|
|
162
162
|
HttpClient,
|
|
@@ -218,10 +218,10 @@ import {
|
|
|
218
218
|
harnessNames,
|
|
219
219
|
herdrRunnerCapabilities2,
|
|
220
220
|
declaredChecks
|
|
221
|
-
} from "./chunk-
|
|
221
|
+
} from "./chunk-r1z41qx6.js";
|
|
222
222
|
import {
|
|
223
223
|
Id
|
|
224
|
-
} from "./chunk-
|
|
224
|
+
} from "./chunk-6b0k02x4.js";
|
|
225
225
|
import {
|
|
226
226
|
toJsonValue,
|
|
227
227
|
isOneOf,
|
|
@@ -231,11 +231,11 @@ import {
|
|
|
231
231
|
isObject,
|
|
232
232
|
isJsonObject,
|
|
233
233
|
isString
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-c9007k48.js";
|
|
235
235
|
import {
|
|
236
236
|
ChildProcessSpawner,
|
|
237
|
-
|
|
238
|
-
} from "./chunk-
|
|
237
|
+
make2
|
|
238
|
+
} from "./chunk-jntxtx9j.js";
|
|
239
239
|
|
|
240
240
|
// apps/cli/src/cli-error.ts
|
|
241
241
|
function cliErrorCode(error, status) {
|
|
@@ -987,10 +987,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
987
987
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
988
988
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
989
989
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
990
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
990
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-74txrt4s.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
991
991
|
});
|
|
992
992
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
993
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
993
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-74txrt4s.js")), (module) => module.updateHerdrCore(options))
|
|
994
994
|
});
|
|
995
995
|
var herdrCoreMissing = (error) => {
|
|
996
996
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1410,7 +1410,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1410
1410
|
});
|
|
1411
1411
|
var syncKits = (input) => gen(function* () {
|
|
1412
1412
|
const fs = yield* FileSystem;
|
|
1413
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1413
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-kybp1mkk.js"));
|
|
1414
1414
|
const harnesses = yield* syncTargets(input.harness);
|
|
1415
1415
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1416
1416
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1926,7 +1926,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1926
1926
|
run: (command, args) => runCommand2(command, args),
|
|
1927
1927
|
attach: (command, args) => gen(function* () {
|
|
1928
1928
|
const spawner = yield* ChildProcessSpawner;
|
|
1929
|
-
const handle = yield* spawner.spawn(
|
|
1929
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1930
1930
|
const exitCode = yield* handle.exitCode;
|
|
1931
1931
|
if (exitCode !== 0)
|
|
1932
1932
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -2328,7 +2328,7 @@ var package_default = {
|
|
|
2328
2328
|
};
|
|
2329
2329
|
|
|
2330
2330
|
// apps/cli/src/scaffold.ts
|
|
2331
|
-
var cliVersion = "0.12.0-rc.
|
|
2331
|
+
var cliVersion = "0.12.0-rc.4";
|
|
2332
2332
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2333
2333
|
name,
|
|
2334
2334
|
private: true,
|
|
@@ -2480,7 +2480,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2480
2480
|
|
|
2481
2481
|
// apps/cli/src/commands.ts
|
|
2482
2482
|
var ClientId = "kitman-cli";
|
|
2483
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2483
|
+
var agentRuntime = promise(() => import("./chunk-nzsrse8d.js"));
|
|
2484
2484
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2485
2485
|
defaultValue: () => gen(function* () {
|
|
2486
2486
|
const tui = yield* tryPromise({
|
|
@@ -3482,7 +3482,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3482
3482
|
});
|
|
3483
3483
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3484
3484
|
defaultValue: () => (options) => gen(function* () {
|
|
3485
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3485
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-aafxvmj1.js"));
|
|
3486
3486
|
return yield* makeRunnerRpcClient({
|
|
3487
3487
|
runnerId: options.runnerId,
|
|
3488
3488
|
bearer: options.bearer,
|
|
@@ -3762,7 +3762,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3762
3762
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3763
3763
|
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);
|
|
3764
3764
|
const platform = yield* context();
|
|
3765
|
-
const updated = yield*
|
|
3765
|
+
const updated = yield* make15();
|
|
3766
3766
|
const scope = yield* scope2;
|
|
3767
3767
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3768
3768
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4014,7 +4014,7 @@ function mcpCommand(args) {
|
|
|
4014
4014
|
if (command.action === "run") {
|
|
4015
4015
|
if (command.args.length > 0)
|
|
4016
4016
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4017
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4017
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-t2mr6z38.js"));
|
|
4018
4018
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4019
4019
|
}
|
|
4020
4020
|
if (command.action !== "setup")
|
|
@@ -4502,7 +4502,7 @@ function programLoopCommand(command) {
|
|
|
4502
4502
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4503
4503
|
});
|
|
4504
4504
|
}
|
|
4505
|
-
var docsModule = promise(() => import("./chunk-
|
|
4505
|
+
var docsModule = promise(() => import("./chunk-ydydx55z.js"));
|
|
4506
4506
|
function docsCommand(args) {
|
|
4507
4507
|
return gen(function* () {
|
|
4508
4508
|
const command = parseCommand(args);
|
|
@@ -5322,9 +5322,9 @@ function changeRequestCommand(args) {
|
|
|
5322
5322
|
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}`);
|
|
5323
5323
|
});
|
|
5324
5324
|
}
|
|
5325
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5325
|
+
var KitWriter = map8(promise(() => import("./chunk-w6cm939j.js")), (build) => build.writeKit);
|
|
5326
5326
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5327
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5327
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-w6cm939j.js")), (build) => build.buildKit(directory))
|
|
5328
5328
|
});
|
|
5329
5329
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5330
5330
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -6100,7 +6100,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
6100
6100
|
return gen(function* () {
|
|
6101
6101
|
const fs = yield* FileSystem;
|
|
6102
6102
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
6103
|
-
const response = yield* send(
|
|
6103
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
6104
6104
|
if (response.status < 200 || response.status >= 300)
|
|
6105
6105
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
6106
6106
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
decodeJsonStringOption,
|
|
108
108
|
encodeJsonStringSync,
|
|
109
109
|
encodePrettyJsonString
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-79gx7ek9.js";
|
|
111
111
|
import {
|
|
112
112
|
currentTimeMillis,
|
|
113
113
|
SecureRandom,
|
|
@@ -147,8 +147,8 @@ import {
|
|
|
147
147
|
sessionForApi,
|
|
148
148
|
readAuthStore,
|
|
149
149
|
agentCredentialForApi,
|
|
150
|
+
make5,
|
|
150
151
|
make6,
|
|
151
|
-
make7,
|
|
152
152
|
Service,
|
|
153
153
|
shouldRefresh,
|
|
154
154
|
refreshSession,
|
|
@@ -159,13 +159,13 @@ import {
|
|
|
159
159
|
runMcpEffect,
|
|
160
160
|
createAgentAuthSignedFetch,
|
|
161
161
|
setupMcpAgentCredential
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-r1z41qx6.js";
|
|
163
163
|
import {
|
|
164
164
|
guard,
|
|
165
165
|
Id,
|
|
166
166
|
Timestamp,
|
|
167
167
|
ActorType
|
|
168
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-6b0k02x4.js";
|
|
169
169
|
import {
|
|
170
170
|
toJsonValue,
|
|
171
171
|
isOneOf,
|
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
isJsonObject,
|
|
179
179
|
isString,
|
|
180
180
|
kindOf
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-c9007k48.js";
|
|
182
182
|
import {
|
|
183
183
|
join,
|
|
184
184
|
interrupt,
|
|
@@ -192,21 +192,21 @@ import {
|
|
|
192
192
|
withDefault,
|
|
193
193
|
option,
|
|
194
194
|
String2
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-zmcghp8w.js";
|
|
196
196
|
import {
|
|
197
197
|
searchDocs2,
|
|
198
198
|
readDoc2
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-qjd6w9sw.js";
|
|
200
200
|
import {
|
|
201
201
|
nextInt
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-bq55md8p.js";
|
|
203
203
|
import {
|
|
204
204
|
layerJson,
|
|
205
|
-
|
|
205
|
+
make3,
|
|
206
206
|
withHeaders,
|
|
207
207
|
layerProtocolSocket,
|
|
208
208
|
ConnectionHooks
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-7kjsvwzv.js";
|
|
210
210
|
|
|
211
211
|
// apps/cli/src/mcp.ts
|
|
212
212
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -1958,56 +1958,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1958
1958
|
LivePresenceSubscriptionUpdate
|
|
1959
1959
|
]);
|
|
1960
1960
|
|
|
1961
|
-
class LiveRpcs extends
|
|
1961
|
+
class LiveRpcs extends make6(make5("Session", {
|
|
1962
1962
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1963
1963
|
error: LiveRpcError
|
|
1964
|
-
}),
|
|
1964
|
+
}), make5("Subscribe", {
|
|
1965
1965
|
payload: LiveSubscribeInput,
|
|
1966
1966
|
success: LiveSubscriptionMessage,
|
|
1967
1967
|
error: LiveRpcError,
|
|
1968
1968
|
stream: true
|
|
1969
|
-
}),
|
|
1969
|
+
}), make5("Replay", {
|
|
1970
1970
|
payload: LiveReplayInput,
|
|
1971
1971
|
success: ArraySchema(LiveEvent),
|
|
1972
1972
|
error: LiveRpcError
|
|
1973
|
-
}),
|
|
1973
|
+
}), make5("Ack", {
|
|
1974
1974
|
payload: LiveAckInput,
|
|
1975
1975
|
success: LiveAckResult,
|
|
1976
1976
|
error: LiveRpcError
|
|
1977
|
-
}),
|
|
1977
|
+
}), make5("SubscribeWeb", {
|
|
1978
1978
|
payload: LiveWebSubscribeInput,
|
|
1979
1979
|
success: LiveWebSubscriptionMessage,
|
|
1980
1980
|
error: LiveRpcError,
|
|
1981
1981
|
stream: true
|
|
1982
|
-
}),
|
|
1982
|
+
}), make5("SubscriptionStatus", {
|
|
1983
1983
|
payload: { subscriptionId: String4 },
|
|
1984
1984
|
success: LiveSubscriptionStatus,
|
|
1985
1985
|
error: LiveRpcError
|
|
1986
|
-
}),
|
|
1986
|
+
}), make5("ReplayWeb", {
|
|
1987
1987
|
payload: LiveWebReplayInput,
|
|
1988
1988
|
success: LiveWebReplayResult,
|
|
1989
1989
|
error: LiveRpcError
|
|
1990
|
-
}),
|
|
1990
|
+
}), make5("AckWeb", {
|
|
1991
1991
|
payload: LiveWebAckInput,
|
|
1992
1992
|
success: LiveWebAckResult,
|
|
1993
1993
|
error: LiveRpcError
|
|
1994
|
-
}),
|
|
1994
|
+
}), make5("PublishPresence", {
|
|
1995
1995
|
payload: LivePresencePublishInput,
|
|
1996
1996
|
success: LivePresenceEntry,
|
|
1997
1997
|
error: LiveRpcError
|
|
1998
|
-
}),
|
|
1998
|
+
}), make5("SubscribePresence", {
|
|
1999
1999
|
payload: LivePresenceSubscribeInput,
|
|
2000
2000
|
success: LivePresenceSubscriptionMessage,
|
|
2001
2001
|
error: LiveRpcError,
|
|
2002
2002
|
stream: true
|
|
2003
|
-
}),
|
|
2003
|
+
}), make5("ClearPresence", {
|
|
2004
2004
|
payload: { scope: optional(LiveScope) },
|
|
2005
2005
|
error: LiveRpcError
|
|
2006
|
-
}),
|
|
2006
|
+
}), make5("RecordSessionUpdate", {
|
|
2007
2007
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
2008
2008
|
success: SessionUpdate,
|
|
2009
2009
|
error: LiveRpcError
|
|
2010
|
-
}),
|
|
2010
|
+
}), make5("EndSession", {
|
|
2011
2011
|
payload: { sessionId: String4, input: SessionEnd },
|
|
2012
2012
|
success: Session,
|
|
2013
2013
|
error: LiveRpcError
|
|
@@ -2059,7 +2059,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2059
2059
|
})
|
|
2060
2060
|
});
|
|
2061
2061
|
const layer = (isString(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2062
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2062
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2063
2063
|
let abandon = () => {};
|
|
2064
2064
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2065
2065
|
abandon = reject;
|
|
@@ -23,25 +23,25 @@ import {
|
|
|
23
23
|
fnUntraced,
|
|
24
24
|
encodePrettyJsonString,
|
|
25
25
|
decodeJsonStringSync
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-79gx7ek9.js";
|
|
27
27
|
import {
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-c9007k48.js";
|
|
31
31
|
import {
|
|
32
32
|
FileSystem,
|
|
33
33
|
Path,
|
|
34
34
|
optionalEnv,
|
|
35
35
|
tempDirectoryScoped
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-zmcghp8w.js";
|
|
37
37
|
import {
|
|
38
38
|
AgentHarnessIds,
|
|
39
39
|
sha2562,
|
|
40
40
|
runCommand2
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-r1z41qx6.js";
|
|
42
42
|
import {
|
|
43
43
|
NpmRegistry
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-ezf2myj0.js";
|
|
45
45
|
|
|
46
46
|
// packages/agent-runtime/src/config-convergence.ts
|
|
47
47
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -32,17 +32,9 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
38
|
-
import {
|
|
39
|
-
decodeText,
|
|
40
|
-
mkString,
|
|
41
|
-
FileSystem,
|
|
42
|
-
Path,
|
|
43
|
-
withDefault,
|
|
44
|
-
String2
|
|
45
|
-
} from "./chunk-gspfm7qh.js";
|
|
35
|
+
} from "./chunk-79gx7ek9.js";
|
|
36
|
+
import"./chunk-6b0k02x4.js";
|
|
37
|
+
import"./chunk-c9007k48.js";
|
|
46
38
|
import {
|
|
47
39
|
SecureRandom,
|
|
48
40
|
layerWebCrypto,
|
|
@@ -54,23 +46,31 @@ import {
|
|
|
54
46
|
layer4,
|
|
55
47
|
kitmanMcpServer,
|
|
56
48
|
RunnerRpcProtocolVersion
|
|
57
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-r1z41qx6.js";
|
|
50
|
+
import {
|
|
51
|
+
decodeText,
|
|
52
|
+
mkString,
|
|
53
|
+
FileSystem,
|
|
54
|
+
Path,
|
|
55
|
+
withDefault,
|
|
56
|
+
String2
|
|
57
|
+
} from "./chunk-zmcghp8w.js";
|
|
58
58
|
import {
|
|
59
59
|
Packument,
|
|
60
60
|
tarballMatches
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import"./chunk-
|
|
61
|
+
} from "./chunk-ezf2myj0.js";
|
|
62
|
+
import"./chunk-e7q2frvs.js";
|
|
63
63
|
import {
|
|
64
64
|
AgentDeclaration,
|
|
65
65
|
KitDeclarations,
|
|
66
66
|
describeFlag,
|
|
67
67
|
Described
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-ckkpqcfv.js";
|
|
69
69
|
import {
|
|
70
70
|
ChildProcessSpawner,
|
|
71
|
-
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import"./chunk-
|
|
71
|
+
make2
|
|
72
|
+
} from "./chunk-jntxtx9j.js";
|
|
73
|
+
import"./chunk-7kjsvwzv.js";
|
|
74
74
|
|
|
75
75
|
// packages/sdk/src/build/index.ts
|
|
76
76
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -109,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
109
109
|
}));
|
|
110
110
|
var run = (command, args, cwd) => gen(function* () {
|
|
111
111
|
const spawner = yield* ChildProcessSpawner;
|
|
112
|
-
const handle = yield* spawner.spawn(
|
|
112
|
+
const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
|
|
113
113
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
114
114
|
mkString(decodeText(handle.stdout)),
|
|
115
115
|
mkString(decodeText(handle.stderr)),
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-79gx7ek9.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6b0k02x4.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-zmcghp8w.js";
|
|
18
|
+
import"./chunk-79gx7ek9.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -201,7 +201,7 @@ import {
|
|
|
201
201
|
String4,
|
|
202
202
|
toCodecStringTree,
|
|
203
203
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-79gx7ek9.js";
|
|
205
205
|
|
|
206
206
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
207
|
var headUnsafe = (self) => {
|
|
@@ -1129,7 +1129,7 @@ var MutableRefProto = {
|
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
|
-
var
|
|
1132
|
+
var make7 = (value) => {
|
|
1133
1133
|
const ref = Object.create(MutableRefProto);
|
|
1134
1134
|
ref.current = value;
|
|
1135
1135
|
return ref;
|
|
@@ -1290,7 +1290,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1290
1290
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1291
1291
|
var TypeId3 = "~effect/PubSub";
|
|
1292
1292
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1293
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1293
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
|
|
1294
1294
|
var unbounded = (options) => make5({
|
|
1295
1295
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1296
1296
|
strategy: () => new DroppingStrategy
|
|
@@ -1385,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1385
1385
|
subscribers.delete(subscription);
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1388
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
|
|
1389
1389
|
class UnboundedPubSub {
|
|
1390
1390
|
publisherHead = {
|
|
1391
1391
|
value: AbsentValue,
|
|
@@ -1802,7 +1802,7 @@ var QueueProto = {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
}
|
|
1804
1804
|
};
|
|
1805
|
-
var
|
|
1805
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1806
1806
|
const self = Object.create(QueueProto);
|
|
1807
1807
|
self.dispatcher = fiber.currentDispatcher;
|
|
1808
1808
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1817,14 +1817,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
return succeed2(self);
|
|
1819
1819
|
});
|
|
1820
|
-
var bounded = (capacity) =>
|
|
1820
|
+
var bounded = (capacity) => make8({
|
|
1821
1821
|
capacity
|
|
1822
1822
|
});
|
|
1823
|
-
var sliding = (capacity) =>
|
|
1823
|
+
var sliding = (capacity) => make8({
|
|
1824
1824
|
capacity,
|
|
1825
1825
|
strategy: "sliding"
|
|
1826
1826
|
});
|
|
1827
|
-
var unbounded2 = () =>
|
|
1827
|
+
var unbounded2 = () => make8();
|
|
1828
1828
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1829
1829
|
var offerUnsafe = (self, message) => {
|
|
1830
1830
|
if (self.state._tag !== "Open") {
|
|
@@ -2250,7 +2250,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2250
2250
|
return onError(pull, onCause);
|
|
2251
2251
|
}));
|
|
2252
2252
|
var toTransform = (channel) => channel.transform;
|
|
2253
|
-
var asyncQueue = (scope, f, options) =>
|
|
2253
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2254
2254
|
capacity: options?.bufferSize,
|
|
2255
2255
|
strategy: options?.strategy
|
|
2256
2256
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2291,7 +2291,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2291
2291
|
}));
|
|
2292
2292
|
var readableStreamToPullUnsafe = (options) => {
|
|
2293
2293
|
const reader = options.readable.getReader();
|
|
2294
|
-
const exit = options.exit ??
|
|
2294
|
+
const exit = options.exit ?? make7(undefined);
|
|
2295
2295
|
const pull = suspend3(() => {
|
|
2296
2296
|
if (exit.current)
|
|
2297
2297
|
return exit.current;
|
|
@@ -2905,7 +2905,7 @@ var release = (self, state) => {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
|
|
2907
2907
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2908
|
-
var
|
|
2908
|
+
var make9 = make6;
|
|
2909
2909
|
var get3 = get2;
|
|
2910
2910
|
|
|
2911
2911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2917,7 +2917,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2917
2917
|
var toChannel2 = (stream) => stream.channel;
|
|
2918
2918
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2919
2919
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2920
|
-
var
|
|
2920
|
+
var make10 = (...values) => fromArray2(values);
|
|
2921
2921
|
var suspend = (stream) => {
|
|
2922
2922
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2923
2923
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3082,7 +3082,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3082
3082
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3083
3083
|
var TypeId10 = "~effect/FileSystem";
|
|
3084
3084
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3085
|
-
var
|
|
3085
|
+
var make11 = (impl) => FileSystem.of({
|
|
3086
3086
|
...impl,
|
|
3087
3087
|
[TypeId10]: TypeId10,
|
|
3088
3088
|
glob: make2(impl),
|
|
@@ -3142,7 +3142,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3142
3142
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3143
3143
|
var TypeId11 = "~effect/Path";
|
|
3144
3144
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3145
|
-
var
|
|
3145
|
+
var make12 = (impl) => Path.of({
|
|
3146
3146
|
...impl,
|
|
3147
3147
|
[TypeId11]: TypeId11,
|
|
3148
3148
|
resolveWithin(root, input) {
|
|
@@ -3217,7 +3217,7 @@ function makeProvider(load, mapInput) {
|
|
|
3217
3217
|
function makeSource(get, transform) {
|
|
3218
3218
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function make13(get) {
|
|
3221
3221
|
return makeSource(get, identityPath);
|
|
3222
3222
|
}
|
|
3223
3223
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3226,7 +3226,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3226
3226
|
function fromEnvRecord(env, options) {
|
|
3227
3227
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3228
3228
|
const trie = buildEnvTrie(env);
|
|
3229
|
-
return
|
|
3229
|
+
return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3230
3230
|
}
|
|
3231
3231
|
function fromEnv(options) {
|
|
3232
3232
|
const env = options?.env ?? {
|
|
@@ -3557,4 +3557,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3557
3557
|
...argv
|
|
3558
3558
|
];
|
|
3559
3559
|
|
|
3560
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3560
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
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-xy5f2nv9.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-pw10mq9e.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-b50dvx41.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-rjasmnav.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|