@kitman-sh/cli 0.13.15 → 0.13.16
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-6qdhhk6r.js → chunk-49gbakce.js} +3 -3
- package/dist/{chunk-6kz6qa2h.js → chunk-4zh7qxck.js} +2 -2
- package/dist/{chunk-my63gy4t.js → chunk-5cevjkrb.js} +11 -11
- package/dist/{chunk-3syr8kyv.js → chunk-5w6r4mw6.js} +27 -27
- package/dist/{chunk-zem7mg1b.js → chunk-at5dh2te.js} +15 -15
- package/dist/{chunk-ga76znz9.js → chunk-bt22cd13.js} +6 -1
- package/dist/{chunk-rqrtf7sb.js → chunk-c9rvst3x.js} +2 -2
- package/dist/{chunk-npnbac9a.js → chunk-cbzqfz1k.js} +2 -2
- package/dist/{chunk-7cx4t4em.js → chunk-d9z9cyzt.js} +30 -30
- package/dist/{chunk-hn9x2jjs.js → chunk-mbqb40ev.js} +15 -15
- package/dist/{chunk-gy9rf14f.js → chunk-s88vcvtd.js} +1 -1
- package/dist/{chunk-z4x9m2bv.js → chunk-sjdze64n.js} +5 -5
- package/dist/{chunk-ydz5ctsj.js → chunk-t4xwk14b.js} +140 -95
- package/dist/{chunk-jattyebv.js → chunk-tntbdpmy.js} +68 -68
- package/dist/{chunk-6z499mrc.js → chunk-ttk3d0z2.js} +147 -135
- package/dist/{chunk-h0jf48ew.js → chunk-v1e4g2re.js} +1 -1
- package/dist/{chunk-5qeqhjxy.js → chunk-y7p4d14b.js} +3 -3
- package/dist/{chunk-b07c43pg.js → chunk-zd6y6ka8.js} +53 -18
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/dist/{chunk-82w8rmkc.js → chunk-vsrjg9nm.js} +9 -9
- package/dist/{chunk-y1krmnbv.js → chunk-x7acexnm.js} +4 -4
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-5cevjkrb.js";
|
|
8
|
+
import"./chunk-5w6r4mw6.js";
|
|
9
|
+
import"./chunk-zd6y6ka8.js";
|
|
10
10
|
import"./chunk-q5w3v4k1.js";
|
|
11
11
|
import"./chunk-nf9gdnsf.js";
|
|
12
12
|
import"./chunk-zw3gf6r5.js";
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-bt22cd13.js";
|
|
11
|
+
import"./chunk-vsrjg9nm.js";
|
|
12
12
|
import"./chunk-nf9gdnsf.js";
|
|
13
13
|
import"./chunk-zw3gf6r5.js";
|
|
14
14
|
export {
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
WebSocketConstructor,
|
|
4
|
+
layerWebSocketConstructorGlobal,
|
|
5
|
+
layerWebSocket,
|
|
6
|
+
RunnerHeaders,
|
|
7
|
+
RunnerRpcProtocolVersion,
|
|
8
|
+
RunnerReplicaRpcs,
|
|
9
|
+
RunnerRunFileRpcs,
|
|
10
|
+
ProgramRpcs
|
|
11
|
+
} from "./chunk-zd6y6ka8.js";
|
|
2
12
|
import {
|
|
3
13
|
build,
|
|
4
14
|
succeed5,
|
|
@@ -10,22 +20,12 @@ import {
|
|
|
10
20
|
import {
|
|
11
21
|
runForEach
|
|
12
22
|
} from "./chunk-nf9gdnsf.js";
|
|
13
|
-
import {
|
|
14
|
-
WebSocketConstructor,
|
|
15
|
-
layerWebSocketConstructorGlobal,
|
|
16
|
-
layerWebSocket,
|
|
17
|
-
RunnerHeaders,
|
|
18
|
-
RunnerRpcProtocolVersion,
|
|
19
|
-
RunnerReplicaRpcs,
|
|
20
|
-
RunnerRunFileRpcs,
|
|
21
|
-
ProgramRpcs
|
|
22
|
-
} from "./chunk-b07c43pg.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5w6r4mw6.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
Clock,
|
|
4
|
+
empty,
|
|
5
|
+
fromInput,
|
|
6
|
+
merge,
|
|
7
|
+
Socket,
|
|
8
|
+
SocketReadError,
|
|
9
|
+
SocketError,
|
|
10
|
+
isStreamSchema,
|
|
11
|
+
getStreamSchemas,
|
|
12
|
+
exitSchema,
|
|
13
|
+
ParseOptions,
|
|
14
|
+
RpcClientDefect,
|
|
15
|
+
RpcClientError
|
|
16
|
+
} from "./chunk-zd6y6ka8.js";
|
|
17
|
+
import {
|
|
18
|
+
interrupt,
|
|
19
|
+
getCurrent,
|
|
20
|
+
makeUnsafe2,
|
|
21
|
+
bounded,
|
|
22
|
+
offerAll,
|
|
23
|
+
failCause,
|
|
24
|
+
end,
|
|
25
|
+
shutdownUnsafe,
|
|
26
|
+
fromQueue,
|
|
27
|
+
unwrap
|
|
28
|
+
} from "./chunk-nf9gdnsf.js";
|
|
2
29
|
import {
|
|
3
30
|
dual,
|
|
4
31
|
identity,
|
|
@@ -97,33 +124,6 @@ import {
|
|
|
97
124
|
Exit,
|
|
98
125
|
toCodecJson
|
|
99
126
|
} from "./chunk-zw3gf6r5.js";
|
|
100
|
-
import {
|
|
101
|
-
interrupt,
|
|
102
|
-
getCurrent,
|
|
103
|
-
makeUnsafe2,
|
|
104
|
-
bounded,
|
|
105
|
-
offerAll,
|
|
106
|
-
failCause,
|
|
107
|
-
end,
|
|
108
|
-
shutdownUnsafe,
|
|
109
|
-
fromQueue,
|
|
110
|
-
unwrap
|
|
111
|
-
} from "./chunk-nf9gdnsf.js";
|
|
112
|
-
import {
|
|
113
|
-
Clock,
|
|
114
|
-
empty,
|
|
115
|
-
fromInput,
|
|
116
|
-
merge,
|
|
117
|
-
Socket,
|
|
118
|
-
SocketReadError,
|
|
119
|
-
SocketError,
|
|
120
|
-
isStreamSchema,
|
|
121
|
-
getStreamSchemas,
|
|
122
|
-
exitSchema,
|
|
123
|
-
ParseOptions,
|
|
124
|
-
RpcClientDefect,
|
|
125
|
-
RpcClientError
|
|
126
|
-
} from "./chunk-b07c43pg.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")) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import"./chunk-q5w3v4k1.js";
|
|
2
3
|
import {
|
|
3
4
|
isString,
|
|
4
5
|
hasProperty,
|
|
@@ -33,15 +34,6 @@ import {
|
|
|
33
34
|
Json,
|
|
34
35
|
encodePrettyJsonString
|
|
35
36
|
} 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-nf9gdnsf.js";
|
|
45
37
|
import {
|
|
46
38
|
SecureRandom,
|
|
47
39
|
layerWebCrypto,
|
|
@@ -53,23 +45,31 @@ import {
|
|
|
53
45
|
layer4,
|
|
54
46
|
kitmanMcpServer,
|
|
55
47
|
RunnerRpcProtocolVersion
|
|
56
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-zd6y6ka8.js";
|
|
49
|
+
import {
|
|
50
|
+
decodeText,
|
|
51
|
+
mkString,
|
|
52
|
+
FileSystem,
|
|
53
|
+
Path,
|
|
54
|
+
withDefault,
|
|
55
|
+
String2
|
|
56
|
+
} from "./chunk-nf9gdnsf.js";
|
|
57
57
|
import {
|
|
58
58
|
Packument,
|
|
59
59
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import"./chunk-
|
|
60
|
+
} from "./chunk-mbqb40ev.js";
|
|
61
|
+
import"./chunk-5cevjkrb.js";
|
|
62
62
|
import {
|
|
63
63
|
AgentDeclaration,
|
|
64
64
|
KitDeclarations,
|
|
65
65
|
describeFlag,
|
|
66
66
|
Described
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-d9z9cyzt.js";
|
|
68
68
|
import {
|
|
69
69
|
ChildProcessSpawner,
|
|
70
70
|
make3
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import"./chunk-
|
|
71
|
+
} from "./chunk-vsrjg9nm.js";
|
|
72
|
+
import"./chunk-5w6r4mw6.js";
|
|
73
73
|
|
|
74
74
|
// packages/sdk/src/build/index.ts
|
|
75
75
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
36
|
make3
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-vsrjg9nm.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -147,6 +147,11 @@ var readings = {
|
|
|
147
147
|
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);
|
|
148
148
|
return isString2(row?.error) ? decoded2(row.error) ?? null : null;
|
|
149
149
|
}),
|
|
150
|
+
lastModel: reading(NullOr(String4), (db, { v2 }, sessionId) => {
|
|
151
|
+
const named = (provider, model) => `case when length(cast(${model} as blob)) <= 200 and length(cast(coalesce(${provider}, '') as blob)) <= 200 then case when ${provider} is null then ${model} else ${provider} || '/' || ${model} end end`;
|
|
152
|
+
const row = v2 ? db.prepare(`select ${named("json_extract(data, '$.model.providerID')", "json_extract(data, '$.model.id')")} as model from session_message where session_id = ? and type = 'assistant' and json_type(data, '$.model.id') = 'text' order by seq desc limit 1`).get(sessionId) : db.prepare(`select ${named("json_extract(data, '$.providerID')", "json_extract(data, '$.modelID')")} as model from message where session_id = ? and json_extract(data, '$.role') = 'assistant' and json_type(data, '$.modelID') = 'text' order by time_created desc, rowid desc limit 1`).get(sessionId);
|
|
153
|
+
return isString2(row?.model) ? row.model : null;
|
|
154
|
+
}),
|
|
150
155
|
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)
|
|
151
156
|
select coalesce(max(time_updated), 0) as extent from session_message where session_id in sessions`).get(sessionId)?.extent))
|
|
152
157
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-vsrjg9nm.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-zd6y6ka8.js";
|
|
16
16
|
import"./chunk-nf9gdnsf.js";
|
|
17
17
|
import"./chunk-zw3gf6r5.js";
|
|
18
18
|
export {
|
|
@@ -36,10 +36,10 @@ import {
|
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-zd6y6ka8.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-mbqb40ev.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -1,4 +1,34 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
guard
|
|
4
|
+
} from "./chunk-q5w3v4k1.js";
|
|
5
|
+
import {
|
|
6
|
+
currentTimeMillis,
|
|
7
|
+
WebCrypto,
|
|
8
|
+
SafeJson,
|
|
9
|
+
AgentSandboxNetwork,
|
|
10
|
+
AgentEfforts,
|
|
11
|
+
AgentCapabilities,
|
|
12
|
+
LoopDataSchemaRef,
|
|
13
|
+
LoopVersion,
|
|
14
|
+
ProgramLoop,
|
|
15
|
+
AgentFallback,
|
|
16
|
+
ProgramWorkUnit,
|
|
17
|
+
MeasureEvidence,
|
|
18
|
+
CatchUp,
|
|
19
|
+
RunFileRefused,
|
|
20
|
+
runFileContentType,
|
|
21
|
+
sha256Hasher,
|
|
22
|
+
put,
|
|
23
|
+
setHeaders,
|
|
24
|
+
bodyUint8Array,
|
|
25
|
+
filterStatusOk,
|
|
26
|
+
HttpClient,
|
|
27
|
+
KitName,
|
|
28
|
+
KitDigest,
|
|
29
|
+
KitSetup,
|
|
30
|
+
RunnerRpcError
|
|
31
|
+
} from "./chunk-zd6y6ka8.js";
|
|
2
32
|
import {
|
|
3
33
|
dual,
|
|
4
34
|
getOrElse,
|
|
@@ -76,36 +106,6 @@ import {
|
|
|
76
106
|
toCodecJson,
|
|
77
107
|
Json
|
|
78
108
|
} from "./chunk-zw3gf6r5.js";
|
|
79
|
-
import {
|
|
80
|
-
guard
|
|
81
|
-
} from "./chunk-q5w3v4k1.js";
|
|
82
|
-
import {
|
|
83
|
-
currentTimeMillis,
|
|
84
|
-
WebCrypto,
|
|
85
|
-
SafeJson,
|
|
86
|
-
AgentSandboxNetwork,
|
|
87
|
-
AgentEfforts,
|
|
88
|
-
AgentCapabilities,
|
|
89
|
-
LoopDataSchemaRef,
|
|
90
|
-
LoopVersion,
|
|
91
|
-
ProgramLoop,
|
|
92
|
-
AgentFallback,
|
|
93
|
-
ProgramWorkUnit,
|
|
94
|
-
MeasureEvidence,
|
|
95
|
-
CatchUp,
|
|
96
|
-
RunFileRefused,
|
|
97
|
-
runFileContentType,
|
|
98
|
-
sha256Hasher,
|
|
99
|
-
put,
|
|
100
|
-
setHeaders,
|
|
101
|
-
bodyUint8Array,
|
|
102
|
-
filterStatusOk,
|
|
103
|
-
HttpClient,
|
|
104
|
-
KitName,
|
|
105
|
-
KitDigest,
|
|
106
|
-
KitSetup,
|
|
107
|
-
RunnerRpcError
|
|
108
|
-
} from "./chunk-b07c43pg.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
withDefault,
|
|
4
|
+
String2
|
|
5
|
+
} from "./chunk-nf9gdnsf.js";
|
|
6
|
+
import {
|
|
7
|
+
newerKitmanVersion,
|
|
8
|
+
digestSha256,
|
|
9
|
+
digestSha512,
|
|
10
|
+
digestWith,
|
|
11
|
+
schemaBodyJson,
|
|
12
|
+
filterStatusOk,
|
|
13
|
+
get2,
|
|
14
|
+
layer4,
|
|
15
|
+
KitDigest
|
|
16
|
+
} from "./chunk-zd6y6ka8.js";
|
|
2
17
|
import {
|
|
3
18
|
isString,
|
|
4
19
|
isNone,
|
|
@@ -25,21 +40,6 @@ import {
|
|
|
25
40
|
Int,
|
|
26
41
|
fromJsonString
|
|
27
42
|
} from "./chunk-zw3gf6r5.js";
|
|
28
|
-
import {
|
|
29
|
-
withDefault,
|
|
30
|
-
String2
|
|
31
|
-
} from "./chunk-nf9gdnsf.js";
|
|
32
|
-
import {
|
|
33
|
-
newerKitmanVersion,
|
|
34
|
-
digestSha256,
|
|
35
|
-
digestSha512,
|
|
36
|
-
digestWith,
|
|
37
|
-
schemaBodyJson,
|
|
38
|
-
filterStatusOk,
|
|
39
|
-
get2,
|
|
40
|
-
layer4,
|
|
41
|
-
KitDigest
|
|
42
|
-
} from "./chunk-b07c43pg.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import"./chunk-q5w3v4k1.js";
|
|
2
3
|
import {
|
|
3
4
|
isObject,
|
|
4
5
|
isUint8Array,
|
|
@@ -14,7 +15,6 @@ import {
|
|
|
14
15
|
decodeJsonString,
|
|
15
16
|
encodePrettyJsonString
|
|
16
17
|
} from "./chunk-zw3gf6r5.js";
|
|
17
|
-
import"./chunk-q5w3v4k1.js";
|
|
18
18
|
import {
|
|
19
19
|
FileSystem,
|
|
20
20
|
Path
|
|
@@ -24,16 +24,16 @@ import {
|
|
|
24
24
|
tomlKeyPath2,
|
|
25
25
|
kitmanSkillEntry,
|
|
26
26
|
isPathWithin2
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-cbzqfz1k.js";
|
|
28
28
|
import {
|
|
29
29
|
instructionsStart,
|
|
30
30
|
instructionsEnd,
|
|
31
31
|
renderMcpServer,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-zd6y6ka8.js";
|
|
35
|
+
import"./chunk-mbqb40ev.js";
|
|
36
|
+
import"./chunk-vsrjg9nm.js";
|
|
37
37
|
|
|
38
38
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
39
39
|
class KitSyncError extends TaggedError("KitSyncError") {
|