@kitman-sh/cli 0.12.6 → 0.12.7
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-y7vjk8vv.js → chunk-0h49y8gf.js} +165 -31
- package/dist/{chunk-7ncc3m3n.js → chunk-4gy4ty6k.js} +4 -4
- package/dist/{chunk-gezjwdpw.js → chunk-4w0c1ykv.js} +126 -117
- package/dist/{chunk-8sz25ptv.js → chunk-5zhh41gb.js} +4 -4
- package/dist/{chunk-e711ebdj.js → chunk-5zth85pj.js} +2 -2
- package/dist/{chunk-gtsq369x.js → chunk-7afnkx5b.js} +7 -7
- package/dist/{chunk-k3ak93p1.js → chunk-7dahw7e2.js} +1 -1
- package/dist/{chunk-jk5fp5cy.js → chunk-8b8pw0md.js} +23 -23
- package/dist/{chunk-7tnm4jef.js → chunk-azfjx5d8.js} +3 -3
- package/dist/{chunk-rvpfyjtv.js → chunk-b9rbh1va.js} +1 -1
- package/dist/{chunk-vkchn89k.js → chunk-cbpb2rww.js} +7 -7
- package/dist/{chunk-23245qh7.js → chunk-fr79hgq2.js} +5 -5
- package/dist/{chunk-dcnn882c.js → chunk-fyvtc3xv.js} +20 -20
- package/dist/{chunk-mm2m3bys.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-wberffvr.js → chunk-gwnyxm1r.js} +24 -24
- package/dist/{chunk-n17dr5c1.js → chunk-gxbcvd4q.js} +4 -4
- package/dist/{chunk-bz4bp0q7.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-x5t0c4g4.js → chunk-jn7w2ntt.js} +4 -4
- package/dist/{chunk-892qrkb3.js → chunk-mtkstrh3.js} +60 -14
- package/dist/{chunk-8djn7v2p.js → chunk-p7hxrkmf.js} +23 -23
- package/dist/{chunk-s8m2tzdr.js → chunk-q5w3v4k1.js} +1 -1
- package/dist/{chunk-fen5480a.js → chunk-vkg40ysx.js} +7 -7
- package/dist/{chunk-skqn4h13.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-v4wn0tz8.js → chunk-ywzxwgrz.js} +6 -6
- package/dist/{chunk-x3cc7dfc.js → chunk-zw3gf6r5.js} +40 -226
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -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-cbpb2rww.js";
|
|
11
|
+
import"./chunk-mtkstrh3.js";
|
|
12
|
+
import"./chunk-0h49y8gf.js";
|
|
13
|
+
import"./chunk-zw3gf6r5.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-0h49y8gf.js";
|
|
18
|
+
import"./chunk-zw3gf6r5.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-zw3gf6r5.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-0h49y8gf.js";
|
|
13
13
|
import {
|
|
14
14
|
WebSocketConstructor,
|
|
15
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-4w0c1ykv.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-fr79hgq2.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
46
46
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
47
47
|
var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
48
48
|
const protocol = yield* build(options.protocol);
|
|
49
|
-
const client = yield*
|
|
49
|
+
const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
|
|
50
50
|
const authorized = authorizer(options);
|
|
51
51
|
return {
|
|
52
52
|
claim: (input) => authorized(client.Claim(input)),
|
|
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
|
74
74
|
});
|
|
75
75
|
var makeProgramRpcClient2 = (options) => gen(function* () {
|
|
76
76
|
const protocol = yield* build(options.protocol);
|
|
77
|
-
const client = yield*
|
|
77
|
+
const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
decodeJsonStringOption,
|
|
119
119
|
encodeJsonStringSync,
|
|
120
120
|
encodePrettyJsonString
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-zw3gf6r5.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,
|
|
162
161
|
make6,
|
|
162
|
+
make7,
|
|
163
163
|
Service,
|
|
164
164
|
shouldRefresh,
|
|
165
165
|
refreshSession,
|
|
@@ -170,13 +170,13 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-4w0c1ykv.js";
|
|
174
174
|
import {
|
|
175
175
|
guard,
|
|
176
176
|
Id,
|
|
177
177
|
Timestamp,
|
|
178
178
|
ActorType
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-q5w3v4k1.js";
|
|
180
180
|
import {
|
|
181
181
|
join,
|
|
182
182
|
interrupt,
|
|
@@ -190,21 +190,21 @@ import {
|
|
|
190
190
|
withDefault,
|
|
191
191
|
option,
|
|
192
192
|
String2
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-0h49y8gf.js";
|
|
194
194
|
import {
|
|
195
195
|
searchDocs2,
|
|
196
196
|
readDoc2
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-b9rbh1va.js";
|
|
198
198
|
import {
|
|
199
199
|
nextInt
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-gq7y5v3e.js";
|
|
201
201
|
import {
|
|
202
202
|
layerJson,
|
|
203
|
-
|
|
203
|
+
make4,
|
|
204
204
|
withHeaders,
|
|
205
205
|
layerProtocolSocket,
|
|
206
206
|
ConnectionHooks
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-fr79hgq2.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 make6(
|
|
1959
|
+
class LiveRpcs extends make7(make6("Session", {
|
|
1960
1960
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1961
1961
|
error: LiveRpcError
|
|
1962
|
-
}),
|
|
1962
|
+
}), make6("Subscribe", {
|
|
1963
1963
|
payload: LiveSubscribeInput,
|
|
1964
1964
|
success: LiveSubscriptionMessage,
|
|
1965
1965
|
error: LiveRpcError,
|
|
1966
1966
|
stream: true
|
|
1967
|
-
}),
|
|
1967
|
+
}), make6("Replay", {
|
|
1968
1968
|
payload: LiveReplayInput,
|
|
1969
1969
|
success: ArraySchema(LiveEvent),
|
|
1970
1970
|
error: LiveRpcError
|
|
1971
|
-
}),
|
|
1971
|
+
}), make6("Ack", {
|
|
1972
1972
|
payload: LiveAckInput,
|
|
1973
1973
|
success: LiveAckResult,
|
|
1974
1974
|
error: LiveRpcError
|
|
1975
|
-
}),
|
|
1975
|
+
}), make6("SubscribeWeb", {
|
|
1976
1976
|
payload: LiveWebSubscribeInput,
|
|
1977
1977
|
success: LiveWebSubscriptionMessage,
|
|
1978
1978
|
error: LiveRpcError,
|
|
1979
1979
|
stream: true
|
|
1980
|
-
}),
|
|
1980
|
+
}), make6("SubscriptionStatus", {
|
|
1981
1981
|
payload: { subscriptionId: String4 },
|
|
1982
1982
|
success: LiveSubscriptionStatus,
|
|
1983
1983
|
error: LiveRpcError
|
|
1984
|
-
}),
|
|
1984
|
+
}), make6("ReplayWeb", {
|
|
1985
1985
|
payload: LiveWebReplayInput,
|
|
1986
1986
|
success: LiveWebReplayResult,
|
|
1987
1987
|
error: LiveRpcError
|
|
1988
|
-
}),
|
|
1988
|
+
}), make6("AckWeb", {
|
|
1989
1989
|
payload: LiveWebAckInput,
|
|
1990
1990
|
success: LiveWebAckResult,
|
|
1991
1991
|
error: LiveRpcError
|
|
1992
|
-
}),
|
|
1992
|
+
}), make6("PublishPresence", {
|
|
1993
1993
|
payload: LivePresencePublishInput,
|
|
1994
1994
|
success: LivePresenceEntry,
|
|
1995
1995
|
error: LiveRpcError
|
|
1996
|
-
}),
|
|
1996
|
+
}), make6("SubscribePresence", {
|
|
1997
1997
|
payload: LivePresenceSubscribeInput,
|
|
1998
1998
|
success: LivePresenceSubscriptionMessage,
|
|
1999
1999
|
error: LiveRpcError,
|
|
2000
2000
|
stream: true
|
|
2001
|
-
}),
|
|
2001
|
+
}), make6("ClearPresence", {
|
|
2002
2002
|
payload: { scope: optional(LiveScope) },
|
|
2003
2003
|
error: LiveRpcError
|
|
2004
|
-
}),
|
|
2004
|
+
}), make6("RecordSessionUpdate", {
|
|
2005
2005
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
2006
2006
|
success: SessionUpdate,
|
|
2007
2007
|
error: LiveRpcError
|
|
2008
|
-
}),
|
|
2008
|
+
}), make6("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) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2061
2061
|
let abandon = () => {};
|
|
2062
2062
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2063
2063
|
abandon = reject;
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-zw3gf6r5.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-0h49y8gf.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-4w0c1ykv.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -1481,7 +1481,7 @@ var pathOfLink = (link) => {
|
|
|
1481
1481
|
return page === null ? link : page[1] || "index";
|
|
1482
1482
|
};
|
|
1483
1483
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1484
|
-
var pinnedLink2 = (link, version = "0.12.
|
|
1484
|
+
var pinnedLink2 = (link, version = "0.12.7") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1485
1485
|
var pageOf = (path) => path.split("#")[0];
|
|
1486
1486
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1487
1487
|
function excerpt(text, queryTerms) {
|
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
isJsonObject,
|
|
26
26
|
isString2,
|
|
27
27
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zw3gf6r5.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
30
|
+
make11,
|
|
31
31
|
runForEach,
|
|
32
32
|
compiled2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-0h49y8gf.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make3
|
|
37
|
+
} from "./chunk-mtkstrh3.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(make3(command, args, {
|
|
171
|
+
stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
172
172
|
stderr: "ignore",
|
|
173
173
|
extendEnv: false,
|
|
174
174
|
env: {},
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-zw3gf6r5.js";
|
|
100
100
|
import {
|
|
101
101
|
interrupt,
|
|
102
102
|
getCurrent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-0h49y8gf.js";
|
|
112
112
|
import {
|
|
113
113
|
Clock,
|
|
114
114
|
empty,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-4w0c1ykv.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")) {
|
|
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
485
|
var clientIdCounter = 0;
|
|
486
|
-
var
|
|
486
|
+
var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
487
487
|
const clientId = clientIdCounter++;
|
|
488
488
|
const {
|
|
489
489
|
codecFor,
|
|
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
|
|
|
829
829
|
class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
export { layerJson,
|
|
832
|
+
export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -32,8 +32,16 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-zw3gf6r5.js";
|
|
36
|
+
import"./chunk-q5w3v4k1.js";
|
|
37
|
+
import {
|
|
38
|
+
decodeText,
|
|
39
|
+
mkString,
|
|
40
|
+
FileSystem,
|
|
41
|
+
Path,
|
|
42
|
+
withDefault,
|
|
43
|
+
String2
|
|
44
|
+
} from "./chunk-0h49y8gf.js";
|
|
37
45
|
import {
|
|
38
46
|
SecureRandom,
|
|
39
47
|
layerWebCrypto,
|
|
@@ -45,31 +53,23 @@ import {
|
|
|
45
53
|
layer4,
|
|
46
54
|
kitmanMcpServer,
|
|
47
55
|
RunnerRpcProtocolVersion
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import {
|
|
50
|
-
decodeText,
|
|
51
|
-
mkString,
|
|
52
|
-
FileSystem,
|
|
53
|
-
Path,
|
|
54
|
-
withDefault,
|
|
55
|
-
String2
|
|
56
|
-
} from "./chunk-y7vjk8vv.js";
|
|
56
|
+
} from "./chunk-4w0c1ykv.js";
|
|
57
57
|
import {
|
|
58
58
|
Packument,
|
|
59
59
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import
|
|
62
|
-
ChildProcessSpawner,
|
|
63
|
-
make2
|
|
64
|
-
} from "./chunk-892qrkb3.js";
|
|
65
|
-
import"./chunk-gtsq369x.js";
|
|
60
|
+
} from "./chunk-azfjx5d8.js";
|
|
61
|
+
import"./chunk-7afnkx5b.js";
|
|
66
62
|
import {
|
|
67
63
|
AgentDeclaration,
|
|
68
64
|
KitDeclarations,
|
|
69
65
|
describeFlag,
|
|
70
66
|
Described
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import
|
|
67
|
+
} from "./chunk-4gy4ty6k.js";
|
|
68
|
+
import {
|
|
69
|
+
ChildProcessSpawner,
|
|
70
|
+
make3
|
|
71
|
+
} from "./chunk-mtkstrh3.js";
|
|
72
|
+
import"./chunk-fr79hgq2.js";
|
|
73
73
|
|
|
74
74
|
// packages/sdk/src/build/index.ts
|
|
75
75
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
108
108
|
}));
|
|
109
109
|
var run = (command, args, cwd) => gen(function* () {
|
|
110
110
|
const spawner = yield* ChildProcessSpawner;
|
|
111
|
-
const handle = yield* spawner.spawn(
|
|
111
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
112
112
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
113
113
|
mkString(decodeText(handle.stdout)),
|
|
114
114
|
mkString(decodeText(handle.stderr)),
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isFailure2,
|
|
42
42
|
hasInterrupts,
|
|
43
43
|
makeUnsafe5,
|
|
44
|
-
|
|
44
|
+
make16,
|
|
45
45
|
_await,
|
|
46
46
|
fail5,
|
|
47
47
|
isDoneUnsafe,
|
|
@@ -168,12 +168,12 @@ import {
|
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync,
|
|
170
170
|
storable
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-zw3gf6r5.js";
|
|
172
172
|
import {
|
|
173
173
|
Id,
|
|
174
174
|
secretReference,
|
|
175
175
|
secretPlaceholder
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-q5w3v4k1.js";
|
|
177
177
|
import {
|
|
178
178
|
currentTimeMillis,
|
|
179
179
|
SecureRandom,
|
|
@@ -247,7 +247,7 @@ import {
|
|
|
247
247
|
installCommand,
|
|
248
248
|
checkServicesFile,
|
|
249
249
|
checkServices
|
|
250
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-4w0c1ykv.js";
|
|
251
251
|
import {
|
|
252
252
|
join,
|
|
253
253
|
interrupt,
|
|
@@ -256,7 +256,7 @@ import {
|
|
|
256
256
|
unbounded2,
|
|
257
257
|
offer,
|
|
258
258
|
makeUnsafe3,
|
|
259
|
-
|
|
259
|
+
make11,
|
|
260
260
|
fromQueue,
|
|
261
261
|
fromPubSub,
|
|
262
262
|
map2,
|
|
@@ -288,7 +288,7 @@ import {
|
|
|
288
288
|
writeSrtSettings2,
|
|
289
289
|
srtStepArgv2,
|
|
290
290
|
srtArgv2
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-0h49y8gf.js";
|
|
292
292
|
import {
|
|
293
293
|
writeAgentEnvironmentConfigFile2,
|
|
294
294
|
readManifestSkillPaths2,
|
|
@@ -304,12 +304,8 @@ import {
|
|
|
304
304
|
applyAgentEnvironmentMaterialization2,
|
|
305
305
|
isPathWithin2,
|
|
306
306
|
skillIdentity2
|
|
307
|
-
} from "./chunk-
|
|
308
|
-
import"./chunk-
|
|
309
|
-
import {
|
|
310
|
-
ChildProcessSpawner,
|
|
311
|
-
make2
|
|
312
|
-
} from "./chunk-892qrkb3.js";
|
|
307
|
+
} from "./chunk-jn7w2ntt.js";
|
|
308
|
+
import"./chunk-azfjx5d8.js";
|
|
313
309
|
import {
|
|
314
310
|
egressAllowed,
|
|
315
311
|
writeSecretRegistry,
|
|
@@ -319,7 +315,7 @@ import {
|
|
|
319
315
|
secretFilter2,
|
|
320
316
|
opaqueTunnelRefusal2,
|
|
321
317
|
isOpaqueConnectReason2
|
|
322
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-y1krmnbv.js";
|
|
323
319
|
import {
|
|
324
320
|
sliceBytes2,
|
|
325
321
|
maxLineBytes2,
|
|
@@ -327,19 +323,23 @@ import {
|
|
|
327
323
|
decodedOption2,
|
|
328
324
|
decoded2,
|
|
329
325
|
readOpencode2
|
|
330
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-cbpb2rww.js";
|
|
331
327
|
import {
|
|
332
328
|
uploadRunFile,
|
|
333
329
|
programLease,
|
|
334
330
|
rpcRunFiles,
|
|
335
331
|
programHostsEnv,
|
|
336
332
|
undeclaredHostsEnv
|
|
337
|
-
} from "./chunk-
|
|
338
|
-
import"./chunk-
|
|
333
|
+
} from "./chunk-4gy4ty6k.js";
|
|
334
|
+
import"./chunk-7afnkx5b.js";
|
|
339
335
|
import {
|
|
340
336
|
nextInt
|
|
341
|
-
} from "./chunk-
|
|
342
|
-
import
|
|
337
|
+
} from "./chunk-gq7y5v3e.js";
|
|
338
|
+
import {
|
|
339
|
+
ChildProcessSpawner,
|
|
340
|
+
make3
|
|
341
|
+
} from "./chunk-mtkstrh3.js";
|
|
342
|
+
import"./chunk-fr79hgq2.js";
|
|
343
343
|
|
|
344
344
|
// packages/core/src/sync-kit.ts
|
|
345
345
|
import { createHash } from "crypto";
|
|
@@ -7038,7 +7038,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7038
7038
|
const input = yield* unbounded2();
|
|
7039
7039
|
const pending = new Map;
|
|
7040
7040
|
let lastId = 0;
|
|
7041
|
-
const handle = yield* spawner.spawn(
|
|
7041
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
7042
7042
|
cwd: env.home,
|
|
7043
7043
|
extendEnv: true,
|
|
7044
7044
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -7061,7 +7061,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7061
7061
|
return {
|
|
7062
7062
|
request: (method, params) => gen(function* () {
|
|
7063
7063
|
const id = ++lastId;
|
|
7064
|
-
const deferred = yield*
|
|
7064
|
+
const deferred = yield* make16();
|
|
7065
7065
|
pending.set(id, deferred);
|
|
7066
7066
|
yield* send({ id, method, params });
|
|
7067
7067
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7201,10 +7201,10 @@ var handshake = [
|
|
|
7201
7201
|
`).join("");
|
|
7202
7202
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
7203
7203
|
const spawner = yield* ChildProcessSpawner;
|
|
7204
|
-
const server = yield* spawner.spawn(
|
|
7204
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
7205
7205
|
extendEnv: true,
|
|
7206
7206
|
env: mcp.env,
|
|
7207
|
-
stdin: { stream:
|
|
7207
|
+
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7208
7208
|
stderr: "ignore"
|
|
7209
7209
|
}));
|
|
7210
7210
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7277,8 +7277,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7277
7277
|
};
|
|
7278
7278
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7279
7279
|
const spawner = yield* ChildProcessSpawner;
|
|
7280
|
-
const handle = yield* spawner.spawn(
|
|
7281
|
-
stdin:
|
|
7280
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7281
|
+
stdin: make11(new TextEncoder().encode(stdin)),
|
|
7282
7282
|
stdout: "inherit",
|
|
7283
7283
|
stderr: "inherit",
|
|
7284
7284
|
extendEnv: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-mtkstrh3.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-4w0c1ykv.js";
|
|
16
|
+
import"./chunk-0h49y8gf.js";
|
|
17
|
+
import"./chunk-zw3gf6r5.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -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-y1krmnbv.js";
|
|
8
|
+
import"./chunk-q5w3v4k1.js";
|
|
9
|
+
import"./chunk-zw3gf6r5.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zw3gf6r5.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-0h49y8gf.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-4w0c1ykv.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-azfjx5d8.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|