@bike4mind/cli 5.0.1 → 5.2.0

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 (32) hide show
  1. package/dist/{AgentHistoryStore-DW6BBbVj.mjs → AgentHistoryStore-dVWBO__c.mjs} +436 -30
  2. package/dist/{ApiClient-D4bDuWXg.mjs → ApiClient-ByJM2OpM.mjs} +3 -3
  3. package/dist/{BubblewrapRuntime-D3EO5Y0C.mjs → BubblewrapRuntime-BQICHr_L.mjs} +2 -2
  4. package/dist/ConfigStore-9rudXRh5.mjs +2 -0
  5. package/dist/{ConfigStore-BuLA_-uZ.mjs → ConfigStore-BnhyywYB.mjs} +1 -1
  6. package/dist/{Logger-CjaYx85U.mjs → Logger-DqWiTWp3.mjs} +1842 -381
  7. package/dist/{SandboxOrchestrator-yORi2eFV.mjs → SandboxOrchestrator-B-6_ssTd.mjs} +1 -1
  8. package/dist/{SandboxRuntimeAdapter-BmkaFzqU.mjs → SandboxRuntimeAdapter-CJhDJVwo.mjs} +2 -2
  9. package/dist/{SandboxRuntimeAdapter-BjJwJNfg.mjs → SandboxRuntimeAdapter-DdF8pI-i.mjs} +1 -1
  10. package/dist/{SeatbeltRuntime-CyZNmFwD.mjs → SeatbeltRuntime-oPrQ1VGL.mjs} +2 -2
  11. package/dist/{WorkItemsClient-xmo0DrCm.mjs → WorkItemsClient-BRvm9GFY.mjs} +1 -1
  12. package/dist/{buildToolSearch-CXxEtVKc.mjs → buildToolSearch-BLpr9m1F.mjs} +2 -2
  13. package/dist/commands/acpCommand.mjs +5 -5
  14. package/dist/commands/apiCommand.mjs +1 -1
  15. package/dist/commands/doctorCommand.mjs +2 -2
  16. package/dist/commands/envCommand.mjs +1 -1
  17. package/dist/commands/headlessCommand.mjs +6 -6
  18. package/dist/commands/mcpCommand.mjs +3 -3
  19. package/dist/commands/mirrorCommand.mjs +2 -2
  20. package/dist/commands/modelsCommand.mjs +4 -4
  21. package/dist/commands/pluginCommand.mjs +1 -1
  22. package/dist/commands/skillsCommand.mjs +3 -3
  23. package/dist/commands/updateCommand.mjs +2 -2
  24. package/dist/{dist-DsMzCRLX.mjs → dist-DQHccCo7.mjs} +122 -303
  25. package/dist/{fit-C9eLTDcR.mjs → fit-hHSF95FV.mjs} +3 -3
  26. package/dist/index.mjs +9 -9
  27. package/dist/{modelServers-DeOGFwLi.mjs → modelServers-BmmJuF8X.mjs} +1 -1
  28. package/dist/{package-CvffLo0I.mjs → package-CZ2nssWx.mjs} +1 -1
  29. package/dist/{serve-tmC__JNj.mjs → serve-BDv7yCLB.mjs} +247 -18
  30. package/dist/{updateChecker-U4AfrPKj.mjs → updateChecker-DoKgSiYX.mjs} +1 -1
  31. package/package.json +13 -14
  32. package/dist/ConfigStore-DdqxfmDr.mjs +0 -2
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { Ct as getQuestErrorCode, Dt as isEnforceCreditsLocked, E as CompletionReasoningEffortSchema, F as EMBEDDING_MODEL_IDS, Gt as servableEmbeddingDimensions, H as MODEL_INFO_FIELD_GROUP_OF, Jt as stripDeliveredArtifactBlocks, K as OllamaEmbeddingModel, Mt as isSupportedEmbeddingModel, Nt as isSupportedFabFileMimeType, Ot as isExpectedToolError, P as EMBEDDING_MODEL_CATALOG, Pt as isUserInitiatedAbort, S as CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS, T as ChatModels, Tt as hasDeliverablePinnedArtifact, Ut as resolveSettingDefinition, W as ModelBackend, Y as PermissionDeniedError, Yt as stripToolArtifactMarkup, _ as AudioMimeType, _t as escapeThinkMarkers, d as ARTIFACT_REMOVED_PLACEHOLDER, f as AdminAiStoredConfigSchema, gt as createThinkMarkerEscaper, hn as WEBSITE_URL, lt as VoyageAIEmbeddingModel, mn as APP_NAME, ot as SupportedFabFileMimeTypes, p as AiAccessRefusedError, q as OpenAIEmbeddingModel, tn as visibleReplyText, u as ARTIFACT_DELIVERED_PLACEHOLDER, vt as filterToolArtifactMarkup, xt as getEmbeddingModelCapabilities, y as BedrockEmbeddingModel } from "./Logger-CjaYx85U.mjs";
2
+ import { C as CONTEXT_WINDOW_SAFETY_BUFFER_TOKENS, D as CompletionReasoningEffortSchema, E as ChatModels, Et as hasDeliverablePinnedArtifact, F as EMBEDDING_MODEL_CATALOG, Ft as isSupportedFabFileMimeType, G as ModelBackend, I as EMBEDDING_MODEL_IDS, It as isUserInitiatedAbort, J as OpenAIEmbeddingModel, Pt as isSupportedEmbeddingModel, St as getEmbeddingModelCapabilities, U as MODEL_INFO_FIELD_GROUP_OF, X as PermissionDeniedError, Xt as stripDeliveredArtifactBlocks, Zt as stripToolArtifactMarkup, _ as AudioMimeType, _n as WEBSITE_URL, _t as createThinkMarkerEscaper, b as BedrockEmbeddingModel, d as ARTIFACT_REMOVED_PLACEHOLDER, gn as APP_NAME, kt as isExpectedToolError, p as AiAccessRefusedError, q as OllamaEmbeddingModel, qt as servableEmbeddingDimensions, rn as visibleReplyText, st as SupportedFabFileMimeTypes, u as ARTIFACT_DELIVERED_PLACEHOLDER, ut as VoyageAIEmbeddingModel, vt as escapeThinkMarkers, wt as getQuestErrorCode, yt as filterToolArtifactMarkup } from "./Logger-DqWiTWp3.mjs";
3
3
  import { b as ollamaNumCtx } from "./modelHub-BSB6qRFP.mjs";
4
4
  import "crypto";
5
5
  import path from "path";
@@ -13,6 +13,7 @@ import https from "https";
13
13
  import OpenAI from "openai";
14
14
  import { Agent } from "undici";
15
15
  import { Ollama } from "ollama";
16
+ import { AsyncLocalStorage } from "node:async_hooks";
16
17
  import { createParser } from "eventsource-parser";
17
18
  //#region ../../b4m-core/observability/dist/index.mjs
18
19
  const REDACTED = "[REDACTED]";
@@ -653,6 +654,7 @@ new https.Agent({
653
654
  lookup: ssrfSafeLookup,
654
655
  keepAlive: false
655
656
  });
657
+ new Map(EMBEDDING_MODEL_IDS.filter(isSupportedEmbeddingModel).map((model) => [model, getEmbeddingModelCapabilities(model).dimensions.native]));
656
658
  SupportedFabFileMimeTypes.TXT_MARKDOWN, SupportedFabFileMimeTypes.TXT_MD_LEGACY, SupportedFabFileMimeTypes.TXT_PLAIN;
657
659
  z$1.object({
658
660
  text: z$1.string(),
@@ -709,29 +711,28 @@ embeddingModelInfoMap(Object.values(OllamaEmbeddingModel));
709
711
  "[role=\"tooltip\"]",
710
712
  "[role=\"radiogroup\"]"
711
713
  ].join(", ");
712
- var BaseStorage = class {
713
- /**
714
- * Origin a browser fetches this storage's signed GET links from, or '' when signed links
715
- * are not usable by a browser here. Storages that cannot presign for browsers keep the
716
- * default.
717
- */
718
- async browserSigningOrigin() {
719
- return "";
720
- }
721
- };
722
- new Map(EMBEDDING_MODEL_IDS.filter(isSupportedEmbeddingModel).map((model) => [model, getEmbeddingModelCapabilities(model).dimensions.native]));
723
- ChatModels.KIMI_K3;
724
- ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6, ChatModels.KIMI_K2_5;
714
+ ChatModels.KIMI_K3, ChatModels.KIMI_K3_1_PRO;
715
+ ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6;
725
716
  ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED;
726
717
  ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6;
727
- ChatModels.KIMI_K3, ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6, ChatModels.KIMI_K2_5;
728
- ChatModels.KIMI_K2_THINKING_BEDROCK, ChatModels.KIMI_K2_5_BEDROCK, ChatModels.DEEPSEEK_R1_BEDROCK, ChatModels.DEEPSEEK_FLASH, ChatModels.DEEPSEEK_V4_PRO, ChatModels.KIMI_K3, ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6, ChatModels.KIMI_K2_5;
718
+ ChatModels.KIMI_K3, ChatModels.KIMI_K3_1_PRO, ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6;
719
+ ChatModels.KIMI_K2_THINKING_BEDROCK, ChatModels.KIMI_K2_5_BEDROCK, ChatModels.DEEPSEEK_R1_BEDROCK, ChatModels.DEEPSEEK_FLASH, ChatModels.DEEPSEEK_V4_PRO, ChatModels.KIMI_K3, ChatModels.KIMI_K3_1_PRO, ChatModels.KIMI_K2_7_CODE, ChatModels.KIMI_K2_7_CODE_HIGHSPEED, ChatModels.KIMI_K2_6;
729
720
  ChatModels.CLAUDE_4_7_OPUS, ChatModels.CLAUDE_4_7_OPUS_BEDROCK, ChatModels.CLAUDE_4_8_OPUS, ChatModels.CLAUDE_4_8_OPUS_BEDROCK, ChatModels.CLAUDE_5_SONNET, ChatModels.CLAUDE_5_SONNET_BEDROCK, ChatModels.CLAUDE_5_OPUS, ChatModels.CLAUDE_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_HAIKU, ChatModels.CLAUDE_5_5_HAIKU_BEDROCK, ChatModels.CLAUDE_5_5_SONNET, ChatModels.CLAUDE_5_5_SONNET_BEDROCK;
730
- ChatModels.CLAUDE_5_SONNET, ChatModels.CLAUDE_5_SONNET_BEDROCK, ChatModels.CLAUDE_5_5_SONNET, ChatModels.CLAUDE_5_5_SONNET_BEDROCK, ChatModels.CLAUDE_FABLE_5, ChatModels.CLAUDE_FABLE_5_BEDROCK, ChatModels.CLAUDE_FABLE_5_1_BEDROCK, ChatModels.CLAUDE_5_OPUS, ChatModels.CLAUDE_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_OPUS, ChatModels.CLAUDE_5_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_HAIKU, ChatModels.CLAUDE_5_5_HAIKU_BEDROCK;
721
+ ChatModels.CLAUDE_5_SONNET, ChatModels.CLAUDE_5_SONNET_BEDROCK, ChatModels.CLAUDE_5_5_SONNET, ChatModels.CLAUDE_5_5_SONNET_BEDROCK, ChatModels.CLAUDE_FABLE_5, ChatModels.CLAUDE_FABLE_5_1, ChatModels.CLAUDE_FABLE_5_2, ChatModels.CLAUDE_FABLE_5_BEDROCK, ChatModels.CLAUDE_FABLE_5_1_BEDROCK, ChatModels.CLAUDE_5_OPUS, ChatModels.CLAUDE_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_OPUS, ChatModels.CLAUDE_5_5_OPUS_BEDROCK, ChatModels.CLAUDE_5_5_HAIKU, ChatModels.CLAUDE_5_5_HAIKU_BEDROCK;
731
722
  ChatModels.DEEPSEEK_FLASH, ChatModels.DEEPSEEK_V4_PRO;
732
723
  ModelBackend.Anthropic, ModelBackend.Gemini, ModelBackend.XAI, ModelBackend.Ollama, ModelBackend.BFL, ModelBackend.LocalImage, ModelBackend.AWS;
733
724
  CompletionReasoningEffortSchema.options;
734
725
  //#endregion
726
+ //#region ../../b4m-core/llm-adapters/dist/modelDataProviders.mjs
727
+ const changeListeners = /* @__PURE__ */ new Set();
728
+ /** Returns an unsubscribe function. index.ts registers one to drop its caches. */
729
+ function onModelDataProviderChange(listener) {
730
+ changeListeners.add(listener);
731
+ return () => {
732
+ changeListeners.delete(listener);
733
+ };
734
+ }
735
+ //#endregion
735
736
  //#region ../../b4m-core/llm-adapters/dist/index.mjs
736
737
  function getAbortAwareRetrySignal({ retryMode, abortSignal, stream, tools, responseFormat, _internal }, singleAttemptSupported = false) {
737
738
  if (retryMode !== "abort-aware" && retryMode !== "single-attempt") return void 0;
@@ -1329,11 +1330,13 @@ function splitCacheInclusiveInput(totalPromptTokens, cacheReadTokens) {
1329
1330
  * `prior` plus one provider request's usage, split like splitCacheInclusiveInput. Takes the
1330
1331
  * request's OWN prompt/cached/output counts, never the running totals: each entry is priced on its
1331
1332
  * own long-context tier (getTurnsCost), so an accumulated value here would re-tier the whole chain.
1333
+ * `timing` is for a model priced by time of day (ModelInfo.offPeak).
1332
1334
  */
1333
- function appendCacheInclusiveTurn(prior, turnPromptTokens, turnCacheReadTokens, turnOutputTokens) {
1335
+ function appendCacheInclusiveTurn(prior, turnPromptTokens, turnCacheReadTokens, turnOutputTokens, timing) {
1334
1336
  return [...prior ?? [], {
1335
1337
  ...splitCacheInclusiveInput(turnPromptTokens, turnCacheReadTokens),
1336
- outputTokens: turnOutputTokens
1338
+ outputTokens: turnOutputTokens,
1339
+ ...timing
1337
1340
  }];
1338
1341
  }
1339
1342
  /**
@@ -1531,7 +1534,7 @@ function appendIdentityReminderToMessages(messages, identityReminder) {
1531
1534
  content: identityReminder
1532
1535
  }, ...messages];
1533
1536
  }
1534
- ChatModels.CLAUDE_4_5_SONNET, ChatModels.CLAUDE_4_1_OPUS, ChatModels.CLAUDE_4_5_HAIKU, ChatModels.CLAUDE_4_5_OPUS, ChatModels.CLAUDE_4_6_SONNET, ChatModels.CLAUDE_4_6_OPUS;
1537
+ ChatModels.CLAUDE_4_5_SONNET, ChatModels.CLAUDE_4_5_HAIKU, ChatModels.CLAUDE_4_6_SONNET, ChatModels.CLAUDE_4_6_OPUS;
1535
1538
  /**
1536
1539
  * A reasoning model spent its whole output budget thinking and produced no answer
1537
1540
  * (finish_reason: length). The same budget fails the same way, so callers must not retry it.
@@ -2415,12 +2418,14 @@ var OllamaBackend = class OllamaBackend {
2415
2418
  }
2416
2419
  };
2417
2420
  ChatModels.O1_PREVIEW, ChatModels.O1_MINI, ChatModels.O1, ChatModels.O3_MINI, ChatModels.O3, ChatModels.O4_MINI;
2418
- ChatModels.GPT5, ChatModels.GPT5_2025_08_07, ChatModels.GPT5_MINI, ChatModels.GPT5_NANO, ChatModels.GPT5_CHAT_LATEST;
2419
- ChatModels.GPT5_1, ChatModels.GPT5_1_CHAT_LATEST;
2421
+ ChatModels.GPT5, ChatModels.GPT5_2025_08_07, ChatModels.GPT5_MINI, ChatModels.GPT5_NANO;
2422
+ ChatModels.GPT5_1;
2420
2423
  ChatModels.GPT5_2, ChatModels.GPT5_2_CHAT_LATEST;
2421
2424
  ChatModels.GPT5_4, ChatModels.GPT5_4_MINI, ChatModels.GPT5_4_MINI_2026_03_17, ChatModels.GPT5_4_NANO;
2422
2425
  ChatModels.GPT5_5;
2423
2426
  ChatModels.GPT5_6_SOL, ChatModels.GPT5_6_LUNA, ChatModels.GPT5_6_TERRA;
2427
+ ChatModels.GPT6_2_ASTRA, ChatModels.GPT6_2_SOL, ChatModels.GPT6_1_TERRA, ChatModels.GPT6_LUNA;
2428
+ new AsyncLocalStorage();
2424
2429
  ModelBackend.Bedrock, ModelBackend.AWS, ModelBackend.OpenAI, ModelBackend.Anthropic, ModelBackend.Gemini, ModelBackend.Ollama, ModelBackend.OpenAICompatible, ModelBackend.BFL, ModelBackend.XAI, ModelBackend.Kimi, ModelBackend.DeepSeek, ModelBackend.LocalImage, ModelBackend.VoyageAI;
2425
2430
  Object.values(ModelBackend);
2426
2431
  Object.entries(MODEL_INFO_FIELD_GROUP_OF);
@@ -8653,290 +8658,16 @@ function textOf(message) {
8653
8658
  return content.map((part) => typeof part === "string" ? part : part.text ?? "").join("");
8654
8659
  }
8655
8660
  Object.freeze({ provenance: "not_reported" });
8661
+ const _inFlightBuilds = /* @__PURE__ */ new Map();
8662
+ let _revisionEpoch = 0;
8663
+ onModelDataProviderChange((kind) => {
8664
+ if (kind === "revision") _revisionEpoch += 1;
8665
+ _inFlightBuilds.clear();
8666
+ });
8656
8667
  ModelBackend.Ollama, ModelBackend.LocalImage;
8657
8668
  //#endregion
8658
8669
  //#region ../../b4m-core/utils/dist/index.mjs
8659
8670
  /**
8660
- * In-memory cache for admin settings with TTL support and active cleanup
8661
- * Can be easily extended to use Redis for production
8662
- */
8663
- var AdminSettingsCache = class AdminSettingsCache {
8664
- cache = /* @__PURE__ */ new Map();
8665
- individualCache = /* @__PURE__ */ new Map();
8666
- /**
8667
- * Every call through this field is optional-chained (`this.logger.debug?.()`).
8668
- *
8669
- * A cache must not throw because it could not log, and this one is exposed to that: it is a
8670
- * process-wide singleton created with whichever logger happens to reach `getSettingsCache` first.
8671
- * What each caller then does with a throw varies, and it is mostly NOT a degrade-to-defaults
8672
- * guard: `getSettingsByNames` has none at all, the scoped resolver guards one layer out in
8673
- * `resolveAll`, and `resolveSpendLevers` deliberately rethrows to halt spend. So a logger missing
8674
- * a quieter level could surface as a silent wrong VALUE, as an unhandled rejection, or as a hard
8675
- * fail-closed, depending on who asked. `ScopedSettingsCache` is built by the same factory pair
8676
- * and still has one unguarded call - the same hazard, not a solved one.
8677
- */
8678
- logger;
8679
- cleanupInterval = null;
8680
- maxCacheSize = 1e3;
8681
- static DEFAULT_TTL = 3e5;
8682
- static DEVELOPMENT_TTL = 3e4;
8683
- static CLEANUP_INTERVAL = 6e4;
8684
- constructor(logger) {
8685
- this.logger = logger;
8686
- this.startCleanupTimer();
8687
- }
8688
- /**
8689
- * Start periodic cleanup timer (only in persistent environments)
8690
- */
8691
- startCleanupTimer() {
8692
- if (process.env.NODE_ENV !== "production" || process.env.VERCEL || process.env.AWS_LAMBDA_FUNCTION_NAME) {
8693
- this.logger.debug?.("Skipping cleanup timer in serverless environment");
8694
- return;
8695
- }
8696
- this.cleanupInterval = setInterval(() => {
8697
- this.performCleanup();
8698
- }, AdminSettingsCache.CLEANUP_INTERVAL);
8699
- this.logger.debug?.("Started cache cleanup timer");
8700
- }
8701
- /**
8702
- * Stop cleanup timer (for graceful shutdown)
8703
- */
8704
- stopCleanupTimer() {
8705
- if (this.cleanupInterval) {
8706
- clearInterval(this.cleanupInterval);
8707
- this.cleanupInterval = null;
8708
- this.logger.debug?.("Stopped cache cleanup timer");
8709
- }
8710
- }
8711
- /**
8712
- * Active cleanup of expired entries
8713
- */
8714
- performCleanup() {
8715
- const beforeSize = this.cache.size + this.individualCache.size;
8716
- let removedCount = 0;
8717
- for (const [key, entry] of Array.from(this.cache.entries())) if (!this.isValid(entry.timestamp, entry.ttl)) {
8718
- this.cache.delete(key);
8719
- removedCount++;
8720
- }
8721
- for (const [key, entry] of Array.from(this.individualCache.entries())) if (!this.isValid(entry.timestamp, entry.ttl)) {
8722
- this.individualCache.delete(key);
8723
- removedCount++;
8724
- }
8725
- if (this.individualCache.size > this.maxCacheSize) {
8726
- const entries = Array.from(this.individualCache.entries());
8727
- entries.sort((a, b) => a[1].timestamp - b[1].timestamp);
8728
- const toRemove = this.individualCache.size - this.maxCacheSize;
8729
- for (let i = 0; i < toRemove; i++) {
8730
- this.individualCache.delete(entries[i][0]);
8731
- removedCount++;
8732
- }
8733
- this.logger.warn?.(`Emergency cache cleanup: removed ${toRemove} entries due to size limit`);
8734
- }
8735
- if (removedCount > 0) this.logger.debug?.(`Cache cleanup removed ${removedCount} expired entries (${beforeSize} → ${this.cache.size + this.individualCache.size})`);
8736
- }
8737
- /**
8738
- * Get TTL based on environment
8739
- */
8740
- getTTL() {
8741
- return process.env.NODE_ENV === "development" ? AdminSettingsCache.DEVELOPMENT_TTL : AdminSettingsCache.DEFAULT_TTL;
8742
- }
8743
- /**
8744
- * Check if cache entry is valid (not expired)
8745
- */
8746
- isValid(timestamp, ttl) {
8747
- return Date.now() - timestamp < ttl;
8748
- }
8749
- /**
8750
- * Get all admin settings with caching
8751
- */
8752
- async getSettingsMap(db) {
8753
- const cacheKey = "all_settings";
8754
- const cached = this.cache.get(cacheKey);
8755
- if (cached && this.isValid(cached.timestamp, cached.ttl)) {
8756
- this.logger.debug?.("📦 Admin settings cache HIT");
8757
- return cached.data;
8758
- }
8759
- if (cached) this.cache.delete(cacheKey);
8760
- this.logger.debug?.("🔍 Admin settings cache MISS - fetching from database");
8761
- const fetchStart = Date.now();
8762
- const settingsMap = (await db.adminSettings.findAll()).reduce((out, s) => {
8763
- out[s.settingName] = s.settingValue;
8764
- return out;
8765
- }, {});
8766
- const fetchTime = Date.now() - fetchStart;
8767
- this.logger.info?.(`📦 Cached ${Object.keys(settingsMap).length} admin settings in ${fetchTime}ms`);
8768
- const ttl = this.getTTL();
8769
- this.cache.set(cacheKey, {
8770
- data: settingsMap,
8771
- timestamp: Date.now(),
8772
- ttl
8773
- });
8774
- Object.entries(settingsMap).forEach(([key, value]) => {
8775
- this.individualCache.set(key, {
8776
- value,
8777
- timestamp: Date.now(),
8778
- ttl
8779
- });
8780
- });
8781
- return settingsMap;
8782
- }
8783
- /**
8784
- * Get individual admin setting with caching
8785
- */
8786
- async getSettingByName(settingName, db) {
8787
- const cached = this.individualCache.get(settingName);
8788
- if (cached && this.isValid(cached.timestamp, cached.ttl)) {
8789
- this.logger.debug?.(`📦 Individual setting '${settingName}' cache HIT`);
8790
- return cached.value;
8791
- }
8792
- if (cached) this.individualCache.delete(settingName);
8793
- this.logger.debug?.(`🔍 Individual setting '${settingName}' cache MISS - fetching from database`);
8794
- const fetchStart = Date.now();
8795
- const value = (await db.adminSettings.findBySettingName(settingName))?.settingValue ?? null;
8796
- const fetchTime = Date.now() - fetchStart;
8797
- this.logger.debug?.(`📦 Cached individual setting '${settingName}' in ${fetchTime}ms`);
8798
- this.individualCache.set(settingName, {
8799
- value,
8800
- timestamp: Date.now(),
8801
- ttl: this.getTTL()
8802
- });
8803
- return value;
8804
- }
8805
- /**
8806
- * Get multiple admin settings with caching
8807
- */
8808
- async getSettingsByNames(settingNames, db) {
8809
- const result = {};
8810
- const uncachedSettings = [];
8811
- for (const settingName of settingNames) {
8812
- const cached = this.individualCache.get(settingName);
8813
- if (cached && this.isValid(cached.timestamp, cached.ttl)) {
8814
- if (cached.value !== null) result[settingName] = cached.value;
8815
- } else {
8816
- if (cached) this.individualCache.delete(settingName);
8817
- uncachedSettings.push(settingName);
8818
- }
8819
- }
8820
- if (uncachedSettings.length > 0) {
8821
- this.logger.debug?.(`🔍 Batch fetching ${uncachedSettings.length} uncached settings: ${uncachedSettings.join(", ")}`);
8822
- const fetchStart = Date.now();
8823
- const settings = await db.adminSettings.findBySettingNames(uncachedSettings);
8824
- const fetchTime = Date.now() - fetchStart;
8825
- this.logger.debug?.(`📦 Batch fetched ${settings.length} settings in ${fetchTime}ms`);
8826
- const ttl = this.getTTL();
8827
- settings.forEach((setting) => {
8828
- result[setting.settingName] = setting.settingValue;
8829
- this.individualCache.set(setting.settingName, {
8830
- value: setting.settingValue,
8831
- timestamp: Date.now(),
8832
- ttl
8833
- });
8834
- });
8835
- uncachedSettings.forEach((settingName) => {
8836
- if (!settings.some((s) => s.settingName === settingName)) this.individualCache.set(settingName, {
8837
- value: null,
8838
- timestamp: Date.now(),
8839
- ttl
8840
- });
8841
- });
8842
- }
8843
- this.logger.debug?.(`📦 Returned ${Object.keys(result).length} settings (${settingNames.length - uncachedSettings.length} from cache, ${uncachedSettings.length} from DB)`);
8844
- return result;
8845
- }
8846
- /**
8847
- * Invalidate specific setting(s) from cache
8848
- */
8849
- invalidateSetting(settingName) {
8850
- this.individualCache.delete(settingName);
8851
- this.cache.delete("all_settings");
8852
- this.logger.info?.(`🗑️ Invalidated cache for setting: ${settingName}`);
8853
- }
8854
- /**
8855
- * Invalidate all cached admin settings
8856
- */
8857
- invalidateAll() {
8858
- this.cache.clear();
8859
- this.individualCache.clear();
8860
- this.logger.info?.("🗑️ Invalidated all admin settings cache");
8861
- }
8862
- /**
8863
- * Get cache statistics for monitoring
8864
- */
8865
- getStats() {
8866
- const estimateMemoryUsage = () => {
8867
- let totalSize = 0;
8868
- for (const [key, value] of Array.from(this.individualCache.entries())) {
8869
- totalSize += key.length * 2;
8870
- totalSize += (value.value?.length || 0) * 2;
8871
- totalSize += 32;
8872
- }
8873
- return totalSize;
8874
- };
8875
- return {
8876
- totalEntries: this.cache.size,
8877
- individualEntries: this.individualCache.size,
8878
- memoryUsage: {
8879
- approximate: `~${Math.round(estimateMemoryUsage() / 1024)}KB`,
8880
- cacheSize: this.cache.size,
8881
- individualCacheSize: this.individualCache.size
8882
- },
8883
- environment: {
8884
- isServerless: !!(process.env.VERCEL || process.env.AWS_LAMBDA_FUNCTION_NAME),
8885
- hasCleanupTimer: this.cleanupInterval !== null
8886
- }
8887
- };
8888
- }
8889
- /**
8890
- * Warm up the cache by fetching all settings
8891
- */
8892
- async warmUp(db) {
8893
- this.logger.info?.("🔥 Warming up admin settings cache...");
8894
- await this.getSettingsMap(db);
8895
- this.logger.info?.("✅ Admin settings cache warmed up");
8896
- }
8897
- /**
8898
- * Graceful shutdown - cleanup timers
8899
- */
8900
- shutdown() {
8901
- this.stopCleanupTimer();
8902
- this.logger.info?.("🛑 Admin settings cache shutdown complete");
8903
- }
8904
- };
8905
- let globalSettingsCache = null;
8906
- /**
8907
- * Get or create the global settings cache instance
8908
- */
8909
- function getSettingsCache(logger) {
8910
- if (!globalSettingsCache) globalSettingsCache = new AdminSettingsCache(logger || new Logger());
8911
- return globalSettingsCache;
8912
- }
8913
- function getSettingsValue(key, settings, defaultValue) {
8914
- if (key === "enforceCredits" && isEnforceCreditsLocked()) return true;
8915
- const settingConfig = resolveSettingDefinition(key);
8916
- if (!settingConfig) {
8917
- Logger.globalInstance.warn(`Unknown setting key: ${key}`);
8918
- return defaultValue;
8919
- }
8920
- const rawValue = settings[key];
8921
- const parsed = (key === "adminAiConfig" ? AdminAiStoredConfigSchema : settingConfig.schema).safeParse(rawValue);
8922
- if (parsed.success) {
8923
- if (parsed.data === "" && defaultValue !== void 0) return defaultValue;
8924
- return parsed.data;
8925
- } else return defaultValue !== void 0 ? defaultValue : settingConfig.defaultValue;
8926
- }
8927
- /**
8928
- * Retrieves all admin settings from the database and converts them into a key-value map.
8929
- * Uses caching for improved performance.
8930
- */
8931
- async function getSettingsMap(db, options) {
8932
- const logger = options?.logger;
8933
- if (options?.skipCache) return (options?.names ? await db.adminSettings.findBySettingNames(options.names) : await db.adminSettings.findAll()).reduce((out, s) => {
8934
- out[s.settingName] = s.settingValue;
8935
- return out;
8936
- }, {});
8937
- return getSettingsCache(logger).getSettingsMap(db);
8938
- }
8939
- /**
8940
8671
  * Extracts the extension from a file name and returns it in lowercase without the leading dot.
8941
8672
  *
8942
8673
  * @param fileName
@@ -9196,6 +8927,10 @@ const operations = {
9196
8927
  method: "POST",
9197
8928
  path: "/api/v1/files/bulk-delete"
9198
8929
  },
8930
+ cancelFunctionCall: {
8931
+ method: "POST",
8932
+ path: "/api/v1/functions/calls/{call_id}/cancel"
8933
+ },
9199
8934
  cancelImageJob: {
9200
8935
  method: "POST",
9201
8936
  path: "/api/v1/image-jobs/{id}/cancel"
@@ -9276,6 +9011,10 @@ const operations = {
9276
9011
  method: "POST",
9277
9012
  path: "/api/v1/files"
9278
9013
  },
9014
+ createFunction: {
9015
+ method: "POST",
9016
+ path: "/api/v1/functions"
9017
+ },
9279
9018
  createImageJob: {
9280
9019
  method: "POST",
9281
9020
  path: "/api/v1/image-jobs"
@@ -9300,6 +9039,10 @@ const operations = {
9300
9039
  method: "POST",
9301
9040
  path: "/api/v1/sessions"
9302
9041
  },
9042
+ createSessionTurn: {
9043
+ method: "POST",
9044
+ path: "/api/v1/turns"
9045
+ },
9303
9046
  createSkill: {
9304
9047
  method: "POST",
9305
9048
  path: "/api/v1/skills"
@@ -9348,6 +9091,10 @@ const operations = {
9348
9091
  method: "DELETE",
9349
9092
  path: "/api/v1/files/{id}"
9350
9093
  },
9094
+ deleteFunction: {
9095
+ method: "DELETE",
9096
+ path: "/api/v1/functions/{id}"
9097
+ },
9351
9098
  deletePersona: {
9352
9099
  method: "DELETE",
9353
9100
  path: "/api/v1/personas/{id}"
@@ -9392,6 +9139,10 @@ const operations = {
9392
9139
  method: "POST",
9393
9140
  path: "/api/v1/tools/web-fetch"
9394
9141
  },
9142
+ findFunctionRecipient: {
9143
+ method: "GET",
9144
+ path: "/api/v1/functions/{id}/recipient"
9145
+ },
9395
9146
  generateAgentAvatar: {
9396
9147
  method: "POST",
9397
9148
  path: "/api/v1/agents/{id}/generate-avatar"
@@ -9432,6 +9183,10 @@ const operations = {
9432
9183
  method: "GET",
9433
9184
  path: "/api/v1/artifacts/{id}/versions/{version}"
9434
9185
  },
9186
+ getAuthoredFunction: {
9187
+ method: "GET",
9188
+ path: "/api/v1/functions/{id}/source"
9189
+ },
9435
9190
  getBrief: {
9436
9191
  method: "GET",
9437
9192
  path: "/api/v1/briefs/{id}"
@@ -9520,10 +9275,22 @@ const operations = {
9520
9275
  method: "GET",
9521
9276
  path: "/api/v1/functions/calls/{call_id}"
9522
9277
  },
9278
+ getFunctionCallSummary: {
9279
+ method: "GET",
9280
+ path: "/api/v1/functions/{id}/calls"
9281
+ },
9282
+ getFunctionShare: {
9283
+ method: "GET",
9284
+ path: "/api/v1/functions/{id}/share"
9285
+ },
9523
9286
  getImageJob: {
9524
9287
  method: "GET",
9525
9288
  path: "/api/v1/image-jobs/{id}"
9526
9289
  },
9290
+ getInterruptionFeedback: {
9291
+ method: "GET",
9292
+ path: "/api/v1/assistant/interruptions"
9293
+ },
9527
9294
  getMe: {
9528
9295
  method: "GET",
9529
9296
  path: "/api/v1/me"
@@ -9616,6 +9383,10 @@ const operations = {
9616
9383
  method: "GET",
9617
9384
  path: "/api/v1/assistant/instructions"
9618
9385
  },
9386
+ listAuthoredFunctions: {
9387
+ method: "GET",
9388
+ path: "/api/v1/functions/mine"
9389
+ },
9619
9390
  listBriefs: {
9620
9391
  method: "GET",
9621
9392
  path: "/api/v1/briefs"
@@ -9756,10 +9527,18 @@ const operations = {
9756
9527
  method: "POST",
9757
9528
  path: "/api/v1/personas"
9758
9529
  },
9530
+ pinFunctionData: {
9531
+ method: "POST",
9532
+ path: "/api/v1/functions/{id}/data"
9533
+ },
9759
9534
  postSlackMessage: {
9760
9535
  method: "POST",
9761
9536
  path: "/api/v1/slack/messages"
9762
9537
  },
9538
+ promoteFunction: {
9539
+ method: "POST",
9540
+ path: "/api/v1/functions/{id}/promote"
9541
+ },
9763
9542
  publishArtifact: {
9764
9543
  method: "POST",
9765
9544
  path: "/api/v1/artifacts/{id}/publish"
@@ -9820,10 +9599,22 @@ const operations = {
9820
9599
  method: "POST",
9821
9600
  path: "/api/v1/briefs/{id}/decisions/{decisionId}/resolve"
9822
9601
  },
9602
+ reviewFunction: {
9603
+ method: "POST",
9604
+ path: "/api/v1/functions/{id}/review"
9605
+ },
9823
9606
  reviewSkillMarketVersion: {
9824
9607
  method: "POST",
9825
9608
  path: "/api/v1/skills/market/versions/{vid}/review"
9826
9609
  },
9610
+ runFunctionTests: {
9611
+ method: "POST",
9612
+ path: "/api/v1/functions/{id}/test-runs"
9613
+ },
9614
+ saveFunctionCode: {
9615
+ method: "PUT",
9616
+ path: "/api/v1/functions/{id}/code"
9617
+ },
9827
9618
  searchArtifacts: {
9828
9619
  method: "GET",
9829
9620
  path: "/api/v1/artifacts/search"
@@ -9852,6 +9643,22 @@ const operations = {
9852
9643
  method: "POST",
9853
9644
  path: "/api/v1/session-handoffs"
9854
9645
  },
9646
+ setFunctionExamples: {
9647
+ method: "PUT",
9648
+ path: "/api/v1/functions/{id}/examples"
9649
+ },
9650
+ setFunctionSources: {
9651
+ method: "PUT",
9652
+ path: "/api/v1/functions/{id}/sources"
9653
+ },
9654
+ setInterruptionFeedback: {
9655
+ method: "PUT",
9656
+ path: "/api/v1/assistant/interruptions"
9657
+ },
9658
+ shareFunction: {
9659
+ method: "PUT",
9660
+ path: "/api/v1/functions/{id}/share"
9661
+ },
9855
9662
  startAgentExecution: {
9856
9663
  method: "POST",
9857
9664
  path: "/api/v1/agent-executions"
@@ -9876,6 +9683,10 @@ const operations = {
9876
9683
  method: "POST",
9877
9684
  path: "/api/v1/data-lakes/{id}/config-history/{event_id}/undo"
9878
9685
  },
9686
+ unpinFunctionData: {
9687
+ method: "DELETE",
9688
+ path: "/api/v1/functions/{id}/data/{name}"
9689
+ },
9879
9690
  unpublishArtifact: {
9880
9691
  method: "DELETE",
9881
9692
  path: "/api/v1/artifacts/{id}/publish"
@@ -9884,6 +9695,10 @@ const operations = {
9884
9695
  method: "DELETE",
9885
9696
  path: "/api/v1/push-tokens"
9886
9697
  },
9698
+ unshareFunction: {
9699
+ method: "DELETE",
9700
+ path: "/api/v1/functions/{id}/share"
9701
+ },
9887
9702
  updateAgent: {
9888
9703
  method: "PATCH",
9889
9704
  path: "/api/v1/agents/{id}"
@@ -9900,6 +9715,10 @@ const operations = {
9900
9715
  method: "PATCH",
9901
9716
  path: "/api/v1/files/{id}"
9902
9717
  },
9718
+ updateFunction: {
9719
+ method: "PATCH",
9720
+ path: "/api/v1/functions/{id}"
9721
+ },
9903
9722
  updateObligation: {
9904
9723
  method: "PATCH",
9905
9724
  path: "/api/v1/obligations/{id}"
@@ -10197,4 +10016,4 @@ function toBase64(bytes) {
10197
10016
  return btoa(binary);
10198
10017
  }
10199
10018
  //#endregion
10200
- export { extractErrorMessage as a, resolveSupportedMimeType as c, BaseStorage as d, isPrivateIP as f, redactLogValue as h, parseRetryAfterSeconds as i, OllamaBackend as l, redactLogText as m, B4mStreamEndedError as n, getSettingsMap as o, Logger as p, createClient as r, getSettingsValue as s, B4mApiError as t, OpenAICompatibleBackend as u };
10019
+ export { extractErrorMessage as a, OpenAICompatibleBackend as c, redactLogText as d, redactLogValue as f, parseRetryAfterSeconds as i, isPrivateIP as l, B4mStreamEndedError as n, resolveSupportedMimeType as o, createClient as r, OllamaBackend as s, B4mApiError as t, Logger as u };
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import "./Logger-CjaYx85U.mjs";
2
+ import "./Logger-DqWiTWp3.mjs";
3
3
  import { S as vramNeedsLlamaServer, b as ollamaNumCtx, v as estimateFitFromSize } from "./modelHub-BSB6qRFP.mjs";
4
- import { t as version } from "./package-CvffLo0I.mjs";
4
+ import { t as version } from "./package-CZ2nssWx.mjs";
5
5
  import { D as PRODUCTION_CURATED_KEYS, U as loadCuratedManifest, _ as resolveCuratedUrl, h as probeHardware, n as CuratedStore, t as CuratedListSource, u as curatedStoreRoot, w as BUNDLED_CURATED_JSON_TEXT } from "./dist-K7a9yOUb.mjs";
6
- import { Q as formatBytes, it as largestProjectorBytes } from "./modelServers-DeOGFwLi.mjs";
6
+ import { Q as formatBytes, it as largestProjectorBytes } from "./modelServers-BmmJuF8X.mjs";
7
7
  import path from "node:path";
8
8
  import { homedir } from "node:os";
9
9
  //#region src/models/curatedList.ts
package/dist/index.mjs CHANGED
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
- import { $ as signInUncheckedMessage, A as FallbackLlmBackend, B as DEFAULT_THOROUGHNESS, C as resetTodoStore, D as createResumeAgentTool, E as createCoordinateTaskTool, G as SIGN_IN_DURING_TURN, H as LOGGED_OUT_RESTART, I as ALWAYS_DENIED_FOR_AGENTS, J as SIGN_IN_HINT, K as SIGN_IN_EXPIRED, L as DEFAULT_AGENT_MODEL, M as substituteArguments, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, Q as signInUncheckedLoginMessage, R as DEFAULT_MAX_ITERATIONS, S as createWriteTodosTool, St as COMPACTION_SUMMARY_MARKER, T as parseAgentConfig, U as NoLocalModelsError, V as LOCAL_SESSION_CONTINUES, W as SIGNED_OUT_BANNER, X as loginBlocked, _t as CommandHistoryStore, b as createFindDefinitionTool, bt as searchFiles, c as checkSavedSignIn, ct as wrapTools, et as signedOutCommandMessage, f as buildLlmBackend, ft as getPlanModeFilePath, gt as CheckpointStore, ht as hasFileReferences, j as isConnectionDrop, k as createAgentDelegateTool, l as settleSignInRefresh, lt as getProcessHooks, mt as processFileReferences, nt as buildSystemPrompt, pt as CustomCommandStore, rt as buildSkillsPromptSection, s as buildSandbox, st as findIterationBoundary, tt as signedOutNoMatchMessage, u as startupMode, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, wt as MAX_PASTE_SIZE, x as createTodoStore, xt as warmFileCache, y as createWorkItemTools, yt as formatFileSize, z as DEFAULT_RETRY_CONFIG } from "./AgentHistoryStore-DW6BBbVj.mjs";
3
- import { D as sanitizeTerminalText, E as escapeTerminalControlChars, S as LOCAL_DEV_URL, T as parseApiUrl, _ as getEnvironmentName, c as ToolCatalog, g as getDefaultApiUrl, h as getCreditsUrl, m as ApiEndpointUnconfiguredError, o as extractCompactInstructions, t as ConfigStore, v as requireApiUrl, y as resolveApiEndpoint } from "./ConfigStore-BuLA_-uZ.mjs";
2
+ import { $ as signInUncheckedMessage, A as FallbackLlmBackend, B as DEFAULT_THOROUGHNESS, C as resetTodoStore, D as createResumeAgentTool, E as createCoordinateTaskTool, G as SIGN_IN_DURING_TURN, H as LOGGED_OUT_RESTART, I as ALWAYS_DENIED_FOR_AGENTS, J as SIGN_IN_HINT, K as SIGN_IN_EXPIRED, L as DEFAULT_AGENT_MODEL, M as substituteArguments, N as PermissionManager, O as createBackgroundAgentTools, P as buildCliToolList, Q as signInUncheckedLoginMessage, R as DEFAULT_MAX_ITERATIONS, S as createWriteTodosTool, St as COMPACTION_SUMMARY_MARKER, T as parseAgentConfig, U as NoLocalModelsError, V as LOCAL_SESSION_CONTINUES, W as SIGNED_OUT_BANNER, X as loginBlocked, _t as CommandHistoryStore, b as createFindDefinitionTool, bt as searchFiles, c as checkSavedSignIn, ct as wrapTools, et as signedOutCommandMessage, f as buildLlmBackend, ft as getPlanModeFilePath, gt as CheckpointStore, ht as hasFileReferences, j as isConnectionDrop, k as createAgentDelegateTool, l as settleSignInRefresh, lt as getProcessHooks, mt as processFileReferences, nt as buildSystemPrompt, pt as CustomCommandStore, rt as buildSkillsPromptSection, s as buildSandbox, st as findIterationBoundary, tt as signedOutNoMatchMessage, u as startupMode, ut as setWebSocketToolExecutor, v as createGetFileStructureTool, vt as SessionStore, w as createSkillTool, wt as MAX_PASTE_SIZE, x as createTodoStore, xt as warmFileCache, y as createWorkItemTools, yt as formatFileSize, z as DEFAULT_RETRY_CONFIG } from "./AgentHistoryStore-dVWBO__c.mjs";
3
+ import { D as sanitizeTerminalText, E as escapeTerminalControlChars, S as LOCAL_DEV_URL, T as parseApiUrl, _ as getEnvironmentName, c as ToolCatalog, g as getDefaultApiUrl, h as getCreditsUrl, m as ApiEndpointUnconfiguredError, o as extractCompactInstructions, t as ConfigStore, v as requireApiUrl, y as resolveApiEndpoint } from "./ConfigStore-BnhyywYB.mjs";
4
4
  import { a as selectLiveSubagentTokens, i as selectLiveSubagentCredits, n as selectActiveBackgroundShells, o as useCliStore, r as selectCompletedBackgroundShells, t as selectActiveBackgroundAgents } from "./store-CmOg7JIt.mjs";
5
- import { a as extractErrorMessage$1 } from "./dist-DsMzCRLX.mjs";
6
- import { C as CREDIT_DEDUCT_TRANSACTION_TYPES, Et as isEarlyStop, Rt as planLeaves, T as ChatModels, Zt as tokenEstimateMultiplier, an as DELEGATION_PAYLOAD_SCHEMA_NAME, cn as actorKindSchema, in as ACTOR_COLOR_SLOTS, ln as delegationPayloadSchema, n as SESSION_ID_PATTERN, on as actorColorIndex, r as isValidSessionId, sn as actorKindMarker, t as logger, un as selfClaimedActorKindSchema, zt as planProgress } from "./Logger-CjaYx85U.mjs";
5
+ import { a as extractErrorMessage$1 } from "./dist-DQHccCo7.mjs";
6
+ import { $t as tokenEstimateMultiplier, Bt as planLeaves, Dt as isEarlyStop, E as ChatModels, Vt as planProgress, cn as actorColorIndex, dn as delegationPayloadSchema, fn as selfClaimedActorKindSchema, ln as actorKindMarker, n as SESSION_ID_PATTERN, on as ACTOR_COLOR_SLOTS, r as isValidSessionId, sn as DELEGATION_PAYLOAD_SCHEMA_NAME, t as logger, un as actorKindSchema, w as CREDIT_DEDUCT_TRANSACTION_TYPES } from "./Logger-DqWiTWp3.mjs";
7
7
  import { a as rewireReservedNames, i as mergeCommands, n as COMMANDS, t as RemoteSkillSource } from "./RemoteSkillSource-HqoLRV56.mjs";
8
8
  import { r as isFeatureEnabled, t as PluginStore } from "./PluginStore-DwvOJ-G3.mjs";
9
- import { i as getTokenCounter, n as ConversationContext, r as reconstructTurnBlocks, t as WorkItemsClient } from "./WorkItemsClient-xmo0DrCm.mjs";
9
+ import { i as getTokenCounter, n as ConversationContext, r as reconstructTurnBlocks, t as WorkItemsClient } from "./WorkItemsClient-BRvm9GFY.mjs";
10
10
  import { t as getShellSessionManager } from "./ShellSessionManager-6o8KZzl1-vrbPAUTq.mjs";
11
- import { r as OAuthClient, t as ApiClient } from "./ApiClient-D4bDuWXg.mjs";
12
- import { t as version } from "./package-CvffLo0I.mjs";
13
- import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "./buildToolSearch-CXxEtVKc.mjs";
14
- import { s as getStartupUpdateStatus } from "./updateChecker-U4AfrPKj.mjs";
11
+ import { r as OAuthClient, t as ApiClient } from "./ApiClient-ByJM2OpM.mjs";
12
+ import { t as version } from "./package-CZ2nssWx.mjs";
13
+ import { a as NotifyingLlmBackend, i as deferredToolRegistry, n as buildAgent, r as buildSupportingStores, t as buildToolSearch } from "./buildToolSearch-BLpr9m1F.mjs";
14
+ import { s as getStartupUpdateStatus } from "./updateChecker-DoKgSiYX.mjs";
15
15
  import React, { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
16
16
  import { Box, Static, Text, measureElement, render, useApp, useInput, usePaste, useStdin, useStdout } from "ink";
17
17
  import { formatWithOptions, promisify } from "node:util";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { D as sanitizeTerminalText } from "./ConfigStore-BuLA_-uZ.mjs";
2
+ import { D as sanitizeTerminalText } from "./ConfigStore-BnhyywYB.mjs";
3
3
  import { C as trackChild, H as isPermissiveEntry, K as ollamaModelKey, L as findHubBuild, O as curatedBuildForRef, Q as PullIdleTimeoutError, R as hubBuildTag, S as signalTree, T as HUGGING_FACE_SSH_KEYS_URL, V as isHubRepoId, Y as HubAccessError, Z as ModelNotFoundError, b as lmStudioModelsSchema, c as checkReviewedLayers, d as detectRuntimes, et as parseBaseUrl, f as licensesChanged, i as OllamaRuntime, k as curatedEntryForRef, l as checkRuntime, p as manifestChange, s as checkInstalledDigest, x as productFromOwner, y as OpenAICompatibleRuntime, z as isAbliteratedModel } from "./dist-K7a9yOUb.mjs";
4
4
  import { createHash } from "crypto";
5
5
  import path from "node:path";
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  //#region package.json
3
- var version = "5.0.1";
3
+ var version = "5.2.0";
4
4
  //#endregion
5
5
  export { version as t };