@kitman-sh/cli 0.12.0-rc.4 → 0.12.0-rc.5
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-t2mr6z38.js → chunk-26mj3vr6.js} +37 -37
- package/dist/{chunk-b50dvx41.js → chunk-2s4x5t92.js} +5 -5
- package/dist/{chunk-74txrt4s.js → chunk-31hk2bjb.js} +4 -4
- package/dist/{chunk-k81ay8y5.js → chunk-3530xts6.js} +10 -10
- package/dist/{chunk-zmcghp8w.js → chunk-5zzfsv07.js} +43 -183
- package/dist/{chunk-ezf2myj0.js → chunk-6x9e1etb.js} +3 -3
- package/dist/{chunk-r1z41qx6.js → chunk-77k89h98.js} +329 -181
- package/dist/{chunk-ydydx55z.js → chunk-bbadvwds.js} +1 -1
- package/dist/{chunk-bq55md8p.js → chunk-bj73db3f.js} +1 -1
- package/dist/{chunk-6b0k02x4.js → chunk-bv9e34qz.js} +1 -1
- package/dist/{chunk-xavcp9se.js → chunk-cegdw7gw.js} +2 -2
- package/dist/{chunk-nzsrse8d.js → chunk-dd8hae73.js} +61 -60
- package/dist/{chunk-kybp1mkk.js → chunk-e838cw9z.js} +11 -11
- package/dist/{chunk-w0aj9mkz.js → chunk-gr816kwr.js} +10 -10
- package/dist/{chunk-ckkpqcfv.js → chunk-hrds2xy2.js} +7 -7
- package/dist/{chunk-e7q2frvs.js → chunk-k9jd2dm0.js} +7 -7
- package/dist/{chunk-w6cm939j.js → chunk-kvm7j3ed.js} +19 -19
- package/dist/{chunk-7kjsvwzv.js → chunk-nc1rxeav.js} +8 -8
- package/dist/{chunk-pw10mq9e.js → chunk-rjdptgqf.js} +4 -4
- package/dist/{chunk-aafxvmj1.js → chunk-s1pjsak4.js} +7 -7
- package/dist/{chunk-xy5f2nv9.js → chunk-s661f8p0.js} +2 -2
- package/dist/{chunk-79gx7ek9.js → chunk-txyp31q5.js} +59 -101
- package/dist/{chunk-qjd6w9sw.js → chunk-x70r99jg.js} +2 -2
- package/dist/{chunk-c9007k48.js → chunk-xmq9zpr1.js} +1 -1
- package/dist/{chunk-jntxtx9j.js → chunk-y2mkzww9.js} +60 -14
- package/dist/{chunk-rjasmnav.js → chunk-yafg281p.js} +39 -26
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
decodeJsonStringOption,
|
|
108
108
|
encodeJsonStringSync,
|
|
109
109
|
encodePrettyJsonString
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-txyp31q5.js";
|
|
111
111
|
import {
|
|
112
112
|
currentTimeMillis,
|
|
113
113
|
SecureRandom,
|
|
@@ -147,8 +147,8 @@ import {
|
|
|
147
147
|
sessionForApi,
|
|
148
148
|
readAuthStore,
|
|
149
149
|
agentCredentialForApi,
|
|
150
|
-
make5,
|
|
151
150
|
make6,
|
|
151
|
+
make7,
|
|
152
152
|
Service,
|
|
153
153
|
shouldRefresh,
|
|
154
154
|
refreshSession,
|
|
@@ -159,13 +159,27 @@ import {
|
|
|
159
159
|
runMcpEffect,
|
|
160
160
|
createAgentAuthSignedFetch,
|
|
161
161
|
setupMcpAgentCredential
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-77k89h98.js";
|
|
163
|
+
import {
|
|
164
|
+
join,
|
|
165
|
+
interrupt,
|
|
166
|
+
runForEach,
|
|
167
|
+
FileSystem,
|
|
168
|
+
Path,
|
|
169
|
+
embeddedFile,
|
|
170
|
+
extractEmbeddedFile,
|
|
171
|
+
map3,
|
|
172
|
+
all,
|
|
173
|
+
withDefault,
|
|
174
|
+
option,
|
|
175
|
+
String2
|
|
176
|
+
} from "./chunk-5zzfsv07.js";
|
|
163
177
|
import {
|
|
164
178
|
guard,
|
|
165
179
|
Id,
|
|
166
180
|
Timestamp,
|
|
167
181
|
ActorType
|
|
168
|
-
} from "./chunk-
|
|
182
|
+
} from "./chunk-bv9e34qz.js";
|
|
169
183
|
import {
|
|
170
184
|
toJsonValue,
|
|
171
185
|
isOneOf,
|
|
@@ -178,35 +192,21 @@ import {
|
|
|
178
192
|
isJsonObject,
|
|
179
193
|
isString,
|
|
180
194
|
kindOf
|
|
181
|
-
} from "./chunk-
|
|
182
|
-
import {
|
|
183
|
-
join,
|
|
184
|
-
interrupt,
|
|
185
|
-
runForEach,
|
|
186
|
-
FileSystem,
|
|
187
|
-
Path,
|
|
188
|
-
embeddedFile,
|
|
189
|
-
extractEmbeddedFile,
|
|
190
|
-
map3,
|
|
191
|
-
all,
|
|
192
|
-
withDefault,
|
|
193
|
-
option,
|
|
194
|
-
String2
|
|
195
|
-
} from "./chunk-zmcghp8w.js";
|
|
195
|
+
} from "./chunk-xmq9zpr1.js";
|
|
196
196
|
import {
|
|
197
197
|
searchDocs2,
|
|
198
198
|
readDoc2
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-x70r99jg.js";
|
|
200
200
|
import {
|
|
201
201
|
nextInt
|
|
202
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-bj73db3f.js";
|
|
203
203
|
import {
|
|
204
204
|
layerJson,
|
|
205
|
-
|
|
205
|
+
make4,
|
|
206
206
|
withHeaders,
|
|
207
207
|
layerProtocolSocket,
|
|
208
208
|
ConnectionHooks
|
|
209
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-nc1rxeav.js";
|
|
210
210
|
|
|
211
211
|
// apps/cli/src/mcp.ts
|
|
212
212
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -1958,56 +1958,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1958
1958
|
LivePresenceSubscriptionUpdate
|
|
1959
1959
|
]);
|
|
1960
1960
|
|
|
1961
|
-
class LiveRpcs extends make6(
|
|
1961
|
+
class LiveRpcs extends make7(make6("Session", {
|
|
1962
1962
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1963
1963
|
error: LiveRpcError
|
|
1964
|
-
}),
|
|
1964
|
+
}), make6("Subscribe", {
|
|
1965
1965
|
payload: LiveSubscribeInput,
|
|
1966
1966
|
success: LiveSubscriptionMessage,
|
|
1967
1967
|
error: LiveRpcError,
|
|
1968
1968
|
stream: true
|
|
1969
|
-
}),
|
|
1969
|
+
}), make6("Replay", {
|
|
1970
1970
|
payload: LiveReplayInput,
|
|
1971
1971
|
success: ArraySchema(LiveEvent),
|
|
1972
1972
|
error: LiveRpcError
|
|
1973
|
-
}),
|
|
1973
|
+
}), make6("Ack", {
|
|
1974
1974
|
payload: LiveAckInput,
|
|
1975
1975
|
success: LiveAckResult,
|
|
1976
1976
|
error: LiveRpcError
|
|
1977
|
-
}),
|
|
1977
|
+
}), make6("SubscribeWeb", {
|
|
1978
1978
|
payload: LiveWebSubscribeInput,
|
|
1979
1979
|
success: LiveWebSubscriptionMessage,
|
|
1980
1980
|
error: LiveRpcError,
|
|
1981
1981
|
stream: true
|
|
1982
|
-
}),
|
|
1982
|
+
}), make6("SubscriptionStatus", {
|
|
1983
1983
|
payload: { subscriptionId: String4 },
|
|
1984
1984
|
success: LiveSubscriptionStatus,
|
|
1985
1985
|
error: LiveRpcError
|
|
1986
|
-
}),
|
|
1986
|
+
}), make6("ReplayWeb", {
|
|
1987
1987
|
payload: LiveWebReplayInput,
|
|
1988
1988
|
success: LiveWebReplayResult,
|
|
1989
1989
|
error: LiveRpcError
|
|
1990
|
-
}),
|
|
1990
|
+
}), make6("AckWeb", {
|
|
1991
1991
|
payload: LiveWebAckInput,
|
|
1992
1992
|
success: LiveWebAckResult,
|
|
1993
1993
|
error: LiveRpcError
|
|
1994
|
-
}),
|
|
1994
|
+
}), make6("PublishPresence", {
|
|
1995
1995
|
payload: LivePresencePublishInput,
|
|
1996
1996
|
success: LivePresenceEntry,
|
|
1997
1997
|
error: LiveRpcError
|
|
1998
|
-
}),
|
|
1998
|
+
}), make6("SubscribePresence", {
|
|
1999
1999
|
payload: LivePresenceSubscribeInput,
|
|
2000
2000
|
success: LivePresenceSubscriptionMessage,
|
|
2001
2001
|
error: LiveRpcError,
|
|
2002
2002
|
stream: true
|
|
2003
|
-
}),
|
|
2003
|
+
}), make6("ClearPresence", {
|
|
2004
2004
|
payload: { scope: optional(LiveScope) },
|
|
2005
2005
|
error: LiveRpcError
|
|
2006
|
-
}),
|
|
2006
|
+
}), make6("RecordSessionUpdate", {
|
|
2007
2007
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
2008
2008
|
success: SessionUpdate,
|
|
2009
2009
|
error: LiveRpcError
|
|
2010
|
-
}),
|
|
2010
|
+
}), make6("EndSession", {
|
|
2011
2011
|
payload: { sessionId: String4, input: SessionEnd },
|
|
2012
2012
|
success: Session,
|
|
2013
2013
|
error: LiveRpcError
|
|
@@ -2059,7 +2059,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2059
2059
|
})
|
|
2060
2060
|
});
|
|
2061
2061
|
const layer = (isString(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2062
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2062
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2063
2063
|
let abandon = () => {};
|
|
2064
2064
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2065
2065
|
abandon = reject;
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-3530xts6.js";
|
|
11
|
+
import"./chunk-y2mkzww9.js";
|
|
12
|
+
import"./chunk-xmq9zpr1.js";
|
|
13
|
+
import"./chunk-5zzfsv07.js";
|
|
14
|
+
import"./chunk-txyp31q5.js";
|
|
15
15
|
export {
|
|
16
16
|
decoded2 as decoded,
|
|
17
17
|
decodedOption2 as decodedOption,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-y2mkzww9.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-77k89h98.js";
|
|
16
|
+
import"./chunk-5zzfsv07.js";
|
|
17
|
+
import"./chunk-txyp31q5.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
make10,
|
|
4
|
+
runForEach,
|
|
5
|
+
compiled2
|
|
6
|
+
} from "./chunk-5zzfsv07.js";
|
|
2
7
|
import {
|
|
3
8
|
getOrUndefined,
|
|
4
9
|
liftThrowable,
|
|
@@ -22,21 +27,16 @@ import {
|
|
|
22
27
|
NullOr,
|
|
23
28
|
Finite,
|
|
24
29
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-txyp31q5.js";
|
|
26
31
|
import {
|
|
27
32
|
isNumber,
|
|
28
33
|
isJsonObject,
|
|
29
34
|
isString
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
make10,
|
|
33
|
-
runForEach,
|
|
34
|
-
compiled2
|
|
35
|
-
} from "./chunk-zmcghp8w.js";
|
|
35
|
+
} from "./chunk-xmq9zpr1.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
38
|
+
make3
|
|
39
|
+
} from "./chunk-y2mkzww9.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -169,7 +169,7 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
169
169
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
170
170
|
const spawner = yield* ChildProcessSpawner;
|
|
171
171
|
const [command, ...args] = opencodeReaderCommand();
|
|
172
|
-
const handle = yield* spawner.spawn(
|
|
172
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
173
173
|
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
174
174
|
stderr: "ignore",
|
|
175
175
|
extendEnv: false,
|