klyro 0.1.37 → 0.1.38

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/cli/repl.js +29 -0
  2. package/package.json +1 -1
package/dist/cli/repl.js CHANGED
@@ -201,6 +201,35 @@ export async function startRepl(opts = {}) {
201
201
  }
202
202
  }
203
203
  queuedStatus({ status: 'running', step: 0, model });
204
+ // Simple chat like "hello" must NOT trigger tool calls — direct LLM chat, no tools, no files
205
+ if (isSimpleChat) {
206
+ try {
207
+ const simpleReq = {
208
+ model,
209
+ system: systemPromptFn({ cwd, telemetry: '' }),
210
+ messages: [{ role: 'user', content: [{ kind: 'text', text: taskText }] }],
211
+ tools: [],
212
+ signal: ac.signal,
213
+ };
214
+ let simpleText = '';
215
+ for await (const ev of adapter.stream(simpleReq)) {
216
+ if (ev.kind === 'text_delta') {
217
+ simpleText += ev.text;
218
+ queuedDelta(ev.text);
219
+ }
220
+ else if (ev.kind === 'error')
221
+ throw new Error(ev.message);
222
+ }
223
+ queuedStatus({ status: 'done' });
224
+ return;
225
+ }
226
+ catch (err) {
227
+ const msg = err instanceof Error ? err.message : String(err);
228
+ queuedAppend({ id: `err-${Date.now()}`, kind: 'error', message: msg });
229
+ queuedStatus({ status: 'error', errorMessage: msg });
230
+ return;
231
+ }
232
+ }
204
233
  let activeCallId = null;
205
234
  let activeCallName = null;
206
235
  let activeCallArgs = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "klyro",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Klyro — autonomous coding harness CLI that streams from any OpenAI-compatible or Anthropic LLM endpoint.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",