@kitman-sh/cli 0.13.8 → 0.13.10
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-cq2h8q9e.js → chunk-0nh3w4vn.js} +7 -7
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-zz589n7a.js → chunk-2dwqak36.js} +9 -9
- package/dist/{chunk-5zth85pj.js → chunk-4crf5vhd.js} +2 -2
- package/dist/{chunk-a24jc5rx.js → chunk-6n3m0t02.js} +31 -7
- package/dist/{chunk-byeasm6x.js → chunk-6x4wkf0x.js} +3 -3
- package/dist/{chunk-gr17n0z3.js → chunk-813vn8sn.js} +18 -18
- package/dist/{chunk-08dyrk6y.js → chunk-bkecckjn.js} +10 -10
- package/dist/{chunk-eg1n8wvf.js → chunk-c60xk73g.js} +21 -21
- package/dist/{chunk-h1rmw7yk.js → chunk-d4pxty7x.js} +5 -5
- package/dist/{chunk-y1krmnbv.js → chunk-ggmwpwhf.js} +2 -2
- package/dist/{chunk-7bytsxkf.js → chunk-hkg8s472.js} +9 -8
- package/dist/{chunk-ff1r9vcq.js → chunk-j34gensq.js} +1 -1
- package/dist/{chunk-gj1padza.js → chunk-jkddgvev.js} +52 -32
- package/dist/{chunk-96svx416.js → chunk-kj1zjrs9.js} +6 -6
- package/dist/{chunk-5zhh41gb.js → chunk-kk32jckf.js} +4 -4
- package/dist/{chunk-gy9rf14f.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-cbpb2rww.js → chunk-mtdz4k32.js} +10 -10
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-z68rzf0f.js → chunk-r5v7df8h.js} +61 -61
- package/dist/{chunk-vm2qy986.js → chunk-rz01craf.js} +108 -116
- package/dist/{chunk-c4ccpwjy.js → chunk-s00cj5sw.js} +4 -4
- package/dist/{chunk-0h49y8gf.js → chunk-t82w7459.js} +26 -17
- package/dist/{chunk-mtkstrh3.js → chunk-vxfajzpz.js} +14 -60
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
decodeJsonStringOption,
|
|
119
119
|
encodeJsonStringSync,
|
|
120
120
|
encodePrettyJsonString
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-zgraq2y3.js";
|
|
122
122
|
import {
|
|
123
123
|
currentTimeMillis,
|
|
124
124
|
SecureRandom,
|
|
@@ -158,8 +158,8 @@ import {
|
|
|
158
158
|
sessionForApi,
|
|
159
159
|
readAuthStore,
|
|
160
160
|
agentCredentialForApi,
|
|
161
|
+
make5,
|
|
161
162
|
make6,
|
|
162
|
-
make7,
|
|
163
163
|
Service,
|
|
164
164
|
shouldRefresh,
|
|
165
165
|
refreshSession,
|
|
@@ -170,13 +170,7 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
174
|
-
import {
|
|
175
|
-
guard,
|
|
176
|
-
Id,
|
|
177
|
-
Timestamp,
|
|
178
|
-
ActorType
|
|
179
|
-
} from "./chunk-q5w3v4k1.js";
|
|
173
|
+
} from "./chunk-rz01craf.js";
|
|
180
174
|
import {
|
|
181
175
|
join,
|
|
182
176
|
interrupt,
|
|
@@ -190,21 +184,27 @@ import {
|
|
|
190
184
|
withDefault,
|
|
191
185
|
option,
|
|
192
186
|
String2
|
|
193
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-t82w7459.js";
|
|
188
|
+
import {
|
|
189
|
+
guard,
|
|
190
|
+
Id,
|
|
191
|
+
Timestamp,
|
|
192
|
+
ActorType
|
|
193
|
+
} from "./chunk-pxvd8w2v.js";
|
|
194
194
|
import {
|
|
195
195
|
searchDocs2,
|
|
196
196
|
readDoc2
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-6n3m0t02.js";
|
|
198
198
|
import {
|
|
199
199
|
nextInt
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-24h0y27w.js";
|
|
201
201
|
import {
|
|
202
202
|
layerJson,
|
|
203
|
-
|
|
203
|
+
make3,
|
|
204
204
|
withHeaders,
|
|
205
205
|
layerProtocolSocket,
|
|
206
206
|
ConnectionHooks
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-d4pxty7x.js";
|
|
208
208
|
|
|
209
209
|
// apps/cli/src/mcp.ts
|
|
210
210
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -1956,56 +1956,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1956
1956
|
LivePresenceSubscriptionUpdate
|
|
1957
1957
|
]);
|
|
1958
1958
|
|
|
1959
|
-
class LiveRpcs extends
|
|
1959
|
+
class LiveRpcs extends make6(make5("Session", {
|
|
1960
1960
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1961
1961
|
error: LiveRpcError
|
|
1962
|
-
}),
|
|
1962
|
+
}), make5("Subscribe", {
|
|
1963
1963
|
payload: LiveSubscribeInput,
|
|
1964
1964
|
success: LiveSubscriptionMessage,
|
|
1965
1965
|
error: LiveRpcError,
|
|
1966
1966
|
stream: true
|
|
1967
|
-
}),
|
|
1967
|
+
}), make5("Replay", {
|
|
1968
1968
|
payload: LiveReplayInput,
|
|
1969
1969
|
success: ArraySchema(LiveEvent),
|
|
1970
1970
|
error: LiveRpcError
|
|
1971
|
-
}),
|
|
1971
|
+
}), make5("Ack", {
|
|
1972
1972
|
payload: LiveAckInput,
|
|
1973
1973
|
success: LiveAckResult,
|
|
1974
1974
|
error: LiveRpcError
|
|
1975
|
-
}),
|
|
1975
|
+
}), make5("SubscribeWeb", {
|
|
1976
1976
|
payload: LiveWebSubscribeInput,
|
|
1977
1977
|
success: LiveWebSubscriptionMessage,
|
|
1978
1978
|
error: LiveRpcError,
|
|
1979
1979
|
stream: true
|
|
1980
|
-
}),
|
|
1980
|
+
}), make5("SubscriptionStatus", {
|
|
1981
1981
|
payload: { subscriptionId: String4 },
|
|
1982
1982
|
success: LiveSubscriptionStatus,
|
|
1983
1983
|
error: LiveRpcError
|
|
1984
|
-
}),
|
|
1984
|
+
}), make5("ReplayWeb", {
|
|
1985
1985
|
payload: LiveWebReplayInput,
|
|
1986
1986
|
success: LiveWebReplayResult,
|
|
1987
1987
|
error: LiveRpcError
|
|
1988
|
-
}),
|
|
1988
|
+
}), make5("AckWeb", {
|
|
1989
1989
|
payload: LiveWebAckInput,
|
|
1990
1990
|
success: LiveWebAckResult,
|
|
1991
1991
|
error: LiveRpcError
|
|
1992
|
-
}),
|
|
1992
|
+
}), make5("PublishPresence", {
|
|
1993
1993
|
payload: LivePresencePublishInput,
|
|
1994
1994
|
success: LivePresenceEntry,
|
|
1995
1995
|
error: LiveRpcError
|
|
1996
|
-
}),
|
|
1996
|
+
}), make5("SubscribePresence", {
|
|
1997
1997
|
payload: LivePresenceSubscribeInput,
|
|
1998
1998
|
success: LivePresenceSubscriptionMessage,
|
|
1999
1999
|
error: LiveRpcError,
|
|
2000
2000
|
stream: true
|
|
2001
|
-
}),
|
|
2001
|
+
}), make5("ClearPresence", {
|
|
2002
2002
|
payload: { scope: optional(LiveScope) },
|
|
2003
2003
|
error: LiveRpcError
|
|
2004
|
-
}),
|
|
2004
|
+
}), make5("RecordSessionUpdate", {
|
|
2005
2005
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
2006
2006
|
success: SessionUpdate,
|
|
2007
2007
|
error: LiveRpcError
|
|
2008
|
-
}),
|
|
2008
|
+
}), make5("EndSession", {
|
|
2009
2009
|
payload: { sessionId: String4, input: SessionEnd },
|
|
2010
2010
|
success: Session,
|
|
2011
2011
|
error: LiveRpcError
|
|
@@ -2057,7 +2057,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2057
2057
|
})
|
|
2058
2058
|
});
|
|
2059
2059
|
const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2060
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2060
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2061
2061
|
let abandon = () => {};
|
|
2062
2062
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2063
2063
|
abandon = reject;
|
|
@@ -5774,7 +5774,7 @@ Write no code and no line numbers: both are out of date before the Task is built
|
|
|
5774
5774
|
|
|
5775
5775
|
## Two or more related Tasks
|
|
5776
5776
|
|
|
5777
|
-
Start the **File Tasks** Loop instead of creating related Tasks one by one. It makes a Task of each ticket and relates their blockers, so none is picked up before the Tasks it needs. In Code Mode:
|
|
5777
|
+
Start the **File Tasks** Loop instead of creating related Tasks one by one. It checks the tickets with a plan review, then makes a Task of each ticket and relates their blockers, so none is picked up before the Tasks it needs. In Code Mode:
|
|
5778
5778
|
|
|
5779
5779
|
\`\`\`js
|
|
5780
5780
|
await kitman.runs.start({
|
|
@@ -5783,14 +5783,34 @@ await kitman.runs.start({
|
|
|
5783
5783
|
loop: 'file-tasks',
|
|
5784
5784
|
input: {
|
|
5785
5785
|
tickets: [
|
|
5786
|
-
{
|
|
5787
|
-
|
|
5786
|
+
{
|
|
5787
|
+
key: 'first',
|
|
5788
|
+
title: '\u2026',
|
|
5789
|
+
body: '\u2026',
|
|
5790
|
+
promise: '\u2026',
|
|
5791
|
+
outOfScope: ['\u2026'],
|
|
5792
|
+
acceptanceCriteria: ['\u2026'],
|
|
5793
|
+
blockedBy: []
|
|
5794
|
+
},
|
|
5795
|
+
{
|
|
5796
|
+
key: 'wider',
|
|
5797
|
+
title: '\u2026',
|
|
5798
|
+
body: '\u2026',
|
|
5799
|
+
promise: '\u2026',
|
|
5800
|
+
outOfScope: ['\u2026'],
|
|
5801
|
+
acceptanceCriteria: ['\u2026'],
|
|
5802
|
+
blockedBy: ['first']
|
|
5803
|
+
}
|
|
5788
5804
|
]
|
|
5789
5805
|
}
|
|
5790
5806
|
})
|
|
5791
5807
|
\`\`\`
|
|
5792
5808
|
|
|
5793
|
-
From a terminal, pass the same Input to \`kitman run start file-tasks --input '<json>'\`. Add \`projectId\` to the Input to file them in a Project
|
|
5809
|
+
From a terminal, pass the same Input to \`kitman run start file-tasks --input '<json>'\`. Add \`projectId\` to the Input to file them in a Project, and \`repoBindingId\` when they change another repository than the Team's default: the review reads it, and each Task is filed for it. A ticket that changes another repository than that names its own \`repoBindingId\`. Each ticket needs a \`promise\` and an \`outOfScope\` list, which may be empty.
|
|
5810
|
+
|
|
5811
|
+
When the plan review has concerns, File Tasks files none of the tickets. The Run completes with an Output whose \`concerns\` each name a \`ticket\` and what is wrong with it. Revise the tickets and start File Tasks again with all of them. With no concerns, \`concerns\` is empty and \`tasks\` gives each ticket's Task.
|
|
5812
|
+
|
|
5813
|
+
In a Plan Run, write the tickets in the plan: Plan files them.
|
|
5794
5814
|
`;
|
|
5795
5815
|
|
|
5796
5816
|
// apps/mcp/src/result.ts
|
|
@@ -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-0nh3w4vn.js";
|
|
8
|
+
import"./chunk-d4pxty7x.js";
|
|
9
|
+
import"./chunk-rz01craf.js";
|
|
10
|
+
import"./chunk-pxvd8w2v.js";
|
|
11
|
+
import"./chunk-t82w7459.js";
|
|
12
|
+
import"./chunk-zgraq2y3.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-mtdz4k32.js";
|
|
11
|
+
import"./chunk-vxfajzpz.js";
|
|
12
|
+
import"./chunk-t82w7459.js";
|
|
13
|
+
import"./chunk-zgraq2y3.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-ggmwpwhf.js";
|
|
8
|
+
import"./chunk-pxvd8w2v.js";
|
|
9
|
+
import"./chunk-zgraq2y3.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
make10,
|
|
4
|
+
runForEach,
|
|
5
|
+
compiled2
|
|
6
|
+
} from "./chunk-t82w7459.js";
|
|
2
7
|
import {
|
|
3
8
|
getOrUndefined,
|
|
4
9
|
liftThrowable,
|
|
@@ -25,16 +30,11 @@ import {
|
|
|
25
30
|
isJsonObject,
|
|
26
31
|
isString2,
|
|
27
32
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
make11,
|
|
31
|
-
runForEach,
|
|
32
|
-
compiled2
|
|
33
|
-
} from "./chunk-0h49y8gf.js";
|
|
33
|
+
} from "./chunk-zgraq2y3.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make2
|
|
37
|
+
} from "./chunk-vxfajzpz.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -167,8 +167,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
167
167
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
168
168
|
const spawner = yield* ChildProcessSpawner;
|
|
169
169
|
const [command, ...args] = opencodeReaderCommand();
|
|
170
|
-
const handle = yield* spawner.spawn(
|
|
171
|
-
stdin:
|
|
170
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
171
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
172
172
|
stderr: "ignore",
|
|
173
173
|
extendEnv: false,
|
|
174
174
|
env: {},
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-zgraq2y3.js";
|
|
22
22
|
|
|
23
23
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
24
|
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isFailure2,
|
|
42
42
|
hasInterrupts,
|
|
43
43
|
makeUnsafe5,
|
|
44
|
-
|
|
44
|
+
make15,
|
|
45
45
|
_await,
|
|
46
46
|
fail5,
|
|
47
47
|
isDoneUnsafe,
|
|
@@ -168,12 +168,53 @@ import {
|
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync,
|
|
170
170
|
storable
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-zgraq2y3.js";
|
|
172
|
+
import {
|
|
173
|
+
join,
|
|
174
|
+
interrupt,
|
|
175
|
+
unbounded,
|
|
176
|
+
publishUnsafe,
|
|
177
|
+
unbounded2,
|
|
178
|
+
offer,
|
|
179
|
+
makeUnsafe3,
|
|
180
|
+
make10,
|
|
181
|
+
fromQueue,
|
|
182
|
+
fromPubSub,
|
|
183
|
+
map2,
|
|
184
|
+
filter,
|
|
185
|
+
decodeText,
|
|
186
|
+
encodeText,
|
|
187
|
+
splitLines,
|
|
188
|
+
run,
|
|
189
|
+
runHead,
|
|
190
|
+
runForEach,
|
|
191
|
+
FileSystem,
|
|
192
|
+
Path,
|
|
193
|
+
embeddedFile,
|
|
194
|
+
extractEmbeddedFile,
|
|
195
|
+
optionalEnv,
|
|
196
|
+
operatorConfigHome,
|
|
197
|
+
tempDirectoryScoped,
|
|
198
|
+
harnessesUnsupportedInSrt2,
|
|
199
|
+
compiled2,
|
|
200
|
+
pinnedSrtCommand2,
|
|
201
|
+
pinnedSrtStepCommand2,
|
|
202
|
+
runSrtCli2,
|
|
203
|
+
kitmanCacheDirectory2,
|
|
204
|
+
srtSettings2,
|
|
205
|
+
srtCacheEnvironment2,
|
|
206
|
+
srtInheritedEnv2,
|
|
207
|
+
inheritedEnvironment2,
|
|
208
|
+
withOnlyEnvironment2,
|
|
209
|
+
writeSrtSettings2,
|
|
210
|
+
srtStepArgv2,
|
|
211
|
+
srtArgv2
|
|
212
|
+
} from "./chunk-t82w7459.js";
|
|
172
213
|
import {
|
|
173
214
|
Id,
|
|
174
215
|
secretReference,
|
|
175
216
|
secretPlaceholder
|
|
176
|
-
} from "./chunk-
|
|
217
|
+
} from "./chunk-pxvd8w2v.js";
|
|
177
218
|
import {
|
|
178
219
|
currentTimeMillis,
|
|
179
220
|
SecureRandom,
|
|
@@ -247,48 +288,7 @@ import {
|
|
|
247
288
|
installCommand,
|
|
248
289
|
checkServicesFile,
|
|
249
290
|
checkServices
|
|
250
|
-
} from "./chunk-
|
|
251
|
-
import {
|
|
252
|
-
join,
|
|
253
|
-
interrupt,
|
|
254
|
-
unbounded,
|
|
255
|
-
publishUnsafe,
|
|
256
|
-
unbounded2,
|
|
257
|
-
offer,
|
|
258
|
-
makeUnsafe3,
|
|
259
|
-
make11,
|
|
260
|
-
fromQueue,
|
|
261
|
-
fromPubSub,
|
|
262
|
-
map2,
|
|
263
|
-
filter,
|
|
264
|
-
decodeText,
|
|
265
|
-
encodeText,
|
|
266
|
-
splitLines,
|
|
267
|
-
run,
|
|
268
|
-
runHead,
|
|
269
|
-
runForEach,
|
|
270
|
-
FileSystem,
|
|
271
|
-
Path,
|
|
272
|
-
embeddedFile,
|
|
273
|
-
extractEmbeddedFile,
|
|
274
|
-
optionalEnv,
|
|
275
|
-
operatorConfigHome,
|
|
276
|
-
tempDirectoryScoped,
|
|
277
|
-
harnessesUnsupportedInSrt2,
|
|
278
|
-
compiled2,
|
|
279
|
-
pinnedSrtCommand2,
|
|
280
|
-
pinnedSrtStepCommand2,
|
|
281
|
-
runSrtCli2,
|
|
282
|
-
kitmanCacheDirectory2,
|
|
283
|
-
srtSettings2,
|
|
284
|
-
srtCacheEnvironment2,
|
|
285
|
-
srtInheritedEnv2,
|
|
286
|
-
inheritedEnvironment2,
|
|
287
|
-
withOnlyEnvironment2,
|
|
288
|
-
writeSrtSettings2,
|
|
289
|
-
srtStepArgv2,
|
|
290
|
-
srtArgv2
|
|
291
|
-
} from "./chunk-0h49y8gf.js";
|
|
291
|
+
} from "./chunk-rz01craf.js";
|
|
292
292
|
import {
|
|
293
293
|
writeAgentEnvironmentConfigFile2,
|
|
294
294
|
readManifestSkillPaths2,
|
|
@@ -304,8 +304,8 @@ import {
|
|
|
304
304
|
applyAgentEnvironmentMaterialization2,
|
|
305
305
|
isPathWithin2,
|
|
306
306
|
skillIdentity2
|
|
307
|
-
} from "./chunk-
|
|
308
|
-
import"./chunk-
|
|
307
|
+
} from "./chunk-2dwqak36.js";
|
|
308
|
+
import"./chunk-6x4wkf0x.js";
|
|
309
309
|
import {
|
|
310
310
|
egressAllowed,
|
|
311
311
|
writeSecretRegistry,
|
|
@@ -315,7 +315,7 @@ import {
|
|
|
315
315
|
secretFilter2,
|
|
316
316
|
opaqueTunnelRefusal2,
|
|
317
317
|
isOpaqueConnectReason2
|
|
318
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-ggmwpwhf.js";
|
|
319
319
|
import {
|
|
320
320
|
sliceBytes2,
|
|
321
321
|
maxLineBytes2,
|
|
@@ -323,23 +323,23 @@ import {
|
|
|
323
323
|
decodedOption2,
|
|
324
324
|
decoded2,
|
|
325
325
|
readOpencode2
|
|
326
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-mtdz4k32.js";
|
|
327
327
|
import {
|
|
328
328
|
uploadRunFile,
|
|
329
329
|
programLease,
|
|
330
330
|
rpcRunFiles,
|
|
331
331
|
programHostsEnv,
|
|
332
332
|
undeclaredHostsEnv
|
|
333
|
-
} from "./chunk-
|
|
334
|
-
import"./chunk-
|
|
333
|
+
} from "./chunk-hkg8s472.js";
|
|
334
|
+
import"./chunk-0nh3w4vn.js";
|
|
335
335
|
import {
|
|
336
336
|
nextInt
|
|
337
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-24h0y27w.js";
|
|
338
338
|
import {
|
|
339
339
|
ChildProcessSpawner,
|
|
340
|
-
|
|
341
|
-
} from "./chunk-
|
|
342
|
-
import"./chunk-
|
|
340
|
+
make2
|
|
341
|
+
} from "./chunk-vxfajzpz.js";
|
|
342
|
+
import"./chunk-d4pxty7x.js";
|
|
343
343
|
|
|
344
344
|
// packages/core/src/sync-kit.ts
|
|
345
345
|
import { createHash } from "crypto";
|
|
@@ -7037,7 +7037,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7037
7037
|
const input = yield* unbounded2();
|
|
7038
7038
|
const pending = new Map;
|
|
7039
7039
|
let lastId = 0;
|
|
7040
|
-
const handle = yield* spawner.spawn(
|
|
7040
|
+
const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
|
|
7041
7041
|
cwd: env.home,
|
|
7042
7042
|
extendEnv: true,
|
|
7043
7043
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -7060,7 +7060,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7060
7060
|
return {
|
|
7061
7061
|
request: (method, params) => gen(function* () {
|
|
7062
7062
|
const id = ++lastId;
|
|
7063
|
-
const deferred = yield*
|
|
7063
|
+
const deferred = yield* make15();
|
|
7064
7064
|
pending.set(id, deferred);
|
|
7065
7065
|
yield* send({ id, method, params });
|
|
7066
7066
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7200,10 +7200,10 @@ var handshake = [
|
|
|
7200
7200
|
`).join("");
|
|
7201
7201
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
7202
7202
|
const spawner = yield* ChildProcessSpawner;
|
|
7203
|
-
const server = yield* spawner.spawn(
|
|
7203
|
+
const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
|
|
7204
7204
|
extendEnv: true,
|
|
7205
7205
|
env: mcp.env,
|
|
7206
|
-
stdin: { stream:
|
|
7206
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7207
7207
|
stderr: "ignore"
|
|
7208
7208
|
}));
|
|
7209
7209
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7276,8 +7276,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7276
7276
|
};
|
|
7277
7277
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7278
7278
|
const spawner = yield* ChildProcessSpawner;
|
|
7279
|
-
const handle = yield* spawner.spawn(
|
|
7280
|
-
stdin:
|
|
7279
|
+
const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
|
|
7280
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
7281
7281
|
stdout: "inherit",
|
|
7282
7282
|
stderr: "inherit",
|
|
7283
7283
|
extendEnv: false,
|