@kitman-sh/cli 0.36.0 → 0.38.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-9nbqzdqp.js → chunk-6x08g7m6.js} +2 -2
- package/dist/{chunk-c2ngtf1e.js → chunk-71m1n92b.js} +4 -4
- package/dist/{chunk-5kqt4bqp.js → chunk-8b02x7vv.js} +1 -1
- package/dist/{chunk-tsx0347c.js → chunk-98azvx6g.js} +1 -1
- package/dist/{chunk-96bzt4ck.js → chunk-a2x5s9kp.js} +3 -3
- package/dist/{chunk-6bwf81dt.js → chunk-an3rg14h.js} +1 -1
- package/dist/{chunk-t89zj8wf.js → chunk-bhfytevh.js} +6 -5
- package/dist/{chunk-h2f26xbd.js → chunk-bqbfyqx6.js} +3 -1
- package/dist/{chunk-s34am3kw.js → chunk-cnryphhh.js} +3 -3
- package/dist/{chunk-49hz9619.js → chunk-cxr41x50.js} +16 -10
- package/dist/{chunk-samxkpbz.js → chunk-d4vhrja4.js} +3 -3
- package/dist/{chunk-4qjfn1sa.js → chunk-ea29sbaq.js} +1 -1
- package/dist/{chunk-8fyfsajs.js → chunk-etrfc5cn.js} +16 -2
- package/dist/{chunk-pn7egyb2.js → chunk-fyg6wzms.js} +5 -5
- package/dist/{chunk-wab1jevd.js → chunk-g7za9rja.js} +28 -28
- package/dist/{chunk-3t6aayxz.js → chunk-hc2yvtze.js} +17 -17
- package/dist/{chunk-gnq1ryhx.js → chunk-hgvft7vy.js} +4 -4
- package/dist/{chunk-rbj2eant.js → chunk-kpx9mb4f.js} +1 -1
- package/dist/{chunk-th0znqwv.js → chunk-nedj1g2c.js} +107 -42
- package/dist/{chunk-x29m7k25.js → chunk-ns26fbmk.js} +2 -2
- package/dist/{chunk-ewf73f4k.js → chunk-pkpzf7cp.js} +15 -15
- package/dist/{chunk-crw9pdwb.js → chunk-rv36r6r0.js} +6 -6
- package/dist/{chunk-vz38kngm.js → chunk-wy6gmtd9.js} +2 -2
- package/dist/{chunk-wckr96wg.js → chunk-wzphgw0t.js} +7 -7
- package/dist/{chunk-dw0v4ke8.js → chunk-x127f2bb.js} +6 -6
- package/dist/{chunk-vwaf8peb.js → chunk-x3t9f61a.js} +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
map9,
|
|
23
23
|
raceFirst,
|
|
24
24
|
scoped
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-bqbfyqx6.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-etrfc5cn.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;
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-bqbfyqx6.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-etrfc5cn.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-bhfytevh.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-a2x5s9kp.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-bqbfyqx6.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-etrfc5cn.js";
|
|
32
32
|
import {
|
|
33
33
|
newerKitmanVersion,
|
|
34
34
|
digestSha256,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
get2,
|
|
40
40
|
layer4,
|
|
41
41
|
KitDigest
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-bhfytevh.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -2211,7 +2211,7 @@ var pathOfLink = (link) => {
|
|
|
2211
2211
|
return page === null ? link : page[1] || "index";
|
|
2212
2212
|
};
|
|
2213
2213
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
2214
|
-
var pinnedLink2 = (link, version = "0.
|
|
2214
|
+
var pinnedLink2 = (link, version = "0.38.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
2215
2215
|
var pageOf = (path) => path.split("#")[0];
|
|
2216
2216
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
2217
2217
|
function excerpt(text, queryTerms) {
|
|
@@ -262,7 +262,7 @@ import {
|
|
|
262
262
|
decodeJsonStringOption,
|
|
263
263
|
encodeJsonStringSync,
|
|
264
264
|
encodePrettyJsonString
|
|
265
|
-
} from "./chunk-
|
|
265
|
+
} from "./chunk-bqbfyqx6.js";
|
|
266
266
|
import {
|
|
267
267
|
map,
|
|
268
268
|
makeEquivalence,
|
|
@@ -332,7 +332,7 @@ import {
|
|
|
332
332
|
optionalEnv,
|
|
333
333
|
harnessesUnsupportedInSrt2,
|
|
334
334
|
harnessesUnsupportedInDocker2
|
|
335
|
-
} from "./chunk-
|
|
335
|
+
} from "./chunk-etrfc5cn.js";
|
|
336
336
|
import {
|
|
337
337
|
isRedacted,
|
|
338
338
|
make,
|
|
@@ -346,7 +346,7 @@ import {
|
|
|
346
346
|
make3,
|
|
347
347
|
parseFdName,
|
|
348
348
|
fdName
|
|
349
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-6x08g7m6.js";
|
|
350
350
|
import {
|
|
351
351
|
isDateTime,
|
|
352
352
|
Numeric,
|
|
@@ -359,7 +359,7 @@ import {
|
|
|
359
359
|
SecretScope,
|
|
360
360
|
SecretHosts,
|
|
361
361
|
isSecretReference
|
|
362
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-ea29sbaq.js";
|
|
363
363
|
|
|
364
364
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
|
|
365
365
|
var makeEquivalence3 = Tuple;
|
|
@@ -15122,6 +15122,7 @@ function resolveConfig(input) {
|
|
|
15122
15122
|
var apiUrlFromEnv = String2("KITMAN_API_URL").pipe(option, map9(getOrUndefined));
|
|
15123
15123
|
var stepCredentialFromEnv = String2("KITMAN_STEP_CREDENTIAL").pipe(option, map9(getOrUndefined));
|
|
15124
15124
|
var stepWorkspaceFromEnv = String2("KITMAN_STEP_WORKSPACE").pipe(option, map9(getOrUndefined));
|
|
15125
|
+
var stepLogDirFromEnv = String2("KITMAN_STEP_LOG_DIR").pipe(option, map9(getOrUndefined));
|
|
15125
15126
|
var stepSkillsDirFromEnv = String2("KITMAN_STEP_SKILLS_DIR").pipe(option, map9(getOrUndefined));
|
|
15126
15127
|
var stepFittingSkillsFromEnv = String2("KITMAN_STEP_FITTING_SKILLS").pipe(option, map9((names) => getOrElse(names, () => "").split(",").filter((name) => name !== "")));
|
|
15127
15128
|
var stepOutputOnlyFromEnv = String2("KITMAN_STEP_TOOLS").pipe(option, map9((tools) => getOrUndefined(tools) === "output"));
|
|
@@ -17883,4 +17884,4 @@ function serviceChecks(declaration) {
|
|
|
17883
17884
|
return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
|
|
17884
17885
|
}
|
|
17885
17886
|
|
|
17886
|
-
export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, verificationCap, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
|
|
17887
|
+
export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, verificationCap, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepLogDirFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
|
|
@@ -1490,6 +1490,7 @@ var SuccessImpl = function(success) {
|
|
|
1490
1490
|
};
|
|
1491
1491
|
SuccessImpl.prototype = SuccessProto;
|
|
1492
1492
|
var succeed7 = (success) => new SuccessImpl(success);
|
|
1493
|
+
var getSuccess2 = (self) => isFailure3(self) ? none2 : some2(self.success);
|
|
1493
1494
|
|
|
1494
1495
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Order.js
|
|
1495
1496
|
function make(compare) {
|
|
@@ -2252,6 +2253,7 @@ var try_ = (evaluate) => {
|
|
|
2252
2253
|
var isResult = isResult2;
|
|
2253
2254
|
var isFailure = isFailure3;
|
|
2254
2255
|
var isSuccess = isSuccess3;
|
|
2256
|
+
var getSuccess = getSuccess2;
|
|
2255
2257
|
var map5 = /* @__PURE__ */ dual(2, (self, f) => isSuccess(self) ? succeed(f(self.success)) : self);
|
|
2256
2258
|
var match3 = /* @__PURE__ */ dual(2, (self, {
|
|
2257
2259
|
onFailure,
|
|
@@ -11741,4 +11743,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
|
|
|
11741
11743
|
var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
|
|
11742
11744
|
var storable = (value) => isString2(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
|
|
11743
11745
|
|
|
11744
|
-
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, 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, isArray, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, chunksOf, empty4, 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, map8, 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, combine2, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, upTo, while_, setInputType, isEffect, all3, validate, 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, map9, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, sandbox, 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, encode3, Pointer, makeFormatterStandardSchemaV1, passthrough, transform, transformEffect, encodeBase64Url, decodeBase64UrlString, Transformation, transform2, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map10, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, Tuple2, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, link, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isBetween, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, TaggedClass2, Error3, TaggedError2, toEquivalence, toJsonSchemaDocument, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
|
|
11746
|
+
export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, 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, getSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArray, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, chunksOf, empty4, 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, map8, 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, combine2, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, upTo, while_, setInputType, isEffect, all3, validate, 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, map9, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, sandbox, 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, encode3, Pointer, makeFormatterStandardSchemaV1, passthrough, transform, transformEffect, encodeBase64Url, decodeBase64UrlString, Transformation, transform2, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map10, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, Tuple2, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, link, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isBetween, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, TaggedClass2, Error3, TaggedError2, toEquivalence, toJsonSchemaDocument, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
isJsonObject,
|
|
36
36
|
isString2,
|
|
37
37
|
encodeUnknownJsonStringSync
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-bqbfyqx6.js";
|
|
39
39
|
import {
|
|
40
40
|
currentTimeMillis,
|
|
41
41
|
make11,
|
|
@@ -43,11 +43,11 @@ import {
|
|
|
43
43
|
toPull,
|
|
44
44
|
FileSystem,
|
|
45
45
|
compiled2
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-etrfc5cn.js";
|
|
47
47
|
import {
|
|
48
48
|
ChildProcessSpawner,
|
|
49
49
|
make3
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6x08g7m6.js";
|
|
51
51
|
|
|
52
52
|
// packages/agent-runtime/src/opencode-store.ts
|
|
53
53
|
import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
decodeJsonStringOption,
|
|
119
119
|
encodeJsonStringSync,
|
|
120
120
|
encodePrettyJsonString
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-bqbfyqx6.js";
|
|
122
122
|
import {
|
|
123
123
|
SecureRandom,
|
|
124
124
|
makeUnsafe,
|
|
@@ -148,6 +148,7 @@ import {
|
|
|
148
148
|
apiUrlFromEnv,
|
|
149
149
|
stepCredentialFromEnv,
|
|
150
150
|
stepWorkspaceFromEnv,
|
|
151
|
+
stepLogDirFromEnv,
|
|
151
152
|
stepSkillsDirFromEnv,
|
|
152
153
|
stepFittingSkillsFromEnv,
|
|
153
154
|
stepOutputOnlyFromEnv,
|
|
@@ -169,7 +170,7 @@ import {
|
|
|
169
170
|
runMcpEffect,
|
|
170
171
|
createAgentAuthSignedFetch,
|
|
171
172
|
setupMcpAgentCredential
|
|
172
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-bhfytevh.js";
|
|
173
174
|
import {
|
|
174
175
|
currentTimeMillis,
|
|
175
176
|
join,
|
|
@@ -187,30 +188,30 @@ import {
|
|
|
187
188
|
withDefault,
|
|
188
189
|
option,
|
|
189
190
|
String2
|
|
190
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-etrfc5cn.js";
|
|
191
192
|
import {
|
|
192
193
|
searchDocs2,
|
|
193
194
|
readDoc2
|
|
194
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-an3rg14h.js";
|
|
195
196
|
import {
|
|
196
197
|
nextInt
|
|
197
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-8b02x7vv.js";
|
|
198
199
|
import {
|
|
199
200
|
recommendationProblem
|
|
200
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-98azvx6g.js";
|
|
201
202
|
import {
|
|
202
203
|
layerJson,
|
|
203
204
|
make4,
|
|
204
205
|
withHeaders,
|
|
205
206
|
layerProtocolSocket,
|
|
206
207
|
ConnectionHooks
|
|
207
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-pkpzf7cp.js";
|
|
208
209
|
import {
|
|
209
210
|
guard,
|
|
210
211
|
Id,
|
|
211
212
|
Timestamp,
|
|
212
213
|
ActorType
|
|
213
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-ea29sbaq.js";
|
|
214
215
|
|
|
215
216
|
// apps/cli/src/mcp.ts
|
|
216
217
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -8840,7 +8841,7 @@ The skill's directory, for the files it points to: ${skillsDir}/${name}`
|
|
|
8840
8841
|
const attachable = (path) => gen(function* () {
|
|
8841
8842
|
const fs = yield* FileSystem;
|
|
8842
8843
|
const paths = yield* Path;
|
|
8843
|
-
const roots = input.fileRoots ?? [];
|
|
8844
|
+
const roots = [...input.fileRoots ?? [], ...input.logDir === undefined ? [] : [input.logDir]];
|
|
8844
8845
|
const real = yield* fs.realPath(paths.resolve(roots[0] ?? "", path)).pipe(mapError2(unreadable(path)));
|
|
8845
8846
|
const realRoots = yield* forEach(roots, (root) => option2(fs.realPath(root)));
|
|
8846
8847
|
if (!realRoots.some((root) => isSome(root) && isPathWithin(paths, root.value, real)))
|
|
@@ -8855,9 +8856,12 @@ The skill's directory, for the files it points to: ${skillsDir}/${name}`
|
|
|
8855
8856
|
})).pipe(mapError2(unreadable(path)));
|
|
8856
8857
|
const saveLog = (url) => gen(function* () {
|
|
8857
8858
|
const fs = yield* FileSystem;
|
|
8859
|
+
const root = input.logDir ?? input.fileRoots?.[1];
|
|
8860
|
+
if (input.logDir !== undefined)
|
|
8861
|
+
yield* fs.makeDirectory(input.logDir, { recursive: true });
|
|
8858
8862
|
const directory = yield* fs.makeTempDirectory({
|
|
8859
8863
|
prefix: "kitman-check-",
|
|
8860
|
-
...
|
|
8864
|
+
...root === undefined ? undefined : { directory: root }
|
|
8861
8865
|
});
|
|
8862
8866
|
const file = `${directory}/output.log`;
|
|
8863
8867
|
const response = yield* tryPromise({
|
|
@@ -9603,12 +9607,14 @@ function runMcpServerCommand(input = {}) {
|
|
|
9603
9607
|
const stepCredential = yield* stepCredentialFromEnv;
|
|
9604
9608
|
const skillsDir = yield* stepSkillsDirFromEnv;
|
|
9605
9609
|
const fittingSkills = yield* stepFittingSkillsFromEnv;
|
|
9610
|
+
const logDir = yield* stepLogDirFromEnv;
|
|
9606
9611
|
if (stepCredential !== undefined)
|
|
9607
9612
|
return yield* (yield* StepMcpServerStarter)({
|
|
9608
9613
|
apiUrl: config.apiUrl,
|
|
9609
9614
|
stepCredential,
|
|
9610
9615
|
...(yield* stepOutputOnlyFromEnv) ? { outputOnly: true } : {
|
|
9611
9616
|
fileRoots: [(yield* stepWorkspaceFromEnv) ?? cwd, tmpdir2()],
|
|
9617
|
+
...logDir === undefined ? undefined : { logDir },
|
|
9612
9618
|
...skillsDir === undefined ? undefined : { skillsDir },
|
|
9613
9619
|
...fittingSkills.length === 0 ? undefined : { fittingSkills }
|
|
9614
9620
|
}
|
|
@@ -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-wy6gmtd9.js";
|
|
8
|
+
import"./chunk-ea29sbaq.js";
|
|
9
|
+
import"./chunk-bqbfyqx6.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -205,7 +205,7 @@ import {
|
|
|
205
205
|
String4,
|
|
206
206
|
toCodecStringTree,
|
|
207
207
|
encodeUnknownJsonStringSync
|
|
208
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-bqbfyqx6.js";
|
|
209
209
|
|
|
210
210
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
211
211
|
var headUnsafe = (self) => {
|
|
@@ -3559,7 +3559,21 @@ var optionalEnv = (name) => gen(function* () {
|
|
|
3559
3559
|
var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(map9((configHome) => configHome ?? `${home}/.config`));
|
|
3560
3560
|
|
|
3561
3561
|
// packages/agent-runtime/src/temp-directory.ts
|
|
3562
|
-
|
|
3562
|
+
import { chmodSync, lstatSync, readdirSync } from "fs";
|
|
3563
|
+
var makeRemovable = (directory) => {
|
|
3564
|
+
try {
|
|
3565
|
+
chmodSync(directory, 448);
|
|
3566
|
+
for (const name of readdirSync(directory, { encoding: "buffer" })) {
|
|
3567
|
+
const entry = Buffer.concat([directory, Buffer.from("/"), name]);
|
|
3568
|
+
if (lstatSync(entry).isDirectory())
|
|
3569
|
+
makeRemovable(entry);
|
|
3570
|
+
}
|
|
3571
|
+
} catch {}
|
|
3572
|
+
};
|
|
3573
|
+
var tempDirectoryScoped = (fs, options) => acquireRelease(fs.makeTempDirectory(options), (directory) => {
|
|
3574
|
+
const remove = fs.remove(directory, { recursive: true, force: true });
|
|
3575
|
+
return remove.pipe(catch_(() => andThen2(sync2(() => makeRemovable(Buffer.from(directory))), remove)), catch_((error) => logWarning("temp_directory_not_removed", { directory, error: error.message })));
|
|
3576
|
+
});
|
|
3563
3577
|
|
|
3564
3578
|
// packages/agent-runtime/src/srt-sandbox.ts
|
|
3565
3579
|
var harnessesUnsupportedInSrt2 = ["codex", "antigravity"];
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
toJsonSchemaDocument,
|
|
139
139
|
toCodecJson,
|
|
140
140
|
Json
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-bqbfyqx6.js";
|
|
142
142
|
import {
|
|
143
143
|
WebCrypto,
|
|
144
144
|
makeUnsafe,
|
|
@@ -175,24 +175,24 @@ import {
|
|
|
175
175
|
StepManifest,
|
|
176
176
|
KitSetup,
|
|
177
177
|
RunnerRpcError
|
|
178
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-bhfytevh.js";
|
|
179
179
|
import {
|
|
180
180
|
currentTimeMillis,
|
|
181
181
|
getCurrent,
|
|
182
182
|
runForEach,
|
|
183
183
|
FileSystem
|
|
184
|
-
} from "./chunk-
|
|
184
|
+
} from "./chunk-etrfc5cn.js";
|
|
185
185
|
import {
|
|
186
186
|
splitQuestionOptions,
|
|
187
187
|
recommendationProblem,
|
|
188
188
|
questionAdvice
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-98azvx6g.js";
|
|
190
190
|
import {
|
|
191
191
|
guard,
|
|
192
192
|
Id,
|
|
193
193
|
Timestamp,
|
|
194
194
|
ActorType
|
|
195
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-ea29sbaq.js";
|
|
196
196
|
var __defProp = Object.defineProperty;
|
|
197
197
|
var __returnValue = (v) => v;
|
|
198
198
|
function __exportSetter(name, newValue) {
|
|
@@ -109,7 +109,20 @@ import {
|
|
|
109
109
|
decodeJsonStringOption,
|
|
110
110
|
encodeJsonStringSync,
|
|
111
111
|
encodePrettyJsonString
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-bqbfyqx6.js";
|
|
113
|
+
import {
|
|
114
|
+
currentTimeMillis,
|
|
115
|
+
tap,
|
|
116
|
+
mapError,
|
|
117
|
+
decodeText,
|
|
118
|
+
run,
|
|
119
|
+
mkString,
|
|
120
|
+
FileSystem,
|
|
121
|
+
Path,
|
|
122
|
+
withDefault,
|
|
123
|
+
option,
|
|
124
|
+
String2
|
|
125
|
+
} from "./chunk-etrfc5cn.js";
|
|
113
126
|
import {
|
|
114
127
|
SecureRandom,
|
|
115
128
|
layerWebCrypto,
|
|
@@ -240,28 +253,15 @@ import {
|
|
|
240
253
|
harnessNames,
|
|
241
254
|
herdrRunnerCapabilities2,
|
|
242
255
|
declaredChecks
|
|
243
|
-
} from "./chunk-
|
|
244
|
-
import {
|
|
245
|
-
currentTimeMillis,
|
|
246
|
-
tap,
|
|
247
|
-
mapError,
|
|
248
|
-
decodeText,
|
|
249
|
-
run,
|
|
250
|
-
mkString,
|
|
251
|
-
FileSystem,
|
|
252
|
-
Path,
|
|
253
|
-
withDefault,
|
|
254
|
-
option,
|
|
255
|
-
String2
|
|
256
|
-
} from "./chunk-8fyfsajs.js";
|
|
256
|
+
} from "./chunk-bhfytevh.js";
|
|
257
257
|
import {
|
|
258
258
|
ChildProcessSpawner,
|
|
259
259
|
make3
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-6x08g7m6.js";
|
|
261
261
|
import {
|
|
262
262
|
Id,
|
|
263
263
|
Timestamp
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-ea29sbaq.js";
|
|
265
265
|
|
|
266
266
|
// apps/cli/src/cli-error.ts
|
|
267
267
|
function cliErrorCode(error, status) {
|
|
@@ -1329,10 +1329,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1329
1329
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1330
1330
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1331
1331
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1332
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1332
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-x3t9f61a.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1333
1333
|
});
|
|
1334
1334
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1335
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1335
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-x3t9f61a.js")), (module) => module.updateHerdrCore(options))
|
|
1336
1336
|
});
|
|
1337
1337
|
var herdrCoreMissing = (error) => {
|
|
1338
1338
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1796,7 +1796,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1796
1796
|
});
|
|
1797
1797
|
var syncKits = (input) => gen(function* () {
|
|
1798
1798
|
const fs = yield* FileSystem;
|
|
1799
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1799
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-wzphgw0t.js"));
|
|
1800
1800
|
const harnesses = yield* syncTargets(input.harness);
|
|
1801
1801
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1802
1802
|
for (const { name, problem } of chain.skipped)
|
|
@@ -3291,7 +3291,7 @@ var shipped_steps_generated_default = {
|
|
|
3291
3291
|
};
|
|
3292
3292
|
|
|
3293
3293
|
// apps/cli/src/scaffold-files.ts
|
|
3294
|
-
var cliVersion = "0.
|
|
3294
|
+
var cliVersion = "0.38.0";
|
|
3295
3295
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3296
3296
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3297
3297
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3556,7 +3556,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3556
3556
|
|
|
3557
3557
|
// apps/cli/src/commands.ts
|
|
3558
3558
|
var ClientId = "kitman-cli";
|
|
3559
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3559
|
+
var agentRuntime = promise(() => import("./chunk-nedj1g2c.js"));
|
|
3560
3560
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3561
3561
|
defaultValue: () => gen(function* () {
|
|
3562
3562
|
const tui = yield* tryPromise({
|
|
@@ -5095,7 +5095,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5095
5095
|
});
|
|
5096
5096
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5097
5097
|
defaultValue: () => (options) => gen(function* () {
|
|
5098
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5098
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-rv36r6r0.js"));
|
|
5099
5099
|
return yield* makeRunnerRpcClient({
|
|
5100
5100
|
runnerId: options.runnerId,
|
|
5101
5101
|
bearer: options.bearer,
|
|
@@ -5692,7 +5692,7 @@ function mcpCommand(args) {
|
|
|
5692
5692
|
if (command.action === "run") {
|
|
5693
5693
|
if (command.args.length > 0)
|
|
5694
5694
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5695
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5695
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-cxr41x50.js"));
|
|
5696
5696
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5697
5697
|
}
|
|
5698
5698
|
if (command.action !== "setup")
|
|
@@ -6192,7 +6192,7 @@ function programLoopCommand(command) {
|
|
|
6192
6192
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6193
6193
|
});
|
|
6194
6194
|
}
|
|
6195
|
-
var docsModule = promise(() => import("./chunk-
|
|
6195
|
+
var docsModule = promise(() => import("./chunk-kpx9mb4f.js"));
|
|
6196
6196
|
function docsCommand(args) {
|
|
6197
6197
|
return gen(function* () {
|
|
6198
6198
|
const command = parseCommand(args);
|
|
@@ -7196,7 +7196,7 @@ function changeRequestCommand(args) {
|
|
|
7196
7196
|
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}`);
|
|
7197
7197
|
});
|
|
7198
7198
|
}
|
|
7199
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7199
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-hc2yvtze.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7200
7200
|
var loopOutline = (command) => gen(function* () {
|
|
7201
7201
|
const path = yield* Path;
|
|
7202
7202
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7216,9 +7216,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7216
7216
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7217
7217
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7218
7218
|
});
|
|
7219
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7219
|
+
var KitWriter = map9(promise(() => import("./chunk-hc2yvtze.js")), (build) => build.writeKit);
|
|
7220
7220
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7221
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7221
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-hc2yvtze.js")), (build) => build.buildKit(directory))
|
|
7222
7222
|
});
|
|
7223
7223
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7224
7224
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -35,7 +35,15 @@ import {
|
|
|
35
35
|
toCodecJson,
|
|
36
36
|
Json,
|
|
37
37
|
encodePrettyJsonString
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-bqbfyqx6.js";
|
|
39
|
+
import {
|
|
40
|
+
decodeText,
|
|
41
|
+
mkString,
|
|
42
|
+
FileSystem,
|
|
43
|
+
Path,
|
|
44
|
+
withDefault,
|
|
45
|
+
String2
|
|
46
|
+
} from "./chunk-etrfc5cn.js";
|
|
39
47
|
import {
|
|
40
48
|
SecureRandom,
|
|
41
49
|
layerWebCrypto,
|
|
@@ -52,34 +60,26 @@ import {
|
|
|
52
60
|
KitDeclarations,
|
|
53
61
|
kitmanMcpServer,
|
|
54
62
|
RunnerRpcProtocolVersion
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import {
|
|
57
|
-
decodeText,
|
|
58
|
-
mkString,
|
|
59
|
-
FileSystem,
|
|
60
|
-
Path,
|
|
61
|
-
withDefault,
|
|
62
|
-
String2
|
|
63
|
-
} from "./chunk-8fyfsajs.js";
|
|
63
|
+
} from "./chunk-bhfytevh.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-a2x5s9kp.js";
|
|
68
68
|
import {
|
|
69
69
|
stepDefinedTwice,
|
|
70
70
|
hostSteps,
|
|
71
71
|
exports_activities,
|
|
72
72
|
describeFlag,
|
|
73
73
|
Described
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import"./chunk-
|
|
76
|
-
import"./chunk-
|
|
74
|
+
} from "./chunk-fyg6wzms.js";
|
|
75
|
+
import"./chunk-x127f2bb.js";
|
|
76
|
+
import"./chunk-98azvx6g.js";
|
|
77
77
|
import {
|
|
78
78
|
ChildProcessSpawner,
|
|
79
79
|
make3
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import"./chunk-
|
|
82
|
-
import"./chunk-
|
|
80
|
+
} from "./chunk-6x08g7m6.js";
|
|
81
|
+
import"./chunk-pkpzf7cp.js";
|
|
82
|
+
import"./chunk-ea29sbaq.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
85
85
|
import {
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
readOpencode2,
|
|
10
10
|
databaseStamp2,
|
|
11
11
|
runOpencodeReader2
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
15
|
-
import"./chunk-
|
|
12
|
+
} from "./chunk-cnryphhh.js";
|
|
13
|
+
import"./chunk-6x08g7m6.js";
|
|
14
|
+
import"./chunk-etrfc5cn.js";
|
|
15
|
+
import"./chunk-bqbfyqx6.js";
|
|
16
16
|
export {
|
|
17
17
|
databaseStamp2 as databaseStamp,
|
|
18
18
|
decoded2 as decoded,
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
isResult,
|
|
37
37
|
isFailure,
|
|
38
38
|
isSuccess,
|
|
39
|
+
getSuccess,
|
|
39
40
|
chunksOf,
|
|
40
41
|
TaggedError,
|
|
41
42
|
succeed3,
|
|
@@ -174,7 +175,7 @@ import {
|
|
|
174
175
|
decodeJsonStringSync,
|
|
175
176
|
encodeUnknownJsonStringSync,
|
|
176
177
|
storable
|
|
177
|
-
} from "./chunk-
|
|
178
|
+
} from "./chunk-bqbfyqx6.js";
|
|
178
179
|
import {
|
|
179
180
|
SecureRandom,
|
|
180
181
|
layerWebCrypto,
|
|
@@ -262,7 +263,7 @@ import {
|
|
|
262
263
|
checkServicesFile,
|
|
263
264
|
checkServices,
|
|
264
265
|
serviceChecks
|
|
265
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-bhfytevh.js";
|
|
266
267
|
import {
|
|
267
268
|
currentTimeMillis,
|
|
268
269
|
join,
|
|
@@ -311,7 +312,7 @@ import {
|
|
|
311
312
|
writeSrtSettings2,
|
|
312
313
|
srtStepArgv2,
|
|
313
314
|
srtArgv2
|
|
314
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-etrfc5cn.js";
|
|
315
316
|
import {
|
|
316
317
|
writeAgentEnvironmentConfigFile2,
|
|
317
318
|
readManifestSkillPaths2,
|
|
@@ -327,8 +328,8 @@ import {
|
|
|
327
328
|
applyAgentEnvironmentMaterialization2,
|
|
328
329
|
isPathWithin2,
|
|
329
330
|
skillIdentity2
|
|
330
|
-
} from "./chunk-
|
|
331
|
-
import"./chunk-
|
|
331
|
+
} from "./chunk-71m1n92b.js";
|
|
332
|
+
import"./chunk-a2x5s9kp.js";
|
|
332
333
|
import {
|
|
333
334
|
egressAllowed,
|
|
334
335
|
writeSecretRegistry,
|
|
@@ -338,7 +339,7 @@ import {
|
|
|
338
339
|
secretFilter2,
|
|
339
340
|
opaqueTunnelRefusal2,
|
|
340
341
|
isOpaqueConnectReason2
|
|
341
|
-
} from "./chunk-
|
|
342
|
+
} from "./chunk-wy6gmtd9.js";
|
|
342
343
|
import {
|
|
343
344
|
sliceBytes2,
|
|
344
345
|
maxLineBytes2,
|
|
@@ -348,29 +349,29 @@ import {
|
|
|
348
349
|
lookAtOpencode2,
|
|
349
350
|
readOpencode2,
|
|
350
351
|
databaseStamp2
|
|
351
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-cnryphhh.js";
|
|
352
353
|
import {
|
|
353
354
|
uploadRunFile,
|
|
354
355
|
programLease,
|
|
355
356
|
rpcRunFiles,
|
|
356
357
|
programHostsEnv,
|
|
357
358
|
undeclaredHostsEnv
|
|
358
|
-
} from "./chunk-
|
|
359
|
-
import"./chunk-
|
|
359
|
+
} from "./chunk-fyg6wzms.js";
|
|
360
|
+
import"./chunk-x127f2bb.js";
|
|
360
361
|
import {
|
|
361
362
|
nextInt
|
|
362
|
-
} from "./chunk-
|
|
363
|
-
import"./chunk-
|
|
363
|
+
} from "./chunk-8b02x7vv.js";
|
|
364
|
+
import"./chunk-98azvx6g.js";
|
|
364
365
|
import {
|
|
365
366
|
ChildProcessSpawner,
|
|
366
367
|
make3
|
|
367
|
-
} from "./chunk-
|
|
368
|
-
import"./chunk-
|
|
368
|
+
} from "./chunk-6x08g7m6.js";
|
|
369
|
+
import"./chunk-pkpzf7cp.js";
|
|
369
370
|
import {
|
|
370
371
|
Id,
|
|
371
372
|
secretReference,
|
|
372
373
|
secretPlaceholder
|
|
373
|
-
} from "./chunk-
|
|
374
|
+
} from "./chunk-ea29sbaq.js";
|
|
374
375
|
|
|
375
376
|
// packages/core/src/sync-kit.ts
|
|
376
377
|
import { createHash } from "crypto";
|
|
@@ -2670,6 +2671,7 @@ var stepSandboxPolicy = (input) => ({
|
|
|
2670
2671
|
...input.environment
|
|
2671
2672
|
}
|
|
2672
2673
|
});
|
|
2674
|
+
var attemptTempDirectory = (configDir) => `${configDir}/tmp`;
|
|
2673
2675
|
var prepareHarness = (input) => gen(function* () {
|
|
2674
2676
|
const adapter = harnessAdapter(input.agent.brief.harness);
|
|
2675
2677
|
if (adapter === undefined)
|
|
@@ -2699,7 +2701,7 @@ var prepareHarness = (input) => gen(function* () {
|
|
|
2699
2701
|
KITMAN_STEP_CREDENTIAL: input.agent.stepCredential,
|
|
2700
2702
|
KITMAN_API_URL: input.agent.apiUrl,
|
|
2701
2703
|
KITMAN_STEP_WORKSPACE: input.workspace,
|
|
2702
|
-
...toolless ? { KITMAN_STEP_TOOLS: "output" } :
|
|
2704
|
+
...toolless ? { KITMAN_STEP_TOOLS: "output" } : { KITMAN_STEP_LOG_DIR: attemptTempDirectory(configDir) },
|
|
2703
2705
|
...kitSetup === undefined || kitSetup.loadableSkills.length === 0 ? undefined : { KITMAN_STEP_SKILLS_DIR: `${configDir}/${kitSetup.loadableRoot}` },
|
|
2704
2706
|
...fitting.length === 0 ? undefined : { KITMAN_STEP_FITTING_SKILLS: fitting.join(",") }
|
|
2705
2707
|
}
|
|
@@ -3329,10 +3331,9 @@ var record = (home, workspace) => gen(function* () {
|
|
|
3329
3331
|
return;
|
|
3330
3332
|
const trusted = withEntry(config.value, "projects", withEntry(projects, workspace, withEntry(project, "hasTrustDialogAccepted", true)));
|
|
3331
3333
|
const json = yield* encodePrettyJsonString(codeModeCaveats.reduce((settled, key) => withEntry(settled, key, true), trusted));
|
|
3332
|
-
const temporary = yield* fs
|
|
3333
|
-
yield* fs.chmod(temporary, 384);
|
|
3334
|
+
const temporary = `${yield* tempDirectoryScoped(fs, { directory: home, prefix: ".claude.json.kitman-" })}/.claude.json`;
|
|
3334
3335
|
yield* fs.writeFileString(temporary, `${json}
|
|
3335
|
-
|
|
3336
|
+
`, { mode: 384 });
|
|
3336
3337
|
yield* fs.rename(temporary, file);
|
|
3337
3338
|
});
|
|
3338
3339
|
|
|
@@ -3392,6 +3393,7 @@ var prepareDockerHome = (input) => gen(function* () {
|
|
|
3392
3393
|
...anthropicKey === undefined ? undefined : { customApiKeyResponses: { approved: [anthropicKey.slice(approvedKeyEnd)], rejected: [] } }
|
|
3393
3394
|
}), { mode: 384 });
|
|
3394
3395
|
yield* trustClaudeWorkspace(input.home, input.workspace);
|
|
3396
|
+
yield* trustClaudeWorkspace(input.home, input.configDir);
|
|
3395
3397
|
}
|
|
3396
3398
|
if (input.adapter.id === "codex" && openaiKey !== undefined) {
|
|
3397
3399
|
yield* fs.makeDirectory(`${input.home}/.codex`, { recursive: true });
|
|
@@ -4662,18 +4664,45 @@ var aborted = (signal) => signal === undefined ? never : callback3((resume) => {
|
|
|
4662
4664
|
});
|
|
4663
4665
|
var canceled = { status: "canceled", reason: "canceled" };
|
|
4664
4666
|
var loginRefusedError = /(OAuth token revoked|OAuth access token is invalid|Login expired)\W{0,12}Please run \/login/;
|
|
4667
|
+
var setupPromptPoll = "1 second";
|
|
4665
4668
|
var screenTail = (screen) => screen.split(`
|
|
4666
4669
|
`).slice(-12);
|
|
4667
4670
|
var loginRefused = (screen) => loginRefusedError.test(screenTail(screen).join(" "));
|
|
4668
4671
|
var setupPrompts = [
|
|
4669
|
-
{
|
|
4670
|
-
|
|
4672
|
+
{
|
|
4673
|
+
name: "folder trust prompt",
|
|
4674
|
+
confirm: /^Yes, I trust this folder$/,
|
|
4675
|
+
cancel: /^No, (exit|continue without these permissions)$/
|
|
4676
|
+
},
|
|
4677
|
+
{ name: "Code Mode prompt", confirm: /^Yes, turn on Code Mode$/, cancel: /^No, start without it$/ }
|
|
4671
4678
|
];
|
|
4672
4679
|
var menuOption = (line) => line.replace(/^[\s\u276F\u203A>]*(\d+\.\s*)?/, "").trim();
|
|
4673
|
-
var
|
|
4680
|
+
var addedDirectoryDialog = {
|
|
4681
|
+
name: "trust prompt for an added directory",
|
|
4682
|
+
lines: 30,
|
|
4683
|
+
title: /^Adding a new directory:\s*([~/].*)?$/,
|
|
4684
|
+
path: /^[~/]/,
|
|
4685
|
+
confirm: /^Yes, add it$/,
|
|
4686
|
+
cancel: /^No, (exit|leave it out)$/
|
|
4687
|
+
};
|
|
4688
|
+
var atAddedDirectoryDialog = (screen) => {
|
|
4689
|
+
const { lines, title, path, confirm, cancel } = addedDirectoryDialog;
|
|
4690
|
+
const rows = screen.trimEnd().split(`
|
|
4691
|
+
`).slice(-lines).map((row) => menuOption(row.replace(/^[\u2500\u2502\u256D|]+/, "")));
|
|
4692
|
+
const menu = rows.findLastIndex((row, index) => confirm.test(row) && cancel.test(rows[index + 1] ?? "") || cancel.test(row) && confirm.test(rows[index + 1] ?? ""));
|
|
4693
|
+
const heading = rows.findLastIndex((row, index) => index < menu && title.test(row));
|
|
4694
|
+
if (menu < 0 || heading < 0)
|
|
4695
|
+
return false;
|
|
4696
|
+
const directory = title.exec(rows[heading] ?? "")?.[1] ?? rows.slice(heading + 1, menu).find((row) => row !== "");
|
|
4697
|
+
return directory !== undefined && path.test(directory);
|
|
4698
|
+
};
|
|
4699
|
+
var setupPromptOn = (screen, harness) => {
|
|
4700
|
+
if (harness === "claude" && atAddedDirectoryDialog(screen))
|
|
4701
|
+
return addedDirectoryDialog.name;
|
|
4674
4702
|
const options = screenTail(screen).map(menuOption);
|
|
4675
|
-
return setupPrompts.
|
|
4703
|
+
return setupPrompts.find(({ confirm, cancel }) => options.some((option) => confirm.test(option)) && options.some((option) => cancel.test(option)))?.name;
|
|
4676
4704
|
};
|
|
4705
|
+
var addsDirectory = (args, directory) => args.some((arg, index) => arg === directory && args[index - 1] === "--add-dir");
|
|
4677
4706
|
var watchSecretRegistry = (registry, request, revocationMs) => gen(function* () {
|
|
4678
4707
|
const fs = yield* FileSystem;
|
|
4679
4708
|
const log = secretRefusalLog(registry.file);
|
|
@@ -4759,6 +4788,10 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4759
4788
|
...stepProcessEnvironment(request.runnerId, attempt.id),
|
|
4760
4789
|
...threadBudgetEnvironment(yield* options.threadBudget)
|
|
4761
4790
|
};
|
|
4791
|
+
const attemptTemp = attemptTempDirectory(configDir);
|
|
4792
|
+
const makeAttemptTemp = gen(function* () {
|
|
4793
|
+
yield* (yield* FileSystem).makeDirectory(attemptTemp, { recursive: true });
|
|
4794
|
+
}).pipe(mapError2(harnessConfigUnwritable));
|
|
4762
4795
|
const sandboxed = gen(function* () {
|
|
4763
4796
|
switch (request.sandbox.backend) {
|
|
4764
4797
|
case "srt": {
|
|
@@ -4789,8 +4822,10 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4789
4822
|
summary: "srt settings could not be written."
|
|
4790
4823
|
})));
|
|
4791
4824
|
yield* requireKitCommands(kitSetup, runsOnHost);
|
|
4825
|
+
yield* makeAttemptTemp;
|
|
4792
4826
|
const env = {
|
|
4793
4827
|
...yield* inheritedEnvironment2(srtInheritedEnv2),
|
|
4828
|
+
CLAUDE_CODE_TMPDIR: attemptTemp,
|
|
4794
4829
|
...loginReferences,
|
|
4795
4830
|
...policy.environment,
|
|
4796
4831
|
...srtCacheEnvironment2(`${configDir}/cache`),
|
|
@@ -4842,6 +4877,7 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4842
4877
|
adapter,
|
|
4843
4878
|
home: dockerHome(configDir),
|
|
4844
4879
|
workspace,
|
|
4880
|
+
configDir,
|
|
4845
4881
|
environment: policy.environment
|
|
4846
4882
|
}).pipe(tapError2((error) => logWarning("docker_home_unwritable", error.message)), mapError2(harnessConfigUnwritable));
|
|
4847
4883
|
yield* requireKitCommands(kitSetup, (command) => options.docker === undefined ? fail7(unavailable) : options.docker.containers.exec({
|
|
@@ -4856,8 +4892,10 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4856
4892
|
}
|
|
4857
4893
|
default:
|
|
4858
4894
|
yield* requireKitCommands(kitSetup, runsOnHost);
|
|
4895
|
+
yield* makeAttemptTemp;
|
|
4859
4896
|
const env = {
|
|
4860
4897
|
...yield* inheritedEnvironment2(["SSH_AUTH_SOCK"]),
|
|
4898
|
+
TMPDIR: attemptTemp,
|
|
4861
4899
|
...policy.environment,
|
|
4862
4900
|
...yield* options.stepProcesses.dockerEnvironment(request.runnerId, attempt.id),
|
|
4863
4901
|
...attemptEnvironment
|
|
@@ -4881,7 +4919,9 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4881
4919
|
if (isFailure(command))
|
|
4882
4920
|
return failed(command.failure.reason, command.failure.summary);
|
|
4883
4921
|
if (adapter.id === "claude" && request.sandbox.backend !== "docker") {
|
|
4884
|
-
const
|
|
4922
|
+
const home = launch.globalConfig === undefined ? options.home : (yield* Path).dirname(launch.globalConfig.path);
|
|
4923
|
+
const directories = addsDirectory(launch.args, configDir) ? [workspace, configDir] : [workspace];
|
|
4924
|
+
const trusted = yield* result(forEach(directories, (directory) => trustClaudeWorkspace(home, directory), { discard: true }));
|
|
4885
4925
|
if (isFailure(trusted)) {
|
|
4886
4926
|
yield* logWarning("claude_trust_failed", trusted.failure);
|
|
4887
4927
|
return failed("harness_launch_failed", `Kitman could not record the workspace's trust, so Claude Code would wait on its folder trust prompt: ${trusted.failure.message}`);
|
|
@@ -4917,7 +4957,11 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4917
4957
|
let accepted = false;
|
|
4918
4958
|
const outputSubmitted = suspend3(() => accepted ? succeed6(true) : request.settled.pipe(orElseSucceed(() => false), tap2((settled) => sync2(() => accepted ||= settled))));
|
|
4919
4959
|
const readScreen = map9(option2(call((connection) => connection.read(address))), (screen) => isSome(screen) ? redactCredentials(screen.value).trim() : "");
|
|
4920
|
-
const
|
|
4960
|
+
const setupPromptShown = adapter.id === "claude" ? readScreen.pipe(repeat({
|
|
4961
|
+
until: (shown) => setupPromptOn(shown, adapter.id) !== undefined,
|
|
4962
|
+
schedule: spaced(setupPromptPoll)
|
|
4963
|
+
})) : never;
|
|
4964
|
+
const setupPromptFailure = (shown, prompt) => failed("harness_setup_prompt", `The agent stopped at its ${prompt}, which Kitman answers before launch. Its screen ended: ${shown.slice(-blockedScreenChars)}`);
|
|
4921
4965
|
const judge = (last) => gen(function* () {
|
|
4922
4966
|
if (yield* outputSubmitted)
|
|
4923
4967
|
return { status: "settled" };
|
|
@@ -4939,8 +4983,9 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4939
4983
|
yield* logWarning("agent_blocked", { attempt: attempt.id, address, screen: shown });
|
|
4940
4984
|
if (loginRefused(shown))
|
|
4941
4985
|
return failed("harness_login_lost", `The Harness's login was refused before it submitted its Output. Its screen ended: ${shown.slice(-blockedScreenChars)}`);
|
|
4942
|
-
|
|
4943
|
-
|
|
4986
|
+
const prompt = setupPromptOn(shown, adapter.id);
|
|
4987
|
+
if (prompt !== undefined)
|
|
4988
|
+
return setupPromptFailure(shown, prompt);
|
|
4944
4989
|
return {
|
|
4945
4990
|
status: "blocked",
|
|
4946
4991
|
summary: `The agent stopped for input before submitting its Output.${shown === "" ? "" : ` Its screen ended: ${shown.slice(-blockedScreenChars)}`}`
|
|
@@ -4950,12 +4995,20 @@ var runAttempt = (request, options) => gen(function* () {
|
|
|
4950
4995
|
});
|
|
4951
4996
|
const ended = (signal) => (outcome) => ({ signal, outcome });
|
|
4952
4997
|
const ending = gen(function* () {
|
|
4953
|
-
const
|
|
4998
|
+
const started = raceFirst(until(seen, (last) => last.end !== undefined || last.status !== null && !["working", "blocked"].includes(last.status)), lastingStatus(seen, "blocked", Math.min(options.blockedGraceMs, startupBlockedMs)));
|
|
4999
|
+
const launchedOrPrompted = yield* raceFirst(map9(started, succeed), map9(setupPromptShown, fail3)).pipe(timeoutOption(launchTimeout));
|
|
5000
|
+
if (isSome(launchedOrPrompted) && isFailure(launchedOrPrompted.value)) {
|
|
5001
|
+
const shown = launchedOrPrompted.value.failure;
|
|
5002
|
+
yield* logWarning("agent_setup_prompt", { attempt: attempt.id, address, screen: shown });
|
|
5003
|
+
return ended("setup_prompt")(setupPromptFailure(shown, setupPromptOn(shown, adapter.id) ?? "setup prompt"));
|
|
5004
|
+
}
|
|
5005
|
+
const ready = flatMap(launchedOrPrompted, getSuccess);
|
|
4954
5006
|
if (isNone(ready)) {
|
|
4955
5007
|
const shown = yield* readScreen;
|
|
4956
5008
|
yield* logWarning("agent_launch_timeout", { attempt: attempt.id, address, screen: shown });
|
|
4957
|
-
|
|
4958
|
-
|
|
5009
|
+
const prompt = setupPromptOn(shown, adapter.id);
|
|
5010
|
+
if (prompt !== undefined)
|
|
5011
|
+
return ended("launch_timeout")(setupPromptFailure(shown, prompt));
|
|
4959
5012
|
return ended("launch_timeout")(failed("harness_launch_timeout", `The Harness reported no status within 120 s of its launch.${shown === "" ? " Its screen was empty." : ` Its screen ended: ${shown.slice(-blockedScreenChars)}`}`));
|
|
4960
5013
|
}
|
|
4961
5014
|
if (ready.value.end !== undefined)
|
|
@@ -9186,14 +9239,14 @@ var postgresRoute = (backend, postgres) => {
|
|
|
9186
9239
|
tunnel: srtPostgresTunnel(postgres.hostPort)
|
|
9187
9240
|
};
|
|
9188
9241
|
};
|
|
9189
|
-
var checkSandboxPolicy = (work, sandbox, checkout, cache,
|
|
9242
|
+
var checkSandboxPolicy = (work, sandbox, checkout, cache, checkDirectories, postgresHosts, docker) => ({
|
|
9190
9243
|
...runnerStateSandboxPolicy(sandbox.runner, [
|
|
9191
9244
|
repositoryClone(sandbox.runner.workRoot, work.repoBinding.id),
|
|
9192
9245
|
checkout,
|
|
9193
9246
|
...docker === undefined ? [] : [docker.clientDir],
|
|
9194
9247
|
...docker?.route.kind === "relay" ? docker.route.encoder : []
|
|
9195
9248
|
]),
|
|
9196
|
-
writablePaths: [checkout, cache,
|
|
9249
|
+
writablePaths: [checkout, cache, ...checkDirectories, ...docker === undefined ? [] : [docker.clientDir]],
|
|
9197
9250
|
network: verificationNetworkAllowlist({
|
|
9198
9251
|
apiUrl: sandbox.apiUrl,
|
|
9199
9252
|
storageOrigin: work.storageOrigin,
|
|
@@ -9214,22 +9267,26 @@ var checkRunner = (work, sandbox, cache, inherited, threadBudget) => (checkout)
|
|
|
9214
9267
|
postgres,
|
|
9215
9268
|
docker,
|
|
9216
9269
|
runnerGitConfig
|
|
9217
|
-
}) => {
|
|
9270
|
+
}) => scoped(gen(function* () {
|
|
9271
|
+
const { TMPDIR: declaredTmp, ...declared } = added ?? {};
|
|
9272
|
+
const checkTmp = declaredTmp ?? (yield* tempDirectoryScoped(yield* FileSystem, { prefix: "kitman-check-tmp-" }));
|
|
9273
|
+
const ownTmp = declaredTmp === undefined ? checkTmp : undefined;
|
|
9218
9274
|
const gitEnvironment = runnerGitConfig === true ? { GIT_TERMINAL_PROMPT: "0" } : checkGitEnvironment;
|
|
9219
9275
|
const env = {
|
|
9220
|
-
...
|
|
9276
|
+
...declared,
|
|
9221
9277
|
...threadBudgetEnvironment(threadBudget),
|
|
9222
9278
|
...gitEnvironment,
|
|
9223
9279
|
KITMAN_RUN_FILES_DIR: filesDir
|
|
9224
9280
|
};
|
|
9225
9281
|
const output = onOutput === undefined ? undefined : { onOutput };
|
|
9226
9282
|
if (sandbox === undefined || sandbox.backend === undefined) {
|
|
9227
|
-
return runShell2(command, {
|
|
9283
|
+
return yield* runShell2(command, {
|
|
9228
9284
|
cwd,
|
|
9229
9285
|
extendEnv: false,
|
|
9230
9286
|
env: {
|
|
9231
9287
|
...hostCheckEnvironment(docker),
|
|
9232
9288
|
...env,
|
|
9289
|
+
TMPDIR: checkTmp,
|
|
9233
9290
|
...postgres === undefined ? undefined : { POSTGRES_URL: checkPostgresUrl(postgres, "127.0.0.1", postgres.hostPort) }
|
|
9234
9291
|
},
|
|
9235
9292
|
timeout,
|
|
@@ -9238,11 +9295,14 @@ var checkRunner = (work, sandbox, cache, inherited, threadBudget) => (checkout)
|
|
|
9238
9295
|
}
|
|
9239
9296
|
const route = postgresRoute(sandbox.backend, postgres);
|
|
9240
9297
|
const daemon = dockerRoute(sandbox.backend, docker, (sandbox.backend === "srt" ? sandbox.dockerPort : undefined) ?? checkDockerPort);
|
|
9241
|
-
const policy = checkSandboxPolicy(work, sandbox, checkout, cache, filesDir, [...route.hosts, ...daemon.hosts], docker);
|
|
9298
|
+
const policy = checkSandboxPolicy(work, sandbox, checkout, cache, ownTmp === undefined ? [filesDir] : [filesDir, ownTmp], [...route.hosts, ...daemon.hosts], docker);
|
|
9242
9299
|
const [tunnel, ...innerTunnels] = [route.tunnel, daemon.tunnel].filter((script) => script !== undefined);
|
|
9243
|
-
const
|
|
9300
|
+
const checkCommand = sandbox.backend === "srt" ? `export TMPDIR="$KITMAN_CHECK_TMPDIR"
|
|
9301
|
+
unset KITMAN_CHECK_TMPDIR
|
|
9302
|
+
${command}` : command;
|
|
9303
|
+
const tunnelled = innerTunnels.reduceRight((inner, script) => `sh -c ${quoted(script)} sh ${quoted(inner)}`, checkCommand);
|
|
9244
9304
|
const sandboxCommand = {
|
|
9245
|
-
argv: tunnel === undefined ? ["sh", "-c",
|
|
9305
|
+
argv: tunnel === undefined ? ["sh", "-c", checkCommand] : ["sh", "-c", tunnel, "sh", tunnelled],
|
|
9246
9306
|
cwd,
|
|
9247
9307
|
env: {
|
|
9248
9308
|
...env,
|
|
@@ -9253,10 +9313,14 @@ var checkRunner = (work, sandbox, cache, inherited, threadBudget) => (checkout)
|
|
|
9253
9313
|
timeout,
|
|
9254
9314
|
...output
|
|
9255
9315
|
};
|
|
9256
|
-
return sandbox.backend === "srt" ? runSandboxCommand({
|
|
9316
|
+
return yield* sandbox.backend === "srt" ? runSandboxCommand({
|
|
9257
9317
|
backend: "srt",
|
|
9258
9318
|
policy,
|
|
9259
|
-
command: {
|
|
9319
|
+
command: {
|
|
9320
|
+
...sandboxCommand,
|
|
9321
|
+
env: { ...inherited, ...sandboxCommand.env, KITMAN_CHECK_TMPDIR: checkTmp },
|
|
9322
|
+
extendEnv: false
|
|
9323
|
+
},
|
|
9260
9324
|
unixSockets: [...route.unixSockets, ...daemon.unixSockets],
|
|
9261
9325
|
...sandbox.srtCommand === undefined ? undefined : { srtCommand: sandbox.srtCommand },
|
|
9262
9326
|
...sandbox.srtStepCommand === undefined ? undefined : { srtStepCommand: sandbox.srtStepCommand },
|
|
@@ -9268,11 +9332,11 @@ var checkRunner = (work, sandbox, cache, inherited, threadBudget) => (checkout)
|
|
|
9268
9332
|
id: work.id,
|
|
9269
9333
|
readOnlyPaths: [repositoryClone(sandbox.runner.workRoot, work.repoBinding.id)],
|
|
9270
9334
|
policy,
|
|
9271
|
-
command: sandboxCommand,
|
|
9335
|
+
command: { ...sandboxCommand, env: { ...sandboxCommand.env, TMPDIR: checkTmp } },
|
|
9272
9336
|
services: [...route.services, ...daemon.services],
|
|
9273
9337
|
...secretRegistry === undefined ? undefined : { secretRegistry }
|
|
9274
9338
|
});
|
|
9275
|
-
};
|
|
9339
|
+
}));
|
|
9276
9340
|
var regularFiles = (dir) => gen(function* () {
|
|
9277
9341
|
const fs = yield* FileSystem;
|
|
9278
9342
|
const path = yield* Path;
|
|
@@ -10147,7 +10211,7 @@ var verificationExecutor = (input) => (work) => gen(function* () {
|
|
|
10147
10211
|
const trees = headTree === baselineTree ? [headTree] : [headTree, baselineTree];
|
|
10148
10212
|
const known = yield* input.known(work, trees);
|
|
10149
10213
|
const sandbox = input.sandbox;
|
|
10150
|
-
const checkNetwork = sandbox === undefined || sandbox.backend === undefined ? "open" : checkSandboxPolicy(work, sandbox, head, cache, cache, []).network;
|
|
10214
|
+
const checkNetwork = sandbox === undefined || sandbox.backend === undefined ? "open" : checkSandboxPolicy(work, sandbox, head, cache, [cache], []).network;
|
|
10151
10215
|
const daemonNetwork = checkNetwork === "open" ? "open" : { hosts: checkNetwork.hosts };
|
|
10152
10216
|
const services = (id) => ({
|
|
10153
10217
|
id,
|
|
@@ -10268,6 +10332,7 @@ export {
|
|
|
10268
10332
|
applyAgentEnvironmentMaterialization2 as applyAgentEnvironmentMaterialization,
|
|
10269
10333
|
applyAgentEnvironmentPlans,
|
|
10270
10334
|
assertHerdrRunnerCapability2 as assertHerdrRunnerCapability,
|
|
10335
|
+
attemptTempDirectory,
|
|
10271
10336
|
carriedLoginHosts,
|
|
10272
10337
|
carriedProviderHosts,
|
|
10273
10338
|
checkDockerAlias,
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
writeSrtSettings2,
|
|
16
16
|
srtStepArgv2,
|
|
17
17
|
srtArgv2
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import"./chunk-
|
|
18
|
+
} from "./chunk-etrfc5cn.js";
|
|
19
|
+
import"./chunk-bqbfyqx6.js";
|
|
20
20
|
export {
|
|
21
21
|
compiled2 as compiled,
|
|
22
22
|
harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
|
|
@@ -96,7 +96,20 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-bqbfyqx6.js";
|
|
100
|
+
import {
|
|
101
|
+
Clock,
|
|
102
|
+
interrupt,
|
|
103
|
+
getCurrent,
|
|
104
|
+
makeUnsafe2,
|
|
105
|
+
bounded,
|
|
106
|
+
offerAll,
|
|
107
|
+
failCause,
|
|
108
|
+
end,
|
|
109
|
+
shutdownUnsafe,
|
|
110
|
+
fromQueue,
|
|
111
|
+
unwrap
|
|
112
|
+
} from "./chunk-etrfc5cn.js";
|
|
100
113
|
import {
|
|
101
114
|
empty,
|
|
102
115
|
fromInput,
|
|
@@ -110,20 +123,7 @@ import {
|
|
|
110
123
|
ParseOptions,
|
|
111
124
|
RpcClientDefect,
|
|
112
125
|
RpcClientError
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import {
|
|
115
|
-
Clock,
|
|
116
|
-
interrupt,
|
|
117
|
-
getCurrent,
|
|
118
|
-
makeUnsafe2,
|
|
119
|
-
bounded,
|
|
120
|
-
offerAll,
|
|
121
|
-
failCause,
|
|
122
|
-
end,
|
|
123
|
-
shutdownUnsafe,
|
|
124
|
-
fromQueue,
|
|
125
|
-
unwrap
|
|
126
|
-
} from "./chunk-8fyfsajs.js";
|
|
126
|
+
} from "./chunk-bhfytevh.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")) {
|
|
@@ -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-x127f2bb.js";
|
|
8
|
+
import"./chunk-pkpzf7cp.js";
|
|
9
|
+
import"./chunk-bhfytevh.js";
|
|
10
|
+
import"./chunk-ea29sbaq.js";
|
|
11
|
+
import"./chunk-etrfc5cn.js";
|
|
12
|
+
import"./chunk-bqbfyqx6.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-bqbfyqx6.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ea29sbaq.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
isJsonObject,
|
|
14
14
|
decodeJsonString,
|
|
15
15
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-bqbfyqx6.js";
|
|
17
17
|
import {
|
|
18
18
|
FileSystem,
|
|
19
19
|
Path
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-etrfc5cn.js";
|
|
21
21
|
import {
|
|
22
22
|
tomlTableHeader2,
|
|
23
23
|
tomlKeyPath2,
|
|
24
24
|
kitmanSkillEntry,
|
|
25
25
|
isPathWithin2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-71m1n92b.js";
|
|
27
27
|
import {
|
|
28
28
|
instructionsStart,
|
|
29
29
|
instructionsEnd,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
antigravityPlugins,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-bhfytevh.js";
|
|
35
|
+
import"./chunk-a2x5s9kp.js";
|
|
36
|
+
import"./chunk-6x08g7m6.js";
|
|
37
|
+
import"./chunk-ea29sbaq.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
40
40
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -6,7 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-bqbfyqx6.js";
|
|
10
|
+
import {
|
|
11
|
+
runForEach
|
|
12
|
+
} from "./chunk-etrfc5cn.js";
|
|
10
13
|
import {
|
|
11
14
|
WebSocketConstructor,
|
|
12
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -16,16 +19,13 @@ import {
|
|
|
16
19
|
RunnerReplicaRpcs,
|
|
17
20
|
RunnerRunFileRpcs,
|
|
18
21
|
ProgramRpcs
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
runForEach
|
|
22
|
-
} from "./chunk-8fyfsajs.js";
|
|
22
|
+
} from "./chunk-bhfytevh.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-pkpzf7cp.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-6x08g7m6.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-bhfytevh.js";
|
|
16
|
+
import"./chunk-etrfc5cn.js";
|
|
17
|
+
import"./chunk-bqbfyqx6.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
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-ns26fbmk.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-d4vhrja4.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-hgvft7vy.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-g7za9rja.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|