@kody-ade/kody-engine 0.3.77 → 0.3.78

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.
Files changed (2) hide show
  1. package/dist/bin/kody.js +20 -2
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@kody-ade/kody-engine",
6
- version: "0.3.77",
6
+ version: "0.3.78",
7
7
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
8
8
  license: "MIT",
9
9
  type: "module",
@@ -731,13 +731,21 @@ async function runInteractiveMode(opts) {
731
731
  const hardCapMs = opts.meta.hardCapMs ?? DEFAULT_HARD_CAP_MS;
732
732
  const startedAt = Date.now();
733
733
  const deadlineMs = startedAt + hardCapMs;
734
+ process.stdout.write(`\u2192 kody:chat:interactive: emitting chat.ready (idleExitMs=${idleExitMs}, hardCapMs=${hardCapMs})
735
+ `);
734
736
  await emit2(opts.sink, "chat.ready", opts.sessionId, "ready", {
735
737
  sessionId: opts.sessionId,
736
738
  startedAt: new Date(startedAt).toISOString(),
737
739
  idleExitMs,
738
740
  hardCapMs
739
741
  });
740
- if (!opts.skipGit) commitTurn(opts.cwd, opts.sessionId, opts.verbose ?? false);
742
+ if (!opts.skipGit) {
743
+ process.stdout.write(`\u2192 kody:chat:interactive: committing chat.ready event to git
744
+ `);
745
+ commitTurn(opts.cwd, opts.sessionId, opts.verbose ?? false);
746
+ process.stdout.write(`\u2192 kody:chat:interactive: chat.ready committed; entering poll loop
747
+ `);
748
+ }
741
749
  let watermark = 0;
742
750
  let turnsCompleted = 0;
743
751
  while (true) {
@@ -8179,11 +8187,15 @@ ${CHAT_HELP}`);
8179
8187
  return 99;
8180
8188
  }
8181
8189
  }
8190
+ process.stdout.write(`\u2192 kody:chat: starting litellm proxy (model=${model.provider}/${model.model})
8191
+ `);
8182
8192
  let litellm = null;
8183
8193
  try {
8184
8194
  litellm = await startLitellmIfNeeded(model, cwd);
8185
8195
  } catch (err) {
8186
8196
  const msg = err instanceof Error ? err.message : String(err);
8197
+ process.stderr.write(`\u2192 kody:chat: litellm startup FAILED: ${msg}
8198
+ `);
8187
8199
  const sink2 = buildSink(cwd, sessionId, args.dashboardUrl);
8188
8200
  await sink2.emit({
8189
8201
  event: "chat.error",
@@ -8193,10 +8205,16 @@ ${CHAT_HELP}`);
8193
8205
  });
8194
8206
  return 99;
8195
8207
  }
8208
+ process.stdout.write(`\u2192 kody:chat: litellm proxy ready (url=${litellm?.url ?? "skipped"})
8209
+ `);
8196
8210
  const sessionFile = sessionFilePath(cwd, sessionId);
8197
8211
  if (args.initMessage) seedInitialMessage(sessionFile, args.initMessage);
8198
8212
  const sink = buildSink(cwd, sessionId, args.dashboardUrl);
8199
8213
  const meta = readMeta(sessionFile);
8214
+ process.stdout.write(
8215
+ `\u2192 kody:chat: session file=${sessionFile} exists=${fs28.existsSync(sessionFile)} meta=${meta ? meta.mode : "none"}
8216
+ `
8217
+ );
8200
8218
  try {
8201
8219
  if (meta?.mode === "interactive") {
8202
8220
  const result2 = await runInteractiveMode({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.3.77",
3
+ "version": "0.3.78",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",