@kody-ade/kody-engine 0.4.404 → 0.4.405
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/bin/kody.js +24 -2
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -15,7 +15,7 @@ var init_package = __esm({
|
|
|
15
15
|
"package.json"() {
|
|
16
16
|
package_default = {
|
|
17
17
|
name: "@kody-ade/kody-engine",
|
|
18
|
-
version: "0.4.
|
|
18
|
+
version: "0.4.405",
|
|
19
19
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
|
|
20
20
|
license: "MIT",
|
|
21
21
|
type: "module",
|
|
@@ -21933,6 +21933,19 @@ async function runCodexChatTurn(args) {
|
|
|
21933
21933
|
import * as fs13 from "fs";
|
|
21934
21934
|
import * as path14 from "path";
|
|
21935
21935
|
import posixPath2 from "path/posix";
|
|
21936
|
+
var BackendEventSink = class {
|
|
21937
|
+
constructor(append, tenantId2, sessionId) {
|
|
21938
|
+
this.append = append;
|
|
21939
|
+
this.tenantId = tenantId2;
|
|
21940
|
+
this.sessionId = sessionId;
|
|
21941
|
+
}
|
|
21942
|
+
append;
|
|
21943
|
+
tenantId;
|
|
21944
|
+
sessionId;
|
|
21945
|
+
async emit(event) {
|
|
21946
|
+
await this.append(this.tenantId, this.sessionId, event);
|
|
21947
|
+
}
|
|
21948
|
+
};
|
|
21936
21949
|
function eventsFilePath(cwd, sessionId) {
|
|
21937
21950
|
return path14.join(cwd, ".kody-engine", "runtime", "events", `${sessionId}.jsonl`);
|
|
21938
21951
|
}
|
|
@@ -25221,6 +25234,7 @@ async function emit2(sink, type, sessionId, suffix, payload) {
|
|
|
25221
25234
|
// src/chat-cli.ts
|
|
25222
25235
|
init_config();
|
|
25223
25236
|
init_litellm();
|
|
25237
|
+
init_state_backend();
|
|
25224
25238
|
init_stateWorkspace();
|
|
25225
25239
|
var DEFAULT_MODEL2 = "claude/claude-haiku-4-5-20251001";
|
|
25226
25240
|
var CHAT_HELP = `kody chat \u2014 dashboard-driven chat session
|
|
@@ -25285,7 +25299,15 @@ function tryLoadConfig(cwd) {
|
|
|
25285
25299
|
}
|
|
25286
25300
|
}
|
|
25287
25301
|
function buildSink(cwd, sessionId, dashboardUrl) {
|
|
25288
|
-
const
|
|
25302
|
+
const backend = createStateBackendFromEnv();
|
|
25303
|
+
const sinks = [
|
|
25304
|
+
new BackendEventSink(
|
|
25305
|
+
(tenantId2, targetSessionId, event) => backend.appendChatEvent(tenantId2, targetSessionId, event),
|
|
25306
|
+
"global",
|
|
25307
|
+
sessionId
|
|
25308
|
+
),
|
|
25309
|
+
new FileSink(eventsFilePath(cwd, sessionId))
|
|
25310
|
+
];
|
|
25289
25311
|
if (dashboardUrl) sinks.push(new HttpSink(dashboardUrl, sessionId));
|
|
25290
25312
|
return new TeeSink(sinks);
|
|
25291
25313
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.405",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|