@buildaharness/aielia 0.3.6 → 0.3.7

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/README.md CHANGED
@@ -794,7 +794,7 @@ keychain — so treat that file accordingly. When
794
794
  `ASSISTANT_MODEL`/`/config set model` isn't set, each backend falls back to the
795
795
  current-generation default id exported from `@buildaharness/runtime`'s
796
796
  `model-defaults.ts` (`openai` → `gpt-5-mini`, `openrouter` →
797
- `anthropic/claude-sonnet-5`, `anthropic` and `proxy` → `claude-sonnet-5`).
797
+ `deepseek/deepseek-v4-flash`, `anthropic` and `proxy` → `claude-sonnet-5`).
798
798
 
799
799
  Transcript, learned experience, reminders, and any in-flight turn's checkpoint
800
800
  persist as real files under `~/.buildaharness/personal-assistant/`
@@ -881,7 +881,7 @@ mode flags take `enabled`/`disabled`):
881
881
  | `askMode` (`ASSISTANT_ASK_MODE`) | `disabled` | See "Clarifying questions" |
882
882
  | `planMode` (`ASSISTANT_PLAN_MODE`) | `legacy` | `gated` or `legacy` plan rollout |
883
883
  | `ambiguityGuardMode` (`ASSISTANT_AMBIGUITY_GUARD`) | `disabled` | Ambiguity guard |
884
- | `tuiMode` (`ASSISTANT_TUI`) | `disabled` | Full-screen terminal UI (Ink); only on a real TTY |
884
+ | `tuiMode` (`ASSISTANT_TUI`) | `enabled` | Full-screen terminal UI (Ink); only on a real TTY |
885
885
  | `updateCheck` (`ASSISTANT_UPDATE_CHECK`) | `enabled` | Passive update check |
886
886
  | `activeProject` (`ASSISTANT_ACTIVE_PROJECT`) | none | Project new project-scoped facts are tagged with (`/project`) |
887
887
  | `goalGraphMode`, `goalGraphSuggestMode` (`ASSISTANT_GOAL_GRAPH`, `ASSISTANT_GOAL_GRAPH_SUGGEST`) | `enabled` in the CLI | Goal tree, steering and next-step options |
@@ -7,8 +7,8 @@ import { createInterface } from "node:readline";
7
7
  import { rename, stat, realpath, readdir, mkdir, unlink, writeFile, readFile } from "node:fs/promises";
8
8
  import { homedir, tmpdir } from "node:os";
9
9
  import { fileURLToPath, pathToFileURL } from "node:url";
10
- import { OPENROUTER_DEFAULT_MODEL, OPENAI_DEFAULT_MODEL, ANTHROPIC_DEFAULT_MODEL, InMemoryReminderStore, FileSystemAdapter, FileSystemExperienceStore, LLMClient, OpenAICompatibleLLMClient, OPENROUTER_EXTRA_HEADERS, OPENROUTER_BASE_URL, OPENAI_BASE_URL, AnthropicLLMClient } from "@buildaharness/runtime";
11
- import { X as buildClaudePrompt, bJ as stripJsonCodeFence, bn as recallToolEnabled, aY as lexicalOffEnvValue, a as ALREADY_STAGED_ACTION_TOOL, bI as stagedActionInput, bh as parseClaudeCliOutput, bK as stripMcpToolPrefix, bo as redactUrlCredentials, b4 as memoryStatusChecks, bg as normalizePlanNodes, P as PROVIDER_SETUP, a3 as cleanApiKey, Z as checkApiKeyFormat, af as envOverridesFromProcessEnv, br as resolveConfig, bG as shouldLaunchTuiApp, Q as applyLayerSettings, bE as sanitizeLayerChoices, bP as testApiKey, bS as validateConfig, an as findInvalidNumericSettings, c as ConfigValidationError, aG as formatSpendCapStatus, aT as isPlanGraphEnabled, bL as stripTerminalControls, z as PersonalAssistant, aQ as isGoalGraphSuggestEnabled, aP as isGoalGraphEnabled, bm as planToSnapshot, V as braveSearch, a7 as createSmtpSender, a6 as createResendSender, aV as isQuitCommand, x as LiveSteeringChannel, aD as formatNextSteps, _ as classifyError, b7 as nodeToLayer, L as LAYER_DISPLAY_NAME, b6 as nodeDisplayName, ah as estimateCostUsd, ap as formatConfigListing, aO as isConfigKey, C as CONFIG_KEYS, E as ENV_VAR_FOR_CONFIG_KEY, bi as parseConfigValue, d as ConfigValueParseError, ar as formatDoctorReport, aq as formatCostSummary, at as formatGoalGraphState, aF as formatSearchResults, ay as formatMemoryHistory, aB as formatMemoryStatus, aA as formatMemoryPendingOutcome, aw as formatMemoryArchive, aJ as formatUndoLogListing, aa as defaultExportFilename, aI as formatTranscriptMarkdown, aH as formatStatus, au as formatHelp, q as LAYER_ORDER, av as formatLayerListing, bT as withLayerChoice, w as LayerSettingError, az as formatMemoryInjection, Y as buildWhyChain, s as LAYER_SHORT_CODE, ab as defaultMemoryExportFilename, ax as formatMemoryExport, b3 as memoryAuditLogEnabled, aC as formatMemorySummary } from "./provider-setup-CV3S_TAS.js";
10
+ import { OPENROUTER_DEFAULT_MODEL, OPENAI_DEFAULT_MODEL, ANTHROPIC_DEFAULT_MODEL, InMemoryReminderStore, FileSystemAdapter, FileSystemExperienceStore, defaultModelForBackend, LLMClient, OpenAICompatibleLLMClient, OPENROUTER_EXTRA_HEADERS, OPENROUTER_BASE_URL, OPENAI_BASE_URL, AnthropicLLMClient } from "@buildaharness/runtime";
11
+ import { Y as buildClaudePrompt, bK as stripJsonCodeFence, bo as recallToolEnabled, aZ as lexicalOffEnvValue, a as ALREADY_STAGED_ACTION_TOOL, bJ as stagedActionInput, bi as parseClaudeCliOutput, bL as stripMcpToolPrefix, bp as redactUrlCredentials, b5 as memoryStatusChecks, bh as normalizePlanNodes, P as PROVIDER_SETUP, a4 as cleanApiKey, _ as checkApiKeyFormat, ag as envOverridesFromProcessEnv, bs as resolveConfig, bH as shouldLaunchTuiApp, n as DEFAULT_TUI_MODE, T as applyLayerSettings, bF as sanitizeLayerChoices, bQ as testApiKey, bT as validateConfig, ao as findInvalidNumericSettings, c as ConfigValidationError, aH as formatSpendCapStatus, aU as isPlanGraphEnabled, bM as stripTerminalControls, B as PersonalAssistant, aR as isGoalGraphSuggestEnabled, aQ as isGoalGraphEnabled, bn as planToSnapshot, X as braveSearch, a8 as createSmtpSender, a7 as createResendSender, aW as isQuitCommand, y as LiveSteeringChannel, aE as formatNextSteps, $ as classifyError, b8 as nodeToLayer, L as LAYER_DISPLAY_NAME, b7 as nodeDisplayName, ai as estimateCostUsd, aq as formatConfigListing, aP as isConfigKey, C as CONFIG_KEYS, E as ENV_VAR_FOR_CONFIG_KEY, bj as parseConfigValue, d as ConfigValueParseError, as as formatDoctorReport, ar as formatCostSummary, au as formatGoalGraphState, aG as formatSearchResults, az as formatMemoryHistory, aC as formatMemoryStatus, aB as formatMemoryPendingOutcome, ax as formatMemoryArchive, aK as formatUndoLogListing, ab as defaultExportFilename, aJ as formatTranscriptMarkdown, aI as formatStatus, av as formatHelp, r as LAYER_ORDER, aw as formatLayerListing, bU as withLayerChoice, x as LayerSettingError, aA as formatMemoryInjection, Z as buildWhyChain, t as LAYER_SHORT_CODE, ac as defaultMemoryExportFilename, ay as formatMemoryExport, b4 as memoryAuditLogEnabled, aD as formatMemorySummary } from "./provider-setup-wX2IBw2X.js";
12
12
  import { spawn } from "node:child_process";
13
13
  import { createServer, connect } from "node:net";
14
14
  import { createRequire } from "node:module";
@@ -129,7 +129,7 @@ function createNodeFsBackend() {
129
129
  }
130
130
  };
131
131
  }
132
- const CLI_VERSION = "0.3.6";
132
+ const CLI_VERSION = "0.3.7";
133
133
  function seaCacheDir(version, home = homedir()) {
134
134
  return join(home, ".buildaharness", "personal-assistant", "sea-cache", version);
135
135
  }
@@ -3506,7 +3506,8 @@ async function buildAssistant(config, { backend, dataDir, remindersFile }) {
3506
3506
  const llmClient = buildLlmClient(config, workspaceRoot, remindersFile);
3507
3507
  return PersonalAssistant.create({
3508
3508
  llmClient,
3509
- model: config.model,
3509
+ // Name the backend's real default when none is set, so spend tracking prices the model that actually runs (not the Anthropic default).
3510
+ model: config.model ?? defaultModelForBackend(config.llmBackend),
3510
3511
  // config.activeProject (set via /project <name>) overrides the default of "the workspace
3511
3512
  // I'm running in" — see PersonalAssistantOptions.activeProject's doc comment.
3512
3513
  activeProject: config.activeProject || workspaceRoot,
@@ -4954,8 +4955,8 @@ async function mainInner(argv) {
4954
4955
  if (result == null ? void 0 : result.updateAvailable) console.log(updateAvailableNotice(result.latestVersion, CLI_VERSION, isSea));
4955
4956
  });
4956
4957
  }
4957
- if (shouldLaunchTuiApp(config.tuiMode ?? "disabled", Boolean(process.stdout.isTTY), Boolean(process.stdin.isTTY))) {
4958
- const { runTuiApp } = await import("./tui-app-CJq6YaiP.js");
4958
+ if (shouldLaunchTuiApp(config.tuiMode ?? DEFAULT_TUI_MODE, Boolean(process.stdout.isTTY), Boolean(process.stdin.isTTY))) {
4959
+ const { runTuiApp } = await import("./tui-app-C0J6HRzv.js");
4959
4960
  await runTuiApp();
4960
4961
  return;
4961
4962
  }
@@ -4982,4 +4983,4 @@ export {
4982
4983
  sanitizeLabel as s,
4983
4984
  toLines as t
4984
4985
  };
4985
- //# sourceMappingURL=bin-BYRl4xXM.js.map
4986
+ //# sourceMappingURL=bin-C_hgDdSf.js.map