@atlasharness/atlascode 0.1.26 → 0.1.27

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 +16 -6
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -123452,7 +123452,7 @@ var _spSectionCache, _agentColorMap, addInvokedSkill = () => ({}), addSlowOperat
123452
123452
  _spSectionCache.clear();
123453
123453
  }, getSystemPromptSectionCache = () => _spSectionCache, setSystemPromptSectionCacheEntry = (name, value) => {
123454
123454
  _spSectionCache.set(name, value);
123455
- }, setCachedClaudeMdContent = () => ({}), getLastApiCompletionTimestamp = () => ({}), getPromptCache1hAllowlist = () => ({}), getPromptCache1hEligible = () => ({}), setPromptCache1hAllowlist = () => ({}), setPromptCache1hEligible = () => ({}), setLastApiCompletionTimestamp = () => ({}), hasExitedPlanModeInSession = () => ({}), getLastEmittedDate = () => ({}), preferThirdPartyAuthentication = () => ({}), getApiKeyFromFd = () => ({}), getOauthTokenFromFd = () => ({}), setApiKeyFromFd = () => ({}), setOauthTokenFromFd = () => ({}), onSessionSwitch = () => ({}), getSessionCronTasks = () => ({}), removeSessionCronTasks = () => ({}), addSessionCronTask = () => ({}), getCachedClaudeMdContent = () => ({}), setLastClassifierRequests = () => ({}), clearRegisteredPluginHooks = () => ({}), getSessionIngressToken = () => ({}), setSessionIngressToken = () => ({}), getSessionProjectDir = () => null, getLastMainRequestId = () => ({}), getStatsStore = () => null, getFlagSettingsPath = () => "/tmp/.claude-flags.json", needsPlanModeExitAttachment = () => ({}), needsAutoModeExitAttachment = () => ({}), getScheduledTasksEnabled = () => ({}), _turnHookDurationMs = 0, _turnHookCount = 0, _turnToolDurationMs = 0, _turnToolCount = 0, _turnClassifierDurationMs = 0, _turnClassifierCount = 0, addToTurnHookDuration = (durationMs) => {
123455
+ }, setCachedClaudeMdContent = () => ({}), getLastApiCompletionTimestamp = () => ({}), getPromptCache1hAllowlist = () => null, getPromptCache1hEligible = () => null, setPromptCache1hAllowlist = () => ({}), setPromptCache1hEligible = () => ({}), setLastApiCompletionTimestamp = () => ({}), hasExitedPlanModeInSession = () => ({}), getLastEmittedDate = () => ({}), preferThirdPartyAuthentication = () => ({}), getApiKeyFromFd = () => ({}), getOauthTokenFromFd = () => ({}), setApiKeyFromFd = () => ({}), setOauthTokenFromFd = () => ({}), onSessionSwitch = () => ({}), getSessionCronTasks = () => ({}), removeSessionCronTasks = () => ({}), addSessionCronTask = () => ({}), getCachedClaudeMdContent = () => ({}), setLastClassifierRequests = () => ({}), clearRegisteredPluginHooks = () => ({}), getSessionIngressToken = () => ({}), setSessionIngressToken = () => ({}), getSessionProjectDir = () => null, getLastMainRequestId = () => ({}), getStatsStore = () => null, getFlagSettingsPath = () => "/tmp/.claude-flags.json", needsPlanModeExitAttachment = () => ({}), needsAutoModeExitAttachment = () => ({}), getScheduledTasksEnabled = () => ({}), _turnHookDurationMs = 0, _turnHookCount = 0, _turnToolDurationMs = 0, _turnToolCount = 0, _turnClassifierDurationMs = 0, _turnClassifierCount = 0, addToTurnHookDuration = (durationMs) => {
123456
123456
  _turnHookDurationMs += durationMs;
123457
123457
  _turnHookCount++;
123458
123458
  }, handleAutoModeTransition = () => ({}), addToTurnClassifierDuration = (durationMs) => {
@@ -272447,14 +272447,14 @@ function getCacheControl({
272447
272447
  }
272448
272448
  function should1hCacheTTL(querySource) {
272449
272449
  let userEligible = getPromptCache1hEligible();
272450
- if (userEligible === null) {
272450
+ if (typeof userEligible !== "boolean") {
272451
272451
  userEligible = false;
272452
272452
  setPromptCache1hEligible(userEligible);
272453
272453
  }
272454
272454
  if (!userEligible)
272455
272455
  return false;
272456
272456
  let allowlist = getPromptCache1hAllowlist();
272457
- if (allowlist === null) {
272457
+ if (!Array.isArray(allowlist)) {
272458
272458
  const config = getFeatureValue_CACHED_MAY_BE_STALE("atlas_prompt_cache_1h_config", {});
272459
272459
  allowlist = config.allowlist ?? [];
272460
272460
  setPromptCache1hAllowlist(allowlist);
@@ -337703,14 +337703,24 @@ var classifierDecisionModule, autoModeStateModule3, CLASSIFIER_FAIL_CLOSED_REFRE
337703
337703
  if (denialLimitResult) {
337704
337704
  return denialLimitResult;
337705
337705
  }
337706
+ if (appState.toolPermissionContext.shouldAvoidPermissionPrompts) {
337707
+ return {
337708
+ behavior: "deny",
337709
+ decisionReason: {
337710
+ type: "classifier",
337711
+ classifier: "auto-mode",
337712
+ reason: classifierResult.reason
337713
+ },
337714
+ message: buildYoloRejectionMessage(classifierResult.reason)
337715
+ };
337716
+ }
337706
337717
  return {
337707
- behavior: "deny",
337718
+ ...result,
337708
337719
  decisionReason: {
337709
337720
  type: "classifier",
337710
337721
  classifier: "auto-mode",
337711
337722
  reason: classifierResult.reason
337712
- },
337713
- message: buildYoloRejectionMessage(classifierResult.reason)
337723
+ }
337714
337724
  };
337715
337725
  }
337716
337726
  const newDenialState = recordSuccess(denialState);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasharness/atlascode",
3
- "version": "0.1.26",
3
+ "version": "0.1.27",
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",