@kilogent/runner-dev 0.1.6 → 0.1.8

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.js +4 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1257,7 +1257,7 @@ import os from "node:os";
1257
1257
  import path from "node:path";
1258
1258
 
1259
1259
  // src/version.ts
1260
- var RUNNER_VERSION = true ? "0.1.6" : "0.0.0-dev";
1260
+ var RUNNER_VERSION = true ? "0.1.8" : "0.0.0-dev";
1261
1261
  var RUNNER_PACKAGE = true ? "@kilogent/runner-dev" : "@kilogent/runner-dev";
1262
1262
  var RUNNER_BIN = true ? "kilogent-runner-dev" : "kilogent-runner-dev";
1263
1263
 
@@ -2495,7 +2495,7 @@ async function resolveAssistantCredential(db, shipId, machine) {
2495
2495
  const credentialId = settings?.assistant?.credentialId ?? settings?.defaultCredentialId;
2496
2496
  const credentials = await loadShipCredentials(db, shipId).catch(() => []);
2497
2497
  const credential = credentialId ? credentials.find((c) => c.id === credentialId) : void 0;
2498
- const engine2 = credential?.engine ?? DEFAULT_ENGINE_ID;
2498
+ const engine2 = isKnownEngine(credential?.engine) ? credential.engine : DEFAULT_ENGINE_ID;
2499
2499
  const secrets = await resolveJobSecrets({
2500
2500
  db,
2501
2501
  shipId,
@@ -2506,6 +2506,7 @@ async function resolveAssistantCredential(db, shipId, machine) {
2506
2506
  });
2507
2507
  return {
2508
2508
  secrets,
2509
+ engine: engine2,
2509
2510
  // A MODEL, ALWAYS. `engines/claude.ts` puts this straight onto `--model`, and an empty string
2510
2511
  // is an empty flag — a failure that reads as the model misbehaving rather than as a missing
2511
2512
  // value. The engine's own default is the right answer when nothing has been chosen.
@@ -6576,7 +6577,7 @@ async function startDaemon() {
6576
6577
  );
6577
6578
  }
6578
6579
  const { ship: ship2, agent } = packed.ctx;
6579
- engineId = agentEngine(agent);
6580
+ engineId = assistantCredential ? assistantCredential.engine : agentEngine(agent);
6580
6581
  usage = { ...usage, engine: engineId };
6581
6582
  statuses = shipTaskStatuses(ship2);
6582
6583
  const resolvedSecrets = assistantCredential ? assistantCredential.secrets : await resolveJobSecrets({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kilogent/runner-dev",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "type": "module",
5
5
  "description": "Lumi Crew runner daemon — claims jobs from your Ships and executes them as headless agent sessions (Claude Code today) on your own machine.",
6
6
  "//name": "The ONLY package in this monorepo published to the public registry, so it is the one that does not follow the internal @lumi/crew-* convention: `@lumi` is not a scope we own, `@lumi.ai` is (the npm org). The workspace DIRECTORY stays packages/crew/runner — renaming the package is not renaming the folder.",