@@ -6,32 +6,32 @@ import { fileURLToPath } from "url";
66import matter from "gray-matter" ;
77import ejs from "ejs" ;
88import type { ChatCompletionContentPart , ChatCompletionMessageParam } from "openai/resources/chat/completions" ;
9- import { launchNotifyScript } from "./common/notify" ;
10- import { buildThinkingRequestOptions } from "./common/openai-thinking" ;
11- import { supportsMultimodal } from "./common/model-capabilities" ;
9+ import { launchNotifyScript } from ".. /common/notify" ;
10+ import { buildThinkingRequestOptions } from ".. /common/openai-thinking" ;
11+ import { supportsMultimodal } from ".. /common/model-capabilities" ;
1212import {
1313 getCompactPrompt ,
1414 getDefaultSkillPrompt ,
1515 getRuntimeContext ,
1616 getSystemPrompt ,
1717 getTools ,
1818 type ToolDefinition ,
19- } from "./prompt" ;
19+ } from ".. /prompt" ;
2020import {
2121 type CreateOpenAIClient ,
2222 type ProcessTimeoutControl ,
2323 type ProcessTimeoutInfo ,
2424 type ToolCallExecution ,
2525 type ToolExecutionHooks ,
2626 ToolExecutor ,
27- } from "./tools/executor" ;
28- import { McpManager } from "./mcp/mcp-manager" ;
29- import type { McpServerConfig , PermissionSettings } from "./settings" ;
30- import { logApiError } from "./common/logging/error-logger" ;
31- import { logOpenAIChatCompletionDebug , normalizeDebugError } from "./common/logging/debug-logger" ;
32- import { killProcessTree } from "./common/system/process-tree" ;
33- import { GitFileHistory } from "./common/runtime/file-history" ;
34- import { getSnippet } from "./common/runtime/state" ;
27+ } from ".. /tools/executor" ;
28+ import { McpManager } from ".. /mcp/mcp-manager" ;
29+ import type { McpServerConfig , PermissionSettings } from ".. /settings" ;
30+ import { logApiError } from ".. /common/logging/error-logger" ;
31+ import { logOpenAIChatCompletionDebug , normalizeDebugError } from ".. /common/logging/debug-logger" ;
32+ import { killProcessTree } from ".. /common/system/process-tree" ;
33+ import { GitFileHistory } from ".. /common/runtime/file-history" ;
34+ import { getSnippet } from ".. /common/runtime/state" ;
3535import {
3636 appendProjectPermissionAllows ,
3737 buildPermissionToolExecution ,
@@ -42,9 +42,9 @@ import {
4242 parseToolCallForPermissions ,
4343 type PermissionToolCall ,
4444 type UserToolPermission ,
45- } from "./common/permissions" ;
45+ } from ".. /common/permissions" ;
4646
47- import { getCompactPromptTokenThreshold , getTotalTokens } from "./session/ utils" ;
47+ import { getCompactPromptTokenThreshold , getTotalTokens } from "./utils" ;
4848import {
4949 type BashTimeoutAdjustment ,
5050 type LlmStreamProgress ,
@@ -59,7 +59,7 @@ import {
5959 type SkillInfo ,
6060 type UndoTarget ,
6161 type UserPromptContent ,
62- } from "./session- types" ;
62+ } from "./types" ;
6363
6464const MAX_SESSION_ENTRIES = 50 ;
6565const DEFAULT_NEW_PROMPT_API_URL = "https://deepcode.vegamo.cn/api/plugin/new" ;
@@ -135,11 +135,11 @@ function accumulateUsagePerModel(
135135
136136function getExtensionRoot ( ) : string {
137137 if ( typeof __dirname !== "undefined" ) {
138- return path . resolve ( __dirname , ".." ) ;
138+ return path . resolve ( __dirname , "../.. " ) ;
139139 }
140140
141141 const currentFilePath = fileURLToPath ( import . meta. url ) ;
142- return path . resolve ( path . dirname ( currentFilePath ) , ".." ) ;
142+ return path . resolve ( path . dirname ( currentFilePath ) , "../.. " ) ;
143143}
144144
145145export class SessionManager {
0 commit comments