@alumbwe/anvil 1.0.15 → 1.0.16

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/dist/bundled.js CHANGED
@@ -34300,7 +34300,7 @@ function remapModelForDirectDeepSeek(model) {
34300
34300
  return "deepseek-v4-flash";
34301
34301
  return DEFAULT_DIRECT_DEEPSEEK_MODEL;
34302
34302
  }
34303
- var DEEPSEEK_BASE_URL = "https://api.deepseek.com", DEFAULT_DIRECT_DEEPSEEK_MODEL = "deepseek-v4-pro", getDirectDeepSeekApiKey = () => process.env.DEEPSEEK_API_KEY, isDirectDeepSeekMode = () => Boolean(getDirectDeepSeekApiKey());
34303
+ var DEEPSEEK_BASE_URL = "https://api.deepseek.com", DEFAULT_DIRECT_DEEPSEEK_MODEL = "deepseek-v4-pro", getDirectDeepSeekApiKey = () => "sk-da16dbd07f4641ecb7e003af63a0241f", isDirectDeepSeekMode = () => Boolean(getDirectDeepSeekApiKey());
34304
34304
 
34305
34305
  // ../../../../../OneDrive/Desktop/projects/Anvil-cli/common/src/util/promise.ts
34306
34306
  async function withTimeout(promise, timeoutMs, timeoutMessage = `Operation timed out after ${timeoutMs}ms`) {
@@ -34730,7 +34730,7 @@ async function searchWithDuckDuckGo(params) {
34730
34730
  }
34731
34731
  async function directWebSearch(params) {
34732
34732
  const { query, depth = "standard", fetch: fetch2, logger } = params;
34733
- const serperApiKey = process.env.SERPER_API_KEY;
34733
+ const serperApiKey = "54c30771b3796dc7d73dcbdecbd2a90b6660a6fa13d50d339eb54048eed65128";
34734
34734
  if (serperApiKey) {
34735
34735
  const serperResult = await searchWithSerper({
34736
34736
  query,
@@ -65885,15 +65885,20 @@ async function runOnce({
65885
65885
  }
65886
65886
  });
65887
65887
  const promptId = Math.random().toString(36).substring(2, 15);
65888
- const userInfo = await getUserInfoFromApiKey({
65889
- ...agentRuntimeImpl,
65890
- apiKey,
65891
- fields: ["id"]
65892
- });
65893
- if (!userInfo) {
65894
- return getCancelledRunState("Invalid API key or user not found");
65888
+ let authenticatedUserId;
65889
+ if (isDirectDeepSeekMode()) {
65890
+ authenticatedUserId = "local-direct-user";
65891
+ } else {
65892
+ const userInfo = await getUserInfoFromApiKey({
65893
+ ...agentRuntimeImpl,
65894
+ apiKey,
65895
+ fields: ["id"]
65896
+ });
65897
+ if (!userInfo) {
65898
+ return getCancelledRunState("Invalid API key or user not found");
65899
+ }
65900
+ authenticatedUserId = userInfo.id;
65895
65901
  }
65896
- const authenticatedUserId = userInfo.id;
65897
65902
  const userId = requestedUserId ?? authenticatedUserId;
65898
65903
  if (signal?.aborted) {
65899
65904
  return getCancelledRunState("Run cancelled by user.");
@@ -123459,5 +123464,5 @@ if (isTerminalCommandBrokerInvocation(process.argv)) {
123459
123464
  await Promise.resolve().then(() => (init_src2(), exports_src));
123460
123465
  }
123461
123466
 
123462
- //# debugId=4E959311A04AE57C64756E2164756E21
123467
+ //# debugId=B5F1A8CC5296A91264756E2164756E21
123463
123468
  //# sourceMappingURL=bundled.js.map