@kitman-sh/cli 0.12.0-rc.3 → 0.12.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-0qz10ek8.js → chunk-6b0k02x4.js} +1 -1
- package/dist/{chunk-jef2vdr6.js → chunk-74txrt4s.js} +4 -4
- package/dist/{chunk-vtfwjhzh.js → chunk-79gx7ek9.js} +70 -28
- package/dist/{chunk-794hjysw.js → chunk-7kjsvwzv.js} +5 -5
- package/dist/{chunk-2gg3ccte.js → chunk-aafxvmj1.js} +7 -7
- package/dist/{chunk-0346hwh6.js → chunk-b50dvx41.js} +5 -5
- package/dist/{chunk-nzjb36ad.js → chunk-bq55md8p.js} +1 -1
- package/dist/{chunk-c6rbt85q.js → chunk-c9007k48.js} +1 -1
- package/dist/{chunk-8ez1s9cr.js → chunk-ckkpqcfv.js} +4 -4
- package/dist/{chunk-y8sscyvt.js → chunk-e7q2frvs.js} +7 -7
- package/dist/{chunk-e7e120qw.js → chunk-ezf2myj0.js} +3 -3
- package/dist/{chunk-xwya1er0.js → chunk-jntxtx9j.js} +14 -60
- package/dist/{chunk-56knbdt6.js → chunk-k81ay8y5.js} +8 -8
- package/dist/{chunk-y73z1kkz.js → chunk-kybp1mkk.js} +8 -8
- package/dist/{chunk-x55v5kyg.js → chunk-nzsrse8d.js} +23 -23
- package/dist/{chunk-z450wa10.js → chunk-pw10mq9e.js} +4 -4
- package/dist/{chunk-mc87tyzm.js → chunk-qjd6w9sw.js} +1 -1
- package/dist/{chunk-dymepetx.js → chunk-r1z41qx6.js} +113 -109
- package/dist/{chunk-h6hd61dn.js → chunk-rjasmnav.js} +22 -22
- package/dist/{chunk-ks3p7yha.js → chunk-t2mr6z38.js} +24 -24
- package/dist/{chunk-trb9325k.js → chunk-w0aj9mkz.js} +5 -5
- package/dist/{chunk-6akwhwyp.js → chunk-w6cm939j.js} +19 -19
- package/dist/{chunk-5j848ckb.js → chunk-xavcp9se.js} +2 -2
- package/dist/{chunk-ewhzaqp3.js → chunk-xy5f2nv9.js} +2 -2
- package/dist/{chunk-yatva7be.js → chunk-ydydx55z.js} +1 -1
- package/dist/{chunk-gspfm7qh.js → chunk-zmcghp8w.js} +17 -17
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -22,21 +22,21 @@ import {
|
|
|
22
22
|
NullOr,
|
|
23
23
|
Finite,
|
|
24
24
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-79gx7ek9.js";
|
|
26
26
|
import {
|
|
27
27
|
isNumber,
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-c9007k48.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
32
|
+
make10,
|
|
33
33
|
runForEach,
|
|
34
34
|
compiled2
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-zmcghp8w.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
38
|
+
make2
|
|
39
|
+
} from "./chunk-jntxtx9j.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -169,8 +169,8 @@ 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(
|
|
173
|
-
stdin:
|
|
172
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
173
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
174
174
|
stderr: "ignore",
|
|
175
175
|
extendEnv: false,
|
|
176
176
|
env: {},
|
|
@@ -12,30 +12,30 @@ import {
|
|
|
12
12
|
orElseSucceed,
|
|
13
13
|
decodeJsonString,
|
|
14
14
|
encodePrettyJsonString
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-79gx7ek9.js";
|
|
16
|
+
import"./chunk-6b0k02x4.js";
|
|
17
17
|
import {
|
|
18
18
|
isJsonObject
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-c9007k48.js";
|
|
20
20
|
import {
|
|
21
21
|
FileSystem,
|
|
22
22
|
Path
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-zmcghp8w.js";
|
|
24
24
|
import {
|
|
25
25
|
tomlTableHeader2,
|
|
26
26
|
tomlKeyPath2,
|
|
27
27
|
kitmanSkillEntry,
|
|
28
28
|
isPathWithin2
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-w0aj9mkz.js";
|
|
30
30
|
import {
|
|
31
31
|
instructionsStart,
|
|
32
32
|
instructionsEnd,
|
|
33
33
|
renderMcpServer,
|
|
34
34
|
materializeKitSetup,
|
|
35
35
|
tomlInline
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import"./chunk-
|
|
38
|
-
import"./chunk-
|
|
36
|
+
} from "./chunk-r1z41qx6.js";
|
|
37
|
+
import"./chunk-ezf2myj0.js";
|
|
38
|
+
import"./chunk-jntxtx9j.js";
|
|
39
39
|
|
|
40
40
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
41
41
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
isObject,
|
|
7
7
|
isJsonObject,
|
|
8
8
|
isString
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-c9007k48.js";
|
|
10
10
|
import {
|
|
11
11
|
pipeArguments,
|
|
12
12
|
dual,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
isFailure2,
|
|
50
50
|
hasInterrupts,
|
|
51
51
|
makeUnsafe5,
|
|
52
|
-
|
|
52
|
+
make15,
|
|
53
53
|
_await,
|
|
54
54
|
fail5,
|
|
55
55
|
isDoneUnsafe,
|
|
@@ -169,12 +169,12 @@ import {
|
|
|
169
169
|
encodePrettyJsonString,
|
|
170
170
|
decodeJsonStringSync,
|
|
171
171
|
encodeUnknownJsonStringSync
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-79gx7ek9.js";
|
|
173
173
|
import {
|
|
174
174
|
Id,
|
|
175
175
|
secretReference,
|
|
176
176
|
secretPlaceholder
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-6b0k02x4.js";
|
|
178
178
|
import {
|
|
179
179
|
currentTimeMillis,
|
|
180
180
|
SecureRandom,
|
|
@@ -248,7 +248,7 @@ import {
|
|
|
248
248
|
installCommand,
|
|
249
249
|
checkServicesFile,
|
|
250
250
|
checkServices
|
|
251
|
-
} from "./chunk-
|
|
251
|
+
} from "./chunk-r1z41qx6.js";
|
|
252
252
|
import {
|
|
253
253
|
join,
|
|
254
254
|
interrupt,
|
|
@@ -257,7 +257,7 @@ import {
|
|
|
257
257
|
unbounded2,
|
|
258
258
|
offer,
|
|
259
259
|
makeUnsafe3,
|
|
260
|
-
|
|
260
|
+
make10,
|
|
261
261
|
fromQueue,
|
|
262
262
|
fromPubSub,
|
|
263
263
|
map2,
|
|
@@ -289,7 +289,7 @@ import {
|
|
|
289
289
|
writeSrtSettings2,
|
|
290
290
|
srtStepArgv2,
|
|
291
291
|
srtArgv2
|
|
292
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-zmcghp8w.js";
|
|
293
293
|
import {
|
|
294
294
|
writeAgentEnvironmentConfigFile2,
|
|
295
295
|
readManifestSkillPaths2,
|
|
@@ -305,8 +305,8 @@ import {
|
|
|
305
305
|
applyAgentEnvironmentMaterialization2,
|
|
306
306
|
isPathWithin2,
|
|
307
307
|
skillIdentity2
|
|
308
|
-
} from "./chunk-
|
|
309
|
-
import"./chunk-
|
|
308
|
+
} from "./chunk-w0aj9mkz.js";
|
|
309
|
+
import"./chunk-ezf2myj0.js";
|
|
310
310
|
import {
|
|
311
311
|
egressAllowed,
|
|
312
312
|
writeSecretRegistry,
|
|
@@ -316,7 +316,7 @@ import {
|
|
|
316
316
|
secretFilter2,
|
|
317
317
|
opaqueTunnelRefusal2,
|
|
318
318
|
isOpaqueConnectReason2
|
|
319
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-xavcp9se.js";
|
|
320
320
|
import {
|
|
321
321
|
sliceBytes2,
|
|
322
322
|
maxLineBytes2,
|
|
@@ -324,23 +324,23 @@ import {
|
|
|
324
324
|
decodedOption2,
|
|
325
325
|
decoded2,
|
|
326
326
|
readOpencode2
|
|
327
|
-
} from "./chunk-
|
|
327
|
+
} from "./chunk-k81ay8y5.js";
|
|
328
328
|
import {
|
|
329
329
|
uploadRunFile,
|
|
330
330
|
programLease,
|
|
331
331
|
rpcRunFiles,
|
|
332
332
|
programHostsEnv,
|
|
333
333
|
undeclaredHostsEnv
|
|
334
|
-
} from "./chunk-
|
|
335
|
-
import"./chunk-
|
|
334
|
+
} from "./chunk-ckkpqcfv.js";
|
|
335
|
+
import"./chunk-e7q2frvs.js";
|
|
336
336
|
import {
|
|
337
337
|
nextInt
|
|
338
|
-
} from "./chunk-
|
|
338
|
+
} from "./chunk-bq55md8p.js";
|
|
339
339
|
import {
|
|
340
340
|
ChildProcessSpawner,
|
|
341
|
-
|
|
342
|
-
} from "./chunk-
|
|
343
|
-
import"./chunk-
|
|
341
|
+
make2
|
|
342
|
+
} from "./chunk-jntxtx9j.js";
|
|
343
|
+
import"./chunk-7kjsvwzv.js";
|
|
344
344
|
|
|
345
345
|
// packages/core/src/sync-kit.ts
|
|
346
346
|
import { createHash } from "crypto";
|
|
@@ -7013,7 +7013,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7013
7013
|
const input = yield* unbounded2();
|
|
7014
7014
|
const pending = new Map;
|
|
7015
7015
|
let lastId = 0;
|
|
7016
|
-
const handle = yield* spawner.spawn(
|
|
7016
|
+
const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
|
|
7017
7017
|
cwd: env.home,
|
|
7018
7018
|
extendEnv: true,
|
|
7019
7019
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -7036,7 +7036,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7036
7036
|
return {
|
|
7037
7037
|
request: (method, params) => gen(function* () {
|
|
7038
7038
|
const id = ++lastId;
|
|
7039
|
-
const deferred = yield*
|
|
7039
|
+
const deferred = yield* make15();
|
|
7040
7040
|
pending.set(id, deferred);
|
|
7041
7041
|
yield* send({ id, method, params });
|
|
7042
7042
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7176,10 +7176,10 @@ var handshake = [
|
|
|
7176
7176
|
`).join("");
|
|
7177
7177
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
7178
7178
|
const spawner = yield* ChildProcessSpawner;
|
|
7179
|
-
const server = yield* spawner.spawn(
|
|
7179
|
+
const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
|
|
7180
7180
|
extendEnv: true,
|
|
7181
7181
|
env: mcp.env,
|
|
7182
|
-
stdin: { stream:
|
|
7182
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7183
7183
|
stderr: "ignore"
|
|
7184
7184
|
}));
|
|
7185
7185
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7252,8 +7252,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7252
7252
|
};
|
|
7253
7253
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7254
7254
|
const spawner = yield* ChildProcessSpawner;
|
|
7255
|
-
const handle = yield* spawner.spawn(
|
|
7256
|
-
stdin:
|
|
7255
|
+
const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
|
|
7256
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
7257
7257
|
stdout: "inherit",
|
|
7258
7258
|
stderr: "inherit",
|
|
7259
7259
|
extendEnv: false,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-xavcp9se.js";
|
|
8
|
+
import"./chunk-6b0k02x4.js";
|
|
9
|
+
import"./chunk-c9007k48.js";
|
|
10
|
+
import"./chunk-79gx7ek9.js";
|
|
11
11
|
export {
|
|
12
12
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
13
13
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -1444,7 +1444,7 @@ var pathOfLink = (link) => {
|
|
|
1444
1444
|
return page === null ? link : page[1] || "index";
|
|
1445
1445
|
};
|
|
1446
1446
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1447
|
-
var pinnedLink2 = (link, version = "0.12.0-rc.
|
|
1447
|
+
var pinnedLink2 = (link, version = "0.12.0-rc.4") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1448
1448
|
var pageOf = (path) => path.split("#")[0];
|
|
1449
1449
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1450
1450
|
function excerpt(text, queryTerms) {
|