@atlasharness/atlascode 0.1.28 → 0.1.29

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 +10 -10
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -178,7 +178,10 @@ function getVersion() {
178
178
  return VERSION;
179
179
  }
180
180
  function buildUserAgent() {
181
- return `${PRODUCT_NAME}/${getVersion()} (+${REPOSITORY_URL})`;
181
+ return `${PRODUCT_NAME}/${getVersion()} (${REPOSITORY_URL})`;
182
+ }
183
+ function buildWebFetchUserAgent() {
184
+ return `Atlas-User (${PRODUCT_NAME}/${getVersion()}; ${REPOSITORY_URL})`;
182
185
  }
183
186
  var PRODUCT_NAME = "AtlasCode", REPOSITORY_URL = "https://github.com/vincentlau2046/AtlasCode", VERSION;
184
187
  var init_identity = __esm(() => {
@@ -67123,7 +67126,7 @@ async function applyPromptToMarkdown(prompt, markdownContent, signal, isNonInter
67123
67126
  }
67124
67127
  return "No response from model";
67125
67128
  }
67126
- var EgressBlockedError, CACHE_TTL_MS, MAX_CACHE_SIZE_BYTES, URL_CACHE, MAX_URL_LENGTH = 2000, MAX_HTTP_CONTENT_LENGTH, FETCH_TIMEOUT_MS = 60000, MAX_REDIRECTS = 10, MAX_MARKDOWN_LENGTH = 1e5, WEB_FETCH_USER_AGENT = "Atlas-User (+https://github.com/vincentlau2046/AtlasCode)", fetchImpl = (url, init) => fetch(url, init), TOOL_RESULTS_SUBDIR2 = "tool-results";
67129
+ var EgressBlockedError, CACHE_TTL_MS, MAX_CACHE_SIZE_BYTES, URL_CACHE, MAX_URL_LENGTH = 2000, MAX_HTTP_CONTENT_LENGTH, FETCH_TIMEOUT_MS = 60000, MAX_REDIRECTS = 10, MAX_MARKDOWN_LENGTH = 1e5, WEB_FETCH_USER_AGENT, fetchImpl = (url, init) => fetch(url, init), TOOL_RESULTS_SUBDIR2 = "tool-results";
67127
67130
  var init_webFetchUtils = __esm(() => {
67128
67131
  init_shared();
67129
67132
  init_modelprovider2();
@@ -67147,6 +67150,7 @@ var init_webFetchUtils = __esm(() => {
67147
67150
  MAX_CACHE_SIZE_BYTES = 50 * 1024 * 1024;
67148
67151
  URL_CACHE = new TtlLruCache(CACHE_TTL_MS, 500, MAX_CACHE_SIZE_BYTES);
67149
67152
  MAX_HTTP_CONTENT_LENGTH = 10 * 1024 * 1024;
67153
+ WEB_FETCH_USER_AGENT = buildWebFetchUserAgent();
67150
67154
  });
67151
67155
  // src/engine/tools/web/webFetchTool.ts
67152
67156
  function webFetchToolInputToPermissionRuleContent(input) {
@@ -195827,11 +195831,6 @@ var init_codeIndexing = __esm(() => {
195827
195831
  ];
195828
195832
  });
195829
195833
 
195830
- // src/tui/utils/userAgent.ts
195831
- function getDefaultUserAgent() {
195832
- return `AtlasCode/${MACRO.VERSION}`;
195833
- }
195834
-
195835
195834
  // src/tui/utils/workloadContext.ts
195836
195835
  import { AsyncLocalStorage as AsyncLocalStorage4 } from "async_hooks";
195837
195836
  function getWorkload() {
@@ -195851,7 +195850,7 @@ function getUserAgent() {
195851
195850
  const clientApp = process.env.ATLAS_AGENT_SDK_CLIENT_APP ? `, client-app/${process.env.ATLAS_AGENT_SDK_CLIENT_APP}` : "";
195852
195851
  const workload = getWorkload();
195853
195852
  const workloadSuffix = workload ? `, workload/${workload}` : "";
195854
- return `AtlasCode/${MACRO.VERSION} (atlascode, ${process.env.ATLAS_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix}, +https://github.com/vincentlau2046/AtlasCode)`;
195853
+ return `${PRODUCT_NAME}/${getVersion()} (atlascode, ${process.env.ATLAS_ENTRYPOINT ?? "cli"}${agentSdkVersion}${clientApp}${workloadSuffix}, ${REPOSITORY_URL})`;
195855
195854
  }
195856
195855
  function getMCPUserAgent() {
195857
195856
  const parts = [];
@@ -195865,14 +195864,15 @@ function getMCPUserAgent() {
195865
195864
  parts.push(`client-app/${process.env.ATLAS_AGENT_SDK_CLIENT_APP}`);
195866
195865
  }
195867
195866
  const suffix = parts.length > 0 ? ` (${parts.join(", ")})` : "";
195868
- return `AtlasCode/${MACRO.VERSION}${suffix} (+https://github.com/vincentlau2046/AtlasCode)`;
195867
+ return `${PRODUCT_NAME}/${getVersion()}${suffix} (${REPOSITORY_URL})`;
195869
195868
  }
195870
195869
  function getWebFetchUserAgent() {
195871
- return `Atlas-User (${getDefaultUserAgent()}; +https://github.com/vincentlau2046/AtlasCode)`;
195870
+ return buildWebFetchUserAgent();
195872
195871
  }
195873
195872
  var init_http2 = __esm(() => {
195874
195873
  init_auth4();
195875
195874
  init_workloadContext();
195875
+ init_shared();
195876
195876
  });
195877
195877
 
195878
195878
  // ../../node_modules/lodash-es/_baseSlice.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasharness/atlascode",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "description": "AtlasCode \u2014 Coding Agent for the domestic computing ecosystem (Ascend NPU + domestic LLM backends)",
5
5
  "bin": {
6
6
  "atlas": "dist/cli.js",