@danya-ai/cli 0.1.1 → 0.1.3
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/README.md +33 -3
- package/dist/REPL-5VRUWUUA.js +42 -0
- package/dist/{acp-XPFY5L23.js → acp-SBV4SUS5.js} +26 -26
- package/dist/{agentsValidate-YP7GA4ER.js → agentsValidate-GBCUUJ37.js} +7 -7
- package/dist/{ask-F53PCNWW.js → ask-A44NOQXG.js} +25 -25
- package/dist/{autoUpdater-PAZTRW74.js → autoUpdater-7XV25FPF.js} +3 -3
- package/dist/{chunk-5GADLAR7.js → chunk-2ZWXQRFX.js} +1 -1
- package/dist/{chunk-EOZSZNKR.js → chunk-3IXSSL3F.js} +3 -3
- package/dist/{chunk-JKRPU66R.js → chunk-5GHO3SUE.js} +4 -4
- package/dist/{chunk-5552MSXN.js → chunk-66P52YYI.js} +1 -1
- package/dist/{chunk-3LC6LWSN.js → chunk-6Z7EGLJB.js} +1 -1
- package/dist/{chunk-QUV2YCUP.js → chunk-AL7YT6CO.js} +1742 -234
- package/dist/chunk-AL7YT6CO.js.map +7 -0
- package/dist/{chunk-NFMXSWNI.js → chunk-CEARH7HF.js} +3 -3
- package/dist/{chunk-CDS5HL6U.js → chunk-CSAIELUO.js} +2 -2
- package/dist/chunk-DKOCP6VD.js.map +7 -0
- package/dist/{chunk-LO3O7WT2.js → chunk-EPA5LFNP.js} +2 -2
- package/dist/{chunk-2ON4OVWS.js → chunk-F4DQYOST.js} +2 -2
- package/dist/{chunk-4FOB6KC5.js → chunk-FCXTZVJG.js} +3 -3
- package/dist/{chunk-UOERQDSJ.js → chunk-HGMX7LUU.js} +1 -1
- package/dist/{chunk-DQ3YBGNC.js → chunk-HPXXYGE5.js} +3 -3
- package/dist/{chunk-WTLJM7O2.js → chunk-KMJTUDQT.js} +3 -3
- package/dist/{chunk-5XPLGRCI.js → chunk-LWSO4XGK.js} +11 -11
- package/dist/{chunk-KS5K2JLY.js → chunk-NWCMSPVL.js} +1 -1
- package/dist/{chunk-UYR5Q3GS.js → chunk-NYT5K544.js} +1 -1
- package/dist/{chunk-UYR5Q3GS.js.map → chunk-NYT5K544.js.map} +1 -1
- package/dist/{chunk-DH6PY5WA.js → chunk-OPC7BAW5.js} +1 -1
- package/dist/{chunk-RIE2FUKS.js → chunk-PFTCTG5X.js} +2 -2
- package/dist/{chunk-7NTVKI6U.js → chunk-PKOEWHPC.js} +1 -1
- package/dist/{chunk-L4IPQYSY.js → chunk-S7FJMZJQ.js} +3 -3
- package/dist/{chunk-QOWU527O.js → chunk-U5SAUK33.js} +4 -4
- package/dist/{chunk-JIBQDOXO.js → chunk-VUWBPLA2.js} +1 -1
- package/dist/{chunk-DVRQKRHN.js → chunk-W5HDZPFZ.js} +2 -2
- package/dist/{chunk-ZS6GNOVF.js → chunk-XQVGT6FI.js} +2 -2
- package/dist/{chunk-TLCZFEI3.js → chunk-YMT4ZP5L.js} +3 -3
- package/dist/{chunk-DYHI3HU4.js → chunk-ZVXACFY4.js} +1 -1
- package/dist/{cli-74WUWFKO.js → cli-7F5UP7H3.js} +78 -78
- package/dist/commands-2B3NLK4I.js +46 -0
- package/dist/{config-KBJLBJ4F.js → config-NUGWMTAD.js} +4 -4
- package/dist/{context-SUQRQHNG.js → context-IU336CQN.js} +5 -5
- package/dist/{customCommands-4H5TDSCI.js → customCommands-H26PZL7C.js} +4 -4
- package/dist/{env-EBAMYGTP.js → env-XZ365TBZ.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{kodeAgentSessionLoad-OEYEYLKG.js → kodeAgentSessionLoad-3SQDQPTS.js} +4 -4
- package/dist/{kodeAgentSessionResume-53WMZDR6.js → kodeAgentSessionResume-URRDKPNQ.js} +4 -4
- package/dist/{kodeAgentStreamJsonSession-QQV52SDB.js → kodeAgentStreamJsonSession-DATEVTTG.js} +1 -1
- package/dist/{kodeHooks-LXHKYCVC.js → kodeHooks-QQUC3N42.js} +4 -4
- package/dist/{llm-5DSL623J.js → llm-XBH33BXT.js} +28 -28
- package/dist/{llm-5DSL623J.js.map → llm-XBH33BXT.js.map} +2 -2
- package/dist/{llmLazy-EMO4BVVB.js → llmLazy-HBMPPNDL.js} +1 -1
- package/dist/{loader-DSVKWJVQ.js → loader-2RC2FXT3.js} +4 -4
- package/dist/{mcp-3CCDCYYX.js → mcp-FBNQXOUB.js} +7 -7
- package/dist/{mentionProcessor-HRUF4ANP.js → mentionProcessor-S2QYN2CS.js} +5 -5
- package/dist/{messages-KZTRKY2I.js → messages-GOTZDIQV.js} +1 -1
- package/dist/{model-PHL6VTAG.js → model-B5TCGITV.js} +5 -5
- package/dist/{openai-M3RAQFGM.js → openai-HHXFBOUM.js} +5 -5
- package/dist/{outputStyles-6VVYMSWK.js → outputStyles-SER6OXBX.js} +4 -4
- package/dist/{pluginRuntime-TCH3K4F6.js → pluginRuntime-TJ55FZXH.js} +6 -6
- package/dist/{pluginValidation-X4A5NSMU.js → pluginValidation-JIVFSJJI.js} +6 -6
- package/dist/prompts-EL2VO3DH.js +50 -0
- package/dist/query-CMWS2UNL.js +50 -0
- package/dist/{ripgrep-TVXVT4WE.js → ripgrep-LJA652X4.js} +3 -3
- package/dist/{skillMarketplace-AXUCUS3B.js → skillMarketplace-MDN37RZ4.js} +3 -3
- package/dist/{state-SDEP3HY3.js → state-4L5XK2VN.js} +2 -2
- package/dist/{theme-SPQRPQ7O.js → theme-NNMEGAUR.js} +5 -5
- package/dist/{toolPermissionSettings-H6TWVANG.js → toolPermissionSettings-PAIDFMPX.js} +6 -6
- package/dist/tools-AZR4CVVE.js +47 -0
- package/dist/{userInput-QU3SH2SR.js → userInput-KMFH77N4.js} +27 -27
- package/package.json +1 -1
- package/dist/REPL-JPCWUTDB.js +0 -42
- package/dist/chunk-HJCCXED7.js.map +0 -7
- package/dist/chunk-QUV2YCUP.js.map +0 -7
- package/dist/commands-2ZN5PXG5.js +0 -46
- package/dist/prompts-IVLP5KLQ.js +0 -50
- package/dist/query-JIRCNAY5.js +0 -50
- package/dist/tools-G2P3XRE7.js +0 -47
- /package/dist/{REPL-JPCWUTDB.js.map → REPL-5VRUWUUA.js.map} +0 -0
- /package/dist/{acp-XPFY5L23.js.map → acp-SBV4SUS5.js.map} +0 -0
- /package/dist/{agentsValidate-YP7GA4ER.js.map → agentsValidate-GBCUUJ37.js.map} +0 -0
- /package/dist/{ask-F53PCNWW.js.map → ask-A44NOQXG.js.map} +0 -0
- /package/dist/{autoUpdater-PAZTRW74.js.map → autoUpdater-7XV25FPF.js.map} +0 -0
- /package/dist/{chunk-5GADLAR7.js.map → chunk-2ZWXQRFX.js.map} +0 -0
- /package/dist/{chunk-EOZSZNKR.js.map → chunk-3IXSSL3F.js.map} +0 -0
- /package/dist/{chunk-JKRPU66R.js.map → chunk-5GHO3SUE.js.map} +0 -0
- /package/dist/{chunk-5552MSXN.js.map → chunk-66P52YYI.js.map} +0 -0
- /package/dist/{chunk-3LC6LWSN.js.map → chunk-6Z7EGLJB.js.map} +0 -0
- /package/dist/{chunk-NFMXSWNI.js.map → chunk-CEARH7HF.js.map} +0 -0
- /package/dist/{chunk-CDS5HL6U.js.map → chunk-CSAIELUO.js.map} +0 -0
- /package/dist/{chunk-HJCCXED7.js → chunk-DKOCP6VD.js} +0 -0
- /package/dist/{chunk-LO3O7WT2.js.map → chunk-EPA5LFNP.js.map} +0 -0
- /package/dist/{chunk-2ON4OVWS.js.map → chunk-F4DQYOST.js.map} +0 -0
- /package/dist/{chunk-4FOB6KC5.js.map → chunk-FCXTZVJG.js.map} +0 -0
- /package/dist/{chunk-UOERQDSJ.js.map → chunk-HGMX7LUU.js.map} +0 -0
- /package/dist/{chunk-DQ3YBGNC.js.map → chunk-HPXXYGE5.js.map} +0 -0
- /package/dist/{chunk-WTLJM7O2.js.map → chunk-KMJTUDQT.js.map} +0 -0
- /package/dist/{chunk-5XPLGRCI.js.map → chunk-LWSO4XGK.js.map} +0 -0
- /package/dist/{chunk-KS5K2JLY.js.map → chunk-NWCMSPVL.js.map} +0 -0
- /package/dist/{chunk-DH6PY5WA.js.map → chunk-OPC7BAW5.js.map} +0 -0
- /package/dist/{chunk-RIE2FUKS.js.map → chunk-PFTCTG5X.js.map} +0 -0
- /package/dist/{chunk-7NTVKI6U.js.map → chunk-PKOEWHPC.js.map} +0 -0
- /package/dist/{chunk-L4IPQYSY.js.map → chunk-S7FJMZJQ.js.map} +0 -0
- /package/dist/{chunk-QOWU527O.js.map → chunk-U5SAUK33.js.map} +0 -0
- /package/dist/{chunk-JIBQDOXO.js.map → chunk-VUWBPLA2.js.map} +0 -0
- /package/dist/{chunk-DVRQKRHN.js.map → chunk-W5HDZPFZ.js.map} +0 -0
- /package/dist/{chunk-ZS6GNOVF.js.map → chunk-XQVGT6FI.js.map} +0 -0
- /package/dist/{chunk-TLCZFEI3.js.map → chunk-YMT4ZP5L.js.map} +0 -0
- /package/dist/{chunk-DYHI3HU4.js.map → chunk-ZVXACFY4.js.map} +0 -0
- /package/dist/{cli-74WUWFKO.js.map → cli-7F5UP7H3.js.map} +0 -0
- /package/dist/{commands-2ZN5PXG5.js.map → commands-2B3NLK4I.js.map} +0 -0
- /package/dist/{config-KBJLBJ4F.js.map → config-NUGWMTAD.js.map} +0 -0
- /package/dist/{context-SUQRQHNG.js.map → context-IU336CQN.js.map} +0 -0
- /package/dist/{customCommands-4H5TDSCI.js.map → customCommands-H26PZL7C.js.map} +0 -0
- /package/dist/{env-EBAMYGTP.js.map → env-XZ365TBZ.js.map} +0 -0
- /package/dist/{kodeAgentSessionLoad-OEYEYLKG.js.map → kodeAgentSessionLoad-3SQDQPTS.js.map} +0 -0
- /package/dist/{kodeAgentSessionResume-53WMZDR6.js.map → kodeAgentSessionResume-URRDKPNQ.js.map} +0 -0
- /package/dist/{kodeAgentStreamJsonSession-QQV52SDB.js.map → kodeAgentStreamJsonSession-DATEVTTG.js.map} +0 -0
- /package/dist/{kodeHooks-LXHKYCVC.js.map → kodeHooks-QQUC3N42.js.map} +0 -0
- /package/dist/{llmLazy-EMO4BVVB.js.map → llmLazy-HBMPPNDL.js.map} +0 -0
- /package/dist/{loader-DSVKWJVQ.js.map → loader-2RC2FXT3.js.map} +0 -0
- /package/dist/{mcp-3CCDCYYX.js.map → mcp-FBNQXOUB.js.map} +0 -0
- /package/dist/{mentionProcessor-HRUF4ANP.js.map → mentionProcessor-S2QYN2CS.js.map} +0 -0
- /package/dist/{messages-KZTRKY2I.js.map → messages-GOTZDIQV.js.map} +0 -0
- /package/dist/{model-PHL6VTAG.js.map → model-B5TCGITV.js.map} +0 -0
- /package/dist/{openai-M3RAQFGM.js.map → openai-HHXFBOUM.js.map} +0 -0
- /package/dist/{outputStyles-6VVYMSWK.js.map → outputStyles-SER6OXBX.js.map} +0 -0
- /package/dist/{pluginRuntime-TCH3K4F6.js.map → pluginRuntime-TJ55FZXH.js.map} +0 -0
- /package/dist/{pluginValidation-X4A5NSMU.js.map → pluginValidation-JIVFSJJI.js.map} +0 -0
- /package/dist/{prompts-IVLP5KLQ.js.map → prompts-EL2VO3DH.js.map} +0 -0
- /package/dist/{query-JIRCNAY5.js.map → query-CMWS2UNL.js.map} +0 -0
- /package/dist/{ripgrep-TVXVT4WE.js.map → ripgrep-LJA652X4.js.map} +0 -0
- /package/dist/{skillMarketplace-AXUCUS3B.js.map → skillMarketplace-MDN37RZ4.js.map} +0 -0
- /package/dist/{state-SDEP3HY3.js.map → state-4L5XK2VN.js.map} +0 -0
- /package/dist/{theme-SPQRPQ7O.js.map → theme-NNMEGAUR.js.map} +0 -0
- /package/dist/{toolPermissionSettings-H6TWVANG.js.map → toolPermissionSettings-PAIDFMPX.js.map} +0 -0
- /package/dist/{tools-G2P3XRE7.js.map → tools-AZR4CVVE.js.map} +0 -0
- /package/dist/{userInput-QU3SH2SR.js.map → userInput-KMFH77N4.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-HIIHGKXP.js";
|
|
6
6
|
import {
|
|
7
7
|
debug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VUWBPLA2.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd,
|
|
11
11
|
getGlobalConfigFilePath,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
init_log,
|
|
14
14
|
init_state,
|
|
15
15
|
logError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OPC7BAW5.js";
|
|
17
17
|
|
|
18
18
|
// src/core/config/schema.ts
|
|
19
19
|
function isAutoUpdaterStatus(value) {
|
|
@@ -666,7 +666,7 @@ function setModelPointer(pointer, modelName) {
|
|
|
666
666
|
}
|
|
667
667
|
};
|
|
668
668
|
saveGlobalConfig(updatedConfig);
|
|
669
|
-
import("./model-
|
|
669
|
+
import("./model-B5TCGITV.js").then(({ reloadModelManager }) => {
|
|
670
670
|
reloadModelManager();
|
|
671
671
|
});
|
|
672
672
|
}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getSettingsFileCandidates,
|
|
5
5
|
loadSettingsWithLegacyFallback,
|
|
6
6
|
saveSettingsToPrimaryAndSyncLegacy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2ZWXQRFX.js";
|
|
8
8
|
import {
|
|
9
9
|
isSettingSourceEnabled
|
|
10
10
|
} from "./chunk-WAY3DKFO.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
getCwd,
|
|
16
16
|
init_state
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OPC7BAW5.js";
|
|
18
18
|
|
|
19
19
|
// src/services/ui/outputStyles.ts
|
|
20
20
|
import figures from "figures";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/core/tools/tool.ts"],
|
|
4
|
+
"sourcesContent": ["import { z } from 'zod'\nimport type * as React from 'react'\nimport type { PermissionMode } from '@kode-types/permissionMode'\nimport type { ToolPermissionContext } from '@kode-types/toolPermissionContext'\nimport type {\n PermissionResult,\n PermissionDecision,\n} from '../../types/permissions'\n\nexport type SetToolJSXFn = (\n jsx: {\n jsx: React.ReactNode | null\n shouldHidePromptInput: boolean\n } | null,\n) => void\n\nexport interface ToolUseContext {\n messageId: string | undefined\n toolUseId?: string\n agentId?: string\n safeMode?: boolean\n abortController: AbortController\n readFileTimestamps: { [filePath: string]: number }\n options?: {\n commands?: any[]\n tools?: any[]\n verbose?: boolean\n slowAndCapableModel?: string\n safeMode?: boolean\n permissionMode?: PermissionMode\n toolPermissionContext?: ToolPermissionContext\n lastUserPrompt?: string\n forkNumber?: number\n messageLogName?: string\n maxThinkingTokens?: any\n model?: string\n commandAllowedTools?: string[]\n isKodingRequest?: boolean\n kodingContext?: string\n isCustomCommand?: boolean\n mcpClients?: any[]\n disableSlashCommands?: boolean\n persistSession?: boolean\n shouldAvoidPermissionPrompts?: boolean\n }\n responseState?: {\n previousResponseId?: string\n conversationId?: string\n }\n}\n\nexport interface ExtendedToolUseContext extends ToolUseContext {\n setToolJSX: SetToolJSXFn\n}\n\nexport interface ValidationResult {\n result: boolean\n message?: string\n errorCode?: number\n meta?: any\n}\n\n// ============================================================================\n// Tool Progress\n// ============================================================================\n\nexport type ToolProgressData = Record<string, unknown>\n\nexport type ToolProgress<P extends ToolProgressData = ToolProgressData> = {\n toolUseID: string\n data: P\n}\n\nexport type ToolCallProgress<P extends ToolProgressData = ToolProgressData> = (\n progress: ToolProgress<P>,\n) => void\n\n// ============================================================================\n// Tool Result\n// ============================================================================\n\nexport type ToolResult<T = unknown> = {\n data: T\n newMessages?: unknown[]\n contextModifier?: {\n modifyContext: (ctx: ToolUseContext) => ToolUseContext\n }\n}\n\n// ============================================================================\n// Tool Interface\n// ============================================================================\n\nexport interface Tool<\n TInput extends z.ZodTypeAny = z.ZodTypeAny,\n TOutput = any,\n> {\n // \u2500\u2500 Identity \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n name: string\n description?: string | ((input?: z.infer<TInput>) => Promise<string>)\n inputSchema: TInput\n inputJSONSchema?: Record<string, unknown>\n prompt: (options?: { safeMode?: boolean }) => Promise<string>\n userFacingName?: (input?: z.infer<TInput>) => string\n cachedDescription?: string\n\n /** 3-10 word hint for tool discovery */\n searchHint?: string\n\n // \u2500\u2500 State Queries \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n isEnabled: () => Promise<boolean>\n isReadOnly: (input?: z.infer<TInput>) => boolean\n isConcurrencySafe: (input?: z.infer<TInput>) => boolean\n needsPermissions: (input?: z.infer<TInput>) => boolean\n requiresUserInteraction?: (input?: z.infer<TInput>) => boolean\n\n /**\n * Whether the tool performs an irreversible action (delete, send, overwrite).\n * Used for risk assessment in gate chain and destructive command detection.\n */\n isDestructive?: (input?: z.infer<TInput>) => boolean\n\n /**\n * Extract the primary file path from tool input (for file-based tools).\n * Used by permission system for path-based rule matching.\n */\n getPath?: (input: z.infer<TInput>) => string\n\n /**\n * Maximum result size in characters before persisting to disk.\n * Large results are saved to file and the model gets a preview + path.\n */\n maxResultSizeChars?: number\n\n // \u2500\u2500 Validation & Permissions \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n validateInput?: (\n input: z.infer<TInput>,\n context?: ToolUseContext,\n ) => Promise<ValidationResult>\n\n /**\n * Rich permission checking that returns allow/ask/deny with reasons.\n * Provides richer feedback than needsPermissions().\n * If both checkPermissions and needsPermissions exist, checkPermissions takes precedence.\n */\n checkPermissions?: (\n input: z.infer<TInput>,\n context: ToolUseContext,\n ) => Promise<PermissionResult>\n\n /**\n * Prepare a matcher function for checking this tool's input against permission rules.\n * Returns a function that takes a rule pattern and returns whether it matches.\n */\n preparePermissionMatcher?: (\n input: z.infer<TInput>,\n ) => Promise<(rulePattern: string) => boolean>\n\n // \u2500\u2500 Rendering \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n renderResultForAssistant: (output: TOutput) => string | any[]\n renderToolUseMessage: (\n input: z.infer<TInput>,\n options: { verbose: boolean },\n ) => string | React.ReactElement | null\n renderToolUseRejectedMessage?: (...args: any[]) => React.ReactElement\n renderToolResultMessage?: (\n output: TOutput,\n options: { verbose: boolean },\n ) => React.ReactNode\n\n /**\n * Description for the status spinner during tool execution.\n * Returns something like \"Reading src/foo.ts\" or \"Searching codebase\".\n */\n getActivityDescription?: (input: z.infer<TInput>) => string | null\n\n // \u2500\u2500 Execution \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n /**\n * Async generator-based execution (Kode's pattern).\n * Yields progress events and a final result.\n */\n call: (\n input: z.infer<TInput>,\n context: ToolUseContext,\n ) => AsyncGenerator<\n | {\n type: 'result'\n data: TOutput\n resultForAssistant?: string | any[]\n newMessages?: unknown[]\n contextModifier?: {\n modifyContext: (ctx: ToolUseContext) => ToolUseContext\n }\n }\n | {\n type: 'progress'\n content: any\n normalizedMessages?: any[]\n tools?: any[]\n },\n void,\n unknown\n >\n}\n\n// ============================================================================\n// Utility Functions\n// ============================================================================\n\nexport function getToolDescription(tool: Tool): string {\n if (tool.cachedDescription) {\n return tool.cachedDescription\n }\n\n if (typeof tool.description === 'string') {\n return tool.description\n }\n\n return `Tool: ${tool.name}`\n}\n\n/**\n * Find a tool by name from a tool array.\n */\nexport function findToolByName(tools: Tool[], name: string): Tool | undefined {\n return tools.find((t) => t.name === name)\n}\n\n/**\n * Check if a tool is safe to run in parallel based on its input.\n * Read-only tools are always safe. Non-read-only tools check isConcurrencySafe.\n */\nexport function isToolParallelSafe(tool: Tool, input?: unknown): boolean {\n if (tool.isReadOnly(input)) return true\n return tool.isConcurrencySafe(input)\n}\n\n/**\n * Partition tool calls into parallel-safe and serial batches.\n */\nexport function partitionToolCalls<T extends { tool: Tool; input: unknown }>(\n calls: T[],\n): { parallel: T[]; serial: T[] } {\n const parallel: T[] = []\n const serial: T[] = []\n\n for (const call of calls) {\n if (isToolParallelSafe(call.tool, call.input)) {\n parallel.push(call)\n } else {\n serial.push(call)\n }\n }\n\n return { parallel, serial }\n}\n"],
|
|
5
|
+
"mappings": ";;;;AAiNO,SAAS,mBAAmB,MAAoB;AACrD,MAAI,KAAK,mBAAmB;AAC1B,WAAO,KAAK;AAAA,EACd;AAEA,MAAI,OAAO,KAAK,gBAAgB,UAAU;AACxC,WAAO,KAAK;AAAA,EACd;AAEA,SAAO,SAAS,KAAK,IAAI;AAC3B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-2VQWLLDU.js";
|
|
6
6
|
import {
|
|
7
7
|
debug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VUWBPLA2.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd,
|
|
11
11
|
getKodeBaseDir,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
init_log,
|
|
14
14
|
init_state,
|
|
15
15
|
logError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OPC7BAW5.js";
|
|
17
17
|
|
|
18
18
|
// src/services/plugins/customCommands.ts
|
|
19
19
|
init_state();
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
init_env,
|
|
13
13
|
init_planSlugWords,
|
|
14
14
|
init_state
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OPC7BAW5.js";
|
|
16
16
|
import {
|
|
17
17
|
MACRO,
|
|
18
18
|
init_macros
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NYT5K544.js";
|
|
20
20
|
|
|
21
21
|
// src/utils/protocol/kodeAgentSessionLog.ts
|
|
22
22
|
init_macros();
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getGlobalConfig,
|
|
6
6
|
getOrCreateUserID,
|
|
7
7
|
saveCurrentProjectConfig
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CEARH7HF.js";
|
|
9
9
|
import {
|
|
10
10
|
SESSION_ID,
|
|
11
11
|
env,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
init_log,
|
|
17
17
|
init_state,
|
|
18
18
|
logError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OPC7BAW5.js";
|
|
20
20
|
import {
|
|
21
21
|
MACRO,
|
|
22
22
|
init_macros
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NYT5K544.js";
|
|
24
24
|
|
|
25
25
|
// src/context/index.ts
|
|
26
26
|
init_log();
|
|
@@ -2,7 +2,7 @@ import { createRequire as __kodeCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __kodeCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
getSessionProjectDir
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F4DQYOST.js";
|
|
6
6
|
import {
|
|
7
7
|
isUuid
|
|
8
8
|
} from "./chunk-Y5LQPJWK.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-U7Z4MXY4.js";
|
|
6
6
|
import {
|
|
7
7
|
loadSettingsWithLegacyFallback
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2ZWXQRFX.js";
|
|
9
9
|
import {
|
|
10
10
|
getSessionPlugins
|
|
11
11
|
} from "./chunk-2VQWLLDU.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
init_log,
|
|
15
15
|
init_state,
|
|
16
16
|
logError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OPC7BAW5.js";
|
|
18
18
|
|
|
19
19
|
// src/utils/session/kodeHooks.ts
|
|
20
20
|
init_log();
|
|
@@ -506,7 +506,7 @@ async function runPromptHook(args) {
|
|
|
506
506
|
fallbackTimeoutMs: args.fallbackTimeoutMs
|
|
507
507
|
});
|
|
508
508
|
try {
|
|
509
|
-
const { queryQuick } = await import("./llmLazy-
|
|
509
|
+
const { queryQuick } = await import("./llmLazy-HBMPPNDL.js");
|
|
510
510
|
const systemPrompt = [
|
|
511
511
|
"You are executing a Danya prompt hook.",
|
|
512
512
|
"Return a single JSON object only (no markdown, no prose).",
|
|
@@ -2,14 +2,14 @@ import { createRequire as __kodeCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __kodeCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
MarketplaceManifestSchema
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6Z7EGLJB.js";
|
|
6
6
|
import {
|
|
7
7
|
parseFrontmatter
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EPA5LFNP.js";
|
|
9
9
|
import {
|
|
10
10
|
getCwd,
|
|
11
11
|
init_state
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OPC7BAW5.js";
|
|
13
13
|
|
|
14
14
|
// src/services/plugins/pluginValidation.ts
|
|
15
15
|
init_state();
|
|
@@ -28,42 +28,42 @@ import {
|
|
|
28
28
|
hasReadPermission,
|
|
29
29
|
init_detect,
|
|
30
30
|
query
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AL7YT6CO.js";
|
|
32
32
|
import {
|
|
33
33
|
FallbackToolUseRejectedMessage,
|
|
34
34
|
MCPTool,
|
|
35
35
|
getClients,
|
|
36
36
|
getMCPTools
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-U5SAUK33.js";
|
|
38
38
|
import {
|
|
39
39
|
queryLLM
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5GHO3SUE.js";
|
|
41
41
|
import {
|
|
42
42
|
generateAgentId
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-XQVGT6FI.js";
|
|
44
44
|
import {
|
|
45
45
|
getActiveAgents,
|
|
46
46
|
getAgentByType,
|
|
47
47
|
getAvailableAgentTypes
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-PFTCTG5X.js";
|
|
49
49
|
import {
|
|
50
50
|
INTERRUPT_MESSAGE,
|
|
51
51
|
createAssistantMessage,
|
|
52
52
|
createUserMessage,
|
|
53
53
|
getLastAssistantMessageId
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PKOEWHPC.js";
|
|
55
55
|
import {
|
|
56
56
|
getModelManager
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-3IXSSL3F.js";
|
|
58
58
|
import {
|
|
59
59
|
getContext
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-FCXTZVJG.js";
|
|
61
61
|
import {
|
|
62
62
|
getTheme
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-NWCMSPVL.js";
|
|
64
64
|
import {
|
|
65
65
|
debug
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-VUWBPLA2.js";
|
|
67
67
|
import {
|
|
68
68
|
BunShell,
|
|
69
69
|
getCwd,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
logError,
|
|
77
77
|
overwriteLog,
|
|
78
78
|
readTaskOutput
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-OPC7BAW5.js";
|
|
80
80
|
import {
|
|
81
81
|
formatDuration,
|
|
82
82
|
formatNumber
|
|
@@ -2,7 +2,7 @@ import { createRequire as __kodeCreateRequire } from "node:module";
|
|
|
2
2
|
const require = __kodeCreateRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
getGlobalConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CEARH7HF.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/theme/index.ts
|
|
8
8
|
var lightTheme = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../package.json", "../src/constants/macros.ts"],
|
|
4
|
-
"sourcesContent": ["{\n \"name\": \"@danya-ai/cli\",\n \"version\": \"0.1.
|
|
4
|
+
"sourcesContent": ["{\n \"name\": \"@danya-ai/cli\",\n \"version\": \"0.1.3\",\n \"bin\": {\n \"danya\": \"cli.js\"\n },\n \"engines\": {\n \"node\": \">=20.18.1\"\n },\n \"main\": \"cli.js\",\n \"author\": \"Danya Team\",\n \"license\": \"Apache-2.0\",\n \"description\": \"AI-powered game development coding assistant. Understands game engines, enforces quality gates, and automates development workflows.\",\n \"homepage\": \"https://github.com/Zhudanya/danya\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/Zhudanya/danya.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/Zhudanya/danya/issues\"\n },\n \"files\": [\n \"cli.js\",\n \"cli-acp.js\",\n \"yoga.wasm\",\n \"dist/**/*\",\n \"scripts/binary-utils.cjs\",\n \"scripts/cli-wrapper.cjs\",\n \"scripts/cli-acp-wrapper.cjs\",\n \"scripts/postinstall.js\",\n \".npmrc\"\n ],\n \"scripts\": {\n \"dev\": \"bun run ./src/entrypoints/cli.tsx --verbose\",\n \"build:npm\": \"bun run scripts/build.mjs\",\n \"build\": \"bun run build:npm\",\n \"build:binary\": \"bun run scripts/build-binary.mjs\",\n \"clean\": \"bun run scripts/clean.mjs\",\n \"prepublishOnly\": \"bun run build:npm && bun run scripts/prepublish-check.js\",\n \"postinstall\": \"node scripts/postinstall.js || true\",\n \"format\": \"prettier --write \\\"src/**/*.{ts,tsx,js,jsx,json}\\\" \\\"tests/**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"format:check\": \"prettier --check \\\"src/**/*.{ts,tsx,js,jsx,json}\\\" \\\"tests/**/*.{ts,tsx,js,jsx,json}\\\"\",\n \"lint\": \"eslint . --ext .ts,.tsx,.js --max-warnings 0\",\n \"lint:fix\": \"eslint . --ext .ts,.tsx,.js --fix\",\n \"test\": \"bun test\",\n \"test:unit\": \"bun test tests/unit\",\n \"test:integration\": \"bun test tests/integration\",\n \"test:e2e\": \"bun test tests/e2e\",\n \"typecheck\": \"tsc --noEmit\",\n \"typecheck:game\": \"tsc --noEmit --project tsconfig.game.json\"\n },\n \"dependencies\": {\n \"@anthropic-ai/sdk\": \"^0.39.0\",\n \"@commander-js/extra-typings\": \"^13.1.0\",\n \"@inkjs/ui\": \"^2.0.0\",\n \"@modelcontextprotocol/sdk\": \"^1.15.1\",\n \"@types/lodash-es\": \"^4.17.12\",\n \"@types/react\": \"^19.1.8\",\n \"@vscode/ripgrep\": \"^1.17.0\",\n \"ajv\": \"^8.17.1\",\n \"ansi-escapes\": \"^7.0.0\",\n \"chalk\": \"^5.4.1\",\n \"cli-highlight\": \"^2.1.11\",\n \"cli-table3\": \"^0.6.5\",\n \"commander\": \"^13.1.0\",\n \"debug\": \"^4.4.1\",\n \"diff\": \"^7.0.0\",\n \"dotenv\": \"^16.6.1\",\n \"env-paths\": \"^3.0.0\",\n \"fflate\": \"^0.8.2\",\n \"figures\": \"^6.1.0\",\n \"glob\": \"^11.0.3\",\n \"gray-matter\": \"^4.0.3\",\n \"highlight.js\": \"^11.11.1\",\n \"ignore\": \"^7.0.5\",\n \"ink\": \"5.2.1\",\n \"ink-link\": \"^4.1.0\",\n \"ink-select-input\": \"^6.2.0\",\n \"ink-text-input\": \"^6.0.0\",\n \"js-yaml\": \"^4.1.1\",\n \"lodash-es\": \"^4.17.21\",\n \"lru-cache\": \"^11.1.0\",\n \"marked\": \"^15.0.12\",\n \"minimatch\": \"^10.1.1\",\n \"nanoid\": \"^5.1.5\",\n \"node-html-parser\": \"^7.0.1\",\n \"openai\": \"^4.104.0\",\n \"react\": \"18.3.1\",\n \"semver\": \"^7.7.2\",\n \"shell-quote\": \"^1.8.3\",\n \"spawn-rx\": \"^5.1.2\",\n \"string-width\": \"^7.2.0\",\n \"strip-ansi\": \"^7.1.0\",\n \"turndown\": \"^7.2.0\",\n \"which\": \"^6.0.0\",\n \"wrap-ansi\": \"^9.0.0\",\n \"zod\": \"^3.25.76\",\n \"zod-to-json-schema\": \"^3.24.6\"\n },\n \"devDependencies\": {\n \"@types/bun\": \"latest\",\n \"@types/jest\": \"^30.0.0\",\n \"@types/node\": \"^24.1.0\",\n \"@types/which\": \"^3.0.4\",\n \"@typescript-eslint/eslint-plugin\": \"^8.50.1\",\n \"@typescript-eslint/parser\": \"^8.50.1\",\n \"bun-types\": \"latest\",\n \"esbuild\": \"^0.25.9\",\n \"eslint\": \"8.57.0\",\n \"eslint-plugin-react-hooks\": \"^7.0.1\",\n \"prettier\": \"^3.6.2\",\n \"react-devtools-core\": \"^7.0.1\",\n \"typescript\": \"^5.9.2\"\n }\n}\n", "import pkg from '../../package.json'\r\n\r\nexport const MACRO = {\r\n VERSION: pkg.version,\r\n README_URL: 'https://github.com/Zhudanya/danya#readme',\r\n PACKAGE_URL: '@danya-ai/cli',\r\n ISSUES_EXPLAINER:\r\n 'report the issue at https://github.com/Zhudanya/danya/issues',\r\n}\r\n"],
|
|
5
5
|
"mappings": ";;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA,MACE,MAAQ;AAAA,MACR,SAAW;AAAA,MACX,KAAO;AAAA,QACL,OAAS;AAAA,MACX;AAAA,MACA,SAAW;AAAA,QACT,MAAQ;AAAA,MACV;AAAA,MACA,MAAQ;AAAA,MACR,QAAU;AAAA,MACV,SAAW;AAAA,MACX,aAAe;AAAA,MACf,UAAY;AAAA,MACZ,YAAc;AAAA,QACZ,MAAQ;AAAA,QACR,KAAO;AAAA,MACT;AAAA,MACA,MAAQ;AAAA,QACN,KAAO;AAAA,MACT;AAAA,MACA,OAAS;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,SAAW;AAAA,QACT,KAAO;AAAA,QACP,aAAa;AAAA,QACb,OAAS;AAAA,QACT,gBAAgB;AAAA,QAChB,OAAS;AAAA,QACT,gBAAkB;AAAA,QAClB,aAAe;AAAA,QACf,QAAU;AAAA,QACV,gBAAgB;AAAA,QAChB,MAAQ;AAAA,QACR,YAAY;AAAA,QACZ,MAAQ;AAAA,QACR,aAAa;AAAA,QACb,oBAAoB;AAAA,QACpB,YAAY;AAAA,QACZ,WAAa;AAAA,QACb,kBAAkB;AAAA,MACpB;AAAA,MACA,cAAgB;AAAA,QACd,qBAAqB;AAAA,QACrB,+BAA+B;AAAA,QAC/B,aAAa;AAAA,QACb,6BAA6B;AAAA,QAC7B,oBAAoB;AAAA,QACpB,gBAAgB;AAAA,QAChB,mBAAmB;AAAA,QACnB,KAAO;AAAA,QACP,gBAAgB;AAAA,QAChB,OAAS;AAAA,QACT,iBAAiB;AAAA,QACjB,cAAc;AAAA,QACd,WAAa;AAAA,QACb,OAAS;AAAA,QACT,MAAQ;AAAA,QACR,QAAU;AAAA,QACV,aAAa;AAAA,QACb,QAAU;AAAA,QACV,SAAW;AAAA,QACX,MAAQ;AAAA,QACR,eAAe;AAAA,QACf,gBAAgB;AAAA,QAChB,QAAU;AAAA,QACV,KAAO;AAAA,QACP,YAAY;AAAA,QACZ,oBAAoB;AAAA,QACpB,kBAAkB;AAAA,QAClB,WAAW;AAAA,QACX,aAAa;AAAA,QACb,aAAa;AAAA,QACb,QAAU;AAAA,QACV,WAAa;AAAA,QACb,QAAU;AAAA,QACV,oBAAoB;AAAA,QACpB,QAAU;AAAA,QACV,OAAS;AAAA,QACT,QAAU;AAAA,QACV,eAAe;AAAA,QACf,YAAY;AAAA,QACZ,gBAAgB;AAAA,QAChB,cAAc;AAAA,QACd,UAAY;AAAA,QACZ,OAAS;AAAA,QACT,aAAa;AAAA,QACb,KAAO;AAAA,QACP,sBAAsB;AAAA,MACxB;AAAA,MACA,iBAAmB;AAAA,QACjB,cAAc;AAAA,QACd,eAAe;AAAA,QACf,eAAe;AAAA,QACf,gBAAgB;AAAA,QAChB,oCAAoC;AAAA,QACpC,6BAA6B;AAAA,QAC7B,aAAa;AAAA,QACb,SAAW;AAAA,QACX,QAAU;AAAA,QACV,6BAA6B;AAAA,QAC7B,UAAY;AAAA,QACZ,uBAAuB;AAAA,QACvB,YAAc;AAAA,MAChB;AAAA,IACF;AAAA;AAAA;;;AClHA,IAEa;AAFb;AAAA;AAAA;AAEO,IAAM,QAAQ;AAAA,MACnB,SAAS,gBAAI;AAAA,MACb,YAAY;AAAA,MACZ,aAAa;AAAA,MACb,kBACE;AAAA,IACJ;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "./chunk-2VQWLLDU.js";
|
|
9
9
|
import {
|
|
10
10
|
debug
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VUWBPLA2.js";
|
|
12
12
|
import {
|
|
13
13
|
getCwd,
|
|
14
14
|
init_log,
|
|
15
15
|
init_state,
|
|
16
16
|
logError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OPC7BAW5.js";
|
|
18
18
|
|
|
19
19
|
// src/utils/agent/loader.ts
|
|
20
20
|
init_state();
|
|
@@ -455,7 +455,7 @@ function getLastAssistantMessageId(messages) {
|
|
|
455
455
|
|
|
456
456
|
// src/utils/messages/index.ts
|
|
457
457
|
async function processUserInput(input, mode, setToolJSX, context, pastedImages) {
|
|
458
|
-
const impl = await import("./userInput-
|
|
458
|
+
const impl = await import("./userInput-KMFH77N4.js");
|
|
459
459
|
return impl.processUserInput(input, mode, setToolJSX, context, pastedImages);
|
|
460
460
|
}
|
|
461
461
|
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
getSettingsFileCandidates,
|
|
5
5
|
loadSettingsWithLegacyFallback,
|
|
6
6
|
saveSettingsToPrimaryAndSyncLegacy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2ZWXQRFX.js";
|
|
8
8
|
import {
|
|
9
9
|
createDefaultToolPermissionContext,
|
|
10
10
|
isPersistableToolPermissionDestination
|
|
11
11
|
} from "./chunk-MVN3DHQF.js";
|
|
12
12
|
import {
|
|
13
13
|
getCurrentProjectConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-CEARH7HF.js";
|
|
15
15
|
import {
|
|
16
16
|
getCwd,
|
|
17
17
|
init_log,
|
|
18
18
|
init_state,
|
|
19
19
|
logError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OPC7BAW5.js";
|
|
21
21
|
|
|
22
22
|
// src/utils/permissions/toolPermissionSettings.ts
|
|
23
23
|
init_state();
|
|
@@ -3,13 +3,13 @@ const require = __kodeCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getSettingsFileCandidates,
|
|
5
5
|
loadSettingsWithLegacyFallback
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2ZWXQRFX.js";
|
|
7
7
|
import {
|
|
8
8
|
getSessionPlugins
|
|
9
9
|
} from "./chunk-2VQWLLDU.js";
|
|
10
10
|
import {
|
|
11
11
|
getTheme
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NWCMSPVL.js";
|
|
13
13
|
import {
|
|
14
14
|
addMcprcServerForTesting,
|
|
15
15
|
getCurrentProjectConfig,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
safeParseJSON,
|
|
20
20
|
saveCurrentProjectConfig,
|
|
21
21
|
saveGlobalConfig
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-CEARH7HF.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_COMMAND,
|
|
25
25
|
PRODUCT_NAME,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
init_product,
|
|
29
29
|
init_state,
|
|
30
30
|
logMCPError
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-OPC7BAW5.js";
|
|
32
32
|
|
|
33
33
|
// src/services/mcp/client.ts
|
|
34
34
|
init_state();
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
} from "./chunk-XEYEKVFT.js";
|
|
7
7
|
import {
|
|
8
8
|
getGlobalConfig
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CEARH7HF.js";
|
|
10
10
|
import {
|
|
11
11
|
debug,
|
|
12
12
|
getCurrentRequest,
|
|
13
13
|
logAPIError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VUWBPLA2.js";
|
|
15
15
|
|
|
16
16
|
// src/services/ai/openai.ts
|
|
17
17
|
var ProxyAgent = class {
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
} from "./chunk-XEYEKVFT.js";
|
|
7
7
|
import {
|
|
8
8
|
debug
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VUWBPLA2.js";
|
|
10
10
|
import {
|
|
11
11
|
init_log,
|
|
12
12
|
logError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OPC7BAW5.js";
|
|
14
14
|
|
|
15
15
|
// src/utils/agent/storage.ts
|
|
16
16
|
import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
init_log,
|
|
8
8
|
init_product,
|
|
9
9
|
logError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OPC7BAW5.js";
|
|
11
11
|
import {
|
|
12
12
|
MACRO,
|
|
13
13
|
init_macros
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NYT5K544.js";
|
|
15
15
|
|
|
16
16
|
// src/utils/session/autoUpdater.ts
|
|
17
17
|
init_execFileNoThrow();
|
|
@@ -90,7 +90,7 @@ async function checkAndNotifyUpdate() {
|
|
|
90
90
|
const [
|
|
91
91
|
{ isAutoUpdaterDisabled, getGlobalConfig, saveGlobalConfig },
|
|
92
92
|
{ env }
|
|
93
|
-
] = await Promise.all([import("./config-
|
|
93
|
+
] = await Promise.all([import("./config-NUGWMTAD.js"), import("./env-XZ365TBZ.js")]);
|
|
94
94
|
if (await isAutoUpdaterDisabled()) return;
|
|
95
95
|
if (await env.getIsDocker()) return;
|
|
96
96
|
if (!await env.hasInternetAccess()) return;
|