@kitman-sh/cli 0.10.57 → 0.10.59
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-jc920h47.js → chunk-09jf8588.js} +9 -4
- package/dist/{chunk-cy5fbrfm.js → chunk-0fdgam8v.js} +2 -8
- package/dist/{chunk-g53wn1q8.js → chunk-1w81w56v.js} +2 -2
- package/dist/{chunk-x3mgznk2.js → chunk-1z9p4q8b.js} +2 -2
- package/dist/{chunk-h8s4vh47.js → chunk-5y050gx7.js} +10 -10
- package/dist/{chunk-v43h8s08.js → chunk-88257wax.js} +10 -10
- package/dist/{chunk-a1yf46xt.js → chunk-a4798jzf.js} +3 -3
- package/dist/{chunk-61k67vxh.js → chunk-d3ksv8y1.js} +4 -3
- package/dist/{chunk-q5s64k8g.js → chunk-d8awdfdj.js} +159 -43
- package/dist/{chunk-de4cfe40.js → chunk-e3tv8mv2.js} +4 -4
- package/dist/{chunk-5tfxtw9z.js → chunk-eawcprsb.js} +2 -2
- package/dist/{chunk-mjzvfh9d.js → chunk-hvev0dve.js} +8 -8
- package/dist/{chunk-23vene3j.js → chunk-hxkk42cg.js} +4 -4
- package/dist/{chunk-wd0rvdt4.js → chunk-phmma642.js} +5 -5
- package/dist/{chunk-gwcqz1bj.js → chunk-q3c7vmby.js} +1 -1
- package/dist/{chunk-kyqsbr2n.js → chunk-r76gsqds.js} +26 -16
- package/dist/{chunk-4kssrezn.js → chunk-rrnee9mk.js} +1 -1
- package/dist/{chunk-253add07.js → chunk-rrz0v4fg.js} +5 -5
- package/dist/{chunk-qhpyzn7c.js → chunk-sdpjvc1r.js} +17 -9
- package/dist/{chunk-nrkwrajj.js → chunk-smgvtzd2.js} +7 -7
- package/dist/{chunk-7evwar6b.js → chunk-v01c0k6j.js} +1 -1
- package/dist/{chunk-fmhy6tss.js → chunk-wkccjgwb.js} +4 -4
- package/dist/{chunk-99ver3za.js → chunk-wtpwkjws.js} +4 -4
- package/dist/{chunk-hwd2gg2f.js → chunk-z0z56a72.js} +5 -5
- 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-d3ksv8y1.js";
|
|
26
26
|
import {
|
|
27
27
|
isNumber,
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-v01c0k6j.js";
|
|
31
31
|
import {
|
|
32
32
|
make11,
|
|
33
33
|
runForEach,
|
|
34
34
|
compiled2
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-0fdgam8v.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
38
|
make3
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-eawcprsb.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -144,6 +144,11 @@ var readings = {
|
|
|
144
144
|
}
|
|
145
145
|
return messages;
|
|
146
146
|
}),
|
|
147
|
+
lastError: reading(Parsed, (db, { v2 }, sessionId) => {
|
|
148
|
+
const error = unlessLong("json_extract(data, '$.error')");
|
|
149
|
+
const row = v2 ? db.prepare(`select ${error} as error from session_message where session_id = ? and type = 'assistant' order by seq desc limit 1`).get(sessionId) : db.prepare(`select ${error} as error from message where session_id = ? and json_extract(data, '$.role') = 'assistant' order by time_created desc, rowid desc limit 1`).get(sessionId);
|
|
150
|
+
return isString(row?.error) ? decoded2(row.error) ?? null : null;
|
|
151
|
+
}),
|
|
147
152
|
extent: reading(Finite, (db, _input, sessionId) => Number(db.prepare(`with recursive sessions(id) as (select ? union select session_v2.id from session_v2 join sessions on session_v2.parent_id = sessions.id)
|
|
148
153
|
select coalesce(max(time_updated), 0) as extent from session_message where session_id in sessions`).get(sessionId)?.extent))
|
|
149
154
|
};
|
|
@@ -79,8 +79,6 @@ import {
|
|
|
79
79
|
fiberRunIn,
|
|
80
80
|
makeLatchUnsafe,
|
|
81
81
|
makeLatch,
|
|
82
|
-
ClockRef,
|
|
83
|
-
currentTimeMillis2,
|
|
84
82
|
succeed3,
|
|
85
83
|
failCause2,
|
|
86
84
|
fail4,
|
|
@@ -201,7 +199,7 @@ import {
|
|
|
201
199
|
String4,
|
|
202
200
|
toCodecStringTree,
|
|
203
201
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-d3ksv8y1.js";
|
|
205
203
|
|
|
206
204
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
205
|
var headUnsafe = (self) => {
|
|
@@ -250,10 +248,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
250
248
|
return (self, that) => is(self, that) && is(that, self);
|
|
251
249
|
};
|
|
252
250
|
|
|
253
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
254
|
-
var Clock = ClockRef;
|
|
255
|
-
var currentTimeMillis = currentTimeMillis2;
|
|
256
|
-
|
|
257
251
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
258
252
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
259
253
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -3557,4 +3551,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3557
3551
|
...argv
|
|
3558
3552
|
];
|
|
3559
3553
|
|
|
3560
|
-
export { map, makeEquivalence,
|
|
3554
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
ArraySchema,
|
|
12
12
|
decodeJsonStringOption,
|
|
13
13
|
encodeUnknownJsonStringSync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-d3ksv8y1.js";
|
|
15
15
|
import {
|
|
16
16
|
replaceSecretReferences,
|
|
17
17
|
secretReferencesIn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-rrnee9mk.js";
|
|
19
19
|
|
|
20
20
|
// packages/agent-runtime/src/secret-proxy.ts
|
|
21
21
|
import { appendFileSync, readFileSync, renameSync, writeFileSync } from "fs";
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-0fdgam8v.js";
|
|
18
|
+
import"./chunk-d3ksv8y1.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|