newcraw 1.0.2 → 1.0.4
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/REPL-DECTPCL5.js +50 -0
- package/dist/{acp-J4WDYGRX.js → acp-HA476EHW.js} +69 -40
- package/dist/acp-HA476EHW.js.map +7 -0
- package/dist/{agentsValidate-UBOER2IN.js → agentsValidate-EDPFUUMG.js} +13 -10
- package/dist/{agentsValidate-UBOER2IN.js.map → agentsValidate-EDPFUUMG.js.map} +1 -1
- package/dist/{ask-MGUO3L35.js → ask-5SP4YYRD.js} +62 -52
- package/dist/ask-5SP4YYRD.js.map +7 -0
- package/dist/{autoUpdater-2GS6LRPK.js → autoUpdater-FFMM2DR7.js} +5 -4
- package/dist/chunk-2BVCVKKB.js +135 -0
- package/dist/chunk-2BVCVKKB.js.map +7 -0
- package/dist/{chunk-2C43OXE7.js → chunk-2JCTO2EY.js} +38 -59
- package/dist/chunk-2JCTO2EY.js.map +7 -0
- package/dist/{chunk-OJIMOLIC.js → chunk-3CKC4ABU.js} +3631 -7464
- package/dist/chunk-3CKC4ABU.js.map +7 -0
- package/dist/chunk-ARCEUG3V.js +88 -0
- package/dist/chunk-ARCEUG3V.js.map +7 -0
- package/dist/{chunk-RUXIBQ3B.js → chunk-BJYXLCRS.js} +4 -4
- package/dist/{chunk-VKI7ORIO.js → chunk-BMKE6FT5.js} +37 -18
- package/dist/{chunk-VKI7ORIO.js.map → chunk-BMKE6FT5.js.map} +1 -1
- package/dist/chunk-BQCOSNM3.js +93 -0
- package/dist/chunk-BQCOSNM3.js.map +7 -0
- package/dist/chunk-CHB5K4GI.js +107 -0
- package/dist/chunk-CHB5K4GI.js.map +7 -0
- package/dist/chunk-D4OZACS2.js +35 -0
- package/dist/chunk-EHQ2M5B4.js +166 -0
- package/dist/{chunk-ZYSVG4X3.js.map → chunk-EHQ2M5B4.js.map} +2 -2
- package/dist/chunk-EUBZGAIN.js +372 -0
- package/dist/chunk-EUBZGAIN.js.map +7 -0
- package/dist/{chunk-UYRR6F5S.js → chunk-FIMCETCB.js} +9 -3
- package/dist/{chunk-UYRR6F5S.js.map → chunk-FIMCETCB.js.map} +1 -1
- package/dist/{chunk-DEF3KFP7.js → chunk-GVLJUD6R.js} +4 -2
- package/dist/{chunk-DEF3KFP7.js.map → chunk-GVLJUD6R.js.map} +1 -1
- package/dist/chunk-HLBLZKZH.js +45 -0
- package/dist/chunk-HLBLZKZH.js.map +7 -0
- package/dist/{chunk-XS6PU75S.js → chunk-IVWPPTDM.js} +1 -1
- package/dist/{chunk-A7X6OCZE.js → chunk-IXFBUXQW.js} +1 -1
- package/dist/{chunk-HSJ6HYAO.js → chunk-IZZTKEZH.js} +18 -10
- package/dist/chunk-IZZTKEZH.js.map +7 -0
- package/dist/{chunk-2EFL22PV.js → chunk-JI4HCLK7.js} +7 -3
- package/dist/chunk-JI4HCLK7.js.map +7 -0
- package/dist/chunk-JLVECHVJ.js +36 -0
- package/dist/chunk-JLVECHVJ.js.map +7 -0
- package/dist/{chunk-XXU2NVOE.js → chunk-KJTPUTU7.js} +30 -6
- package/dist/chunk-KJTPUTU7.js.map +7 -0
- package/dist/{chunk-V5U6BHT2.js → chunk-KS646CDL.js} +7 -3
- package/dist/{chunk-V5U6BHT2.js.map → chunk-KS646CDL.js.map} +1 -1
- package/dist/{chunk-53A4JHFW.js → chunk-MJ3MLGVB.js} +23 -4
- package/dist/chunk-MJ3MLGVB.js.map +7 -0
- package/dist/chunk-MJLWBVZP.js +822 -0
- package/dist/chunk-MJLWBVZP.js.map +7 -0
- package/dist/chunk-MMF5RMLU.js +65 -0
- package/dist/chunk-MMF5RMLU.js.map +7 -0
- package/dist/{chunk-QH2M65BR.js → chunk-MUW3J7CP.js} +7 -3
- package/dist/{chunk-QH2M65BR.js.map → chunk-MUW3J7CP.js.map} +1 -1
- package/dist/{chunk-3LMXSKZ7.js → chunk-NFXLN6FJ.js} +1 -1
- package/dist/chunk-NT7RDVDA.js +33 -0
- package/dist/{chunk-KQSHIOZK.js.map → chunk-NT7RDVDA.js.map} +1 -1
- package/dist/{chunk-OZHBEG7U.js → chunk-O4EKE3YR.js} +15 -5
- package/dist/{chunk-OZHBEG7U.js.map → chunk-O4EKE3YR.js.map} +1 -1
- package/dist/chunk-Q2OBTLBI.js +5473 -0
- package/dist/chunk-Q2OBTLBI.js.map +7 -0
- package/dist/{chunk-WWDVA4NV.js → chunk-QJ7MQIHN.js} +22 -6
- package/dist/{chunk-WWDVA4NV.js.map → chunk-QJ7MQIHN.js.map} +1 -1
- package/dist/{chunk-N5OHRWG2.js → chunk-QSRXXZO7.js} +4 -2
- package/dist/{chunk-N5OHRWG2.js.map → chunk-QSRXXZO7.js.map} +1 -1
- package/dist/{chunk-GZTCXXSS.js → chunk-QT5GS374.js} +57 -46
- package/dist/{chunk-GZTCXXSS.js.map → chunk-QT5GS374.js.map} +1 -1
- package/dist/chunk-QX5Y5CE5.js +683 -0
- package/dist/{chunk-F3COCCAE.js.map → chunk-QX5Y5CE5.js.map} +1 -1
- package/dist/{chunk-IIFUDVGS.js → chunk-U6IF5D3J.js} +310 -177
- package/dist/chunk-U6IF5D3J.js.map +7 -0
- package/dist/{chunk-VQSCECTS.js → chunk-UPRKGNBR.js} +6 -4
- package/dist/{chunk-VQSCECTS.js.map → chunk-UPRKGNBR.js.map} +1 -1
- package/dist/chunk-UUCRNFMH.js +62 -0
- package/dist/chunk-UUCRNFMH.js.map +7 -0
- package/dist/chunk-UYWZQVH5.js +35 -0
- package/dist/chunk-UYWZQVH5.js.map +7 -0
- package/dist/{chunk-XMGUQHMF.js → chunk-VSSVN6WG.js} +11 -1
- package/dist/chunk-VSSVN6WG.js.map +7 -0
- package/dist/{chunk-VHS2MZQS.js → chunk-W7Q3VYAB.js} +9 -6
- package/dist/{chunk-VHS2MZQS.js.map → chunk-W7Q3VYAB.js.map} +1 -1
- package/dist/{chunk-JWXQNBBA.js → chunk-WAXMRSVR.js} +7 -1
- package/dist/{chunk-JWXQNBBA.js.map → chunk-WAXMRSVR.js.map} +1 -1
- package/dist/{chunk-BWYKUDJR.js → chunk-X3NER6FY.js} +14 -8
- package/dist/{chunk-BWYKUDJR.js.map → chunk-X3NER6FY.js.map} +1 -1
- package/dist/{chunk-IM33F5CM.js → chunk-XYQZLDRB.js} +1668 -1623
- package/dist/chunk-XYQZLDRB.js.map +7 -0
- package/dist/{chunk-LOIZNQOU.js → chunk-ZM5FMRLS.js} +9 -3
- package/dist/{chunk-LOIZNQOU.js.map → chunk-ZM5FMRLS.js.map} +1 -1
- package/dist/{chunk-755HIAI3.js → chunk-ZMO4E7IW.js} +3 -42
- package/dist/chunk-ZMO4E7IW.js.map +7 -0
- package/dist/{cli-KZGF3FV5.js → cli-4KO6TA5J.js} +251 -485
- package/dist/cli-4KO6TA5J.js.map +7 -0
- package/dist/commands-JSY7CGSU.js +54 -0
- package/dist/{config-GTJWCNPF.js → config-DQEFVW3Y.js} +9 -6
- package/dist/{context-WF3TTXQU.js → context-HVQCTO5R.js} +8 -7
- package/dist/{costTracker-2G3ZI2JF.js → costTracker-VSWW7SRT.js} +3 -2
- package/dist/{customCommands-QOWK57EX.js → customCommands-XCINU5TG.js} +6 -5
- package/dist/{env-37BAP7QF.js → env-ZOPEXWMF.js} +10 -7
- package/dist/{gateway-IZYO6YFJ.js → gateway-SUXSILQL.js} +542 -96
- package/dist/gateway-SUXSILQL.js.map +7 -0
- package/dist/identity-3KZQQVBG.js +16 -0
- package/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/{kodeAgentSessionId-KTGFX2BE.js → kodeAgentSessionId-4SH24DVH.js} +1 -1
- package/dist/{kodeAgentSessionLoad-6F7SJXBC.js → kodeAgentSessionLoad-HB3BYVNG.js} +6 -5
- package/dist/{kodeAgentSessionResume-UEEDRJ3N.js → kodeAgentSessionResume-IGSZZY3G.js} +6 -5
- package/dist/{kodeAgentStreamJson-VIXFTYL5.js → kodeAgentStreamJson-4ZKIWKS3.js} +4 -2
- package/dist/{kodeAgentStreamJsonSession-XC3IPREZ.js → kodeAgentStreamJsonSession-4L76UC75.js} +15 -4
- package/dist/kodeAgentStreamJsonSession-4L76UC75.js.map +7 -0
- package/dist/{kodeAgentStructuredStdio-SI5C7AAD.js → kodeAgentStructuredStdio-5DCUC6V6.js} +3 -3
- package/dist/{kodeHooks-V36SHCTC.js → kodeHooks-H6DMC3XX.js} +6 -5
- package/dist/{llm-CYUDKJNR.js → llm-OJZ6DZVC.js} +306 -60
- package/dist/llm-OJZ6DZVC.js.map +7 -0
- package/dist/{llmLazy-IXVVBRTN.js → llmLazy-TDLZZDPL.js} +2 -2
- package/dist/{loader-OEJ6C3TN.js → loader-MOVYZ76M.js} +6 -5
- package/dist/{mcp-KE3SILMX.js → mcp-DUYSIR5L.js} +10 -9
- package/dist/{mentionProcessor-GAU2WAYB.js → mentionProcessor-EKVLXJN4.js} +14 -7
- package/dist/{mentionProcessor-GAU2WAYB.js.map → mentionProcessor-EKVLXJN4.js.map} +1 -1
- package/dist/{messages-WCSGGSEU.js → messages-23ICFVMC.js} +2 -2
- package/dist/{model-4TQIV5J2.js → model-FUBCTRTV.js} +10 -7
- package/dist/{openai-KTZV6F7N.js → openai-SMYIAIO4.js} +8 -7
- package/dist/{outputStyles-WX5RYQOA.js → outputStyles-HBOYJFBE.js} +6 -5
- package/dist/{pluginRuntime-JXMJZ2LC.js → pluginRuntime-ATZMDZA7.js} +11 -8
- package/dist/{pluginRuntime-JXMJZ2LC.js.map → pluginRuntime-ATZMDZA7.js.map} +1 -1
- package/dist/{pluginValidation-JNQZYLUP.js → pluginValidation-7CGOMT6F.js} +8 -7
- package/dist/prompts-MFESKNYZ.js +58 -0
- package/dist/query-BFEFOX4S.js +58 -0
- package/dist/{responsesStreaming-2AIT6GHG.js → responsesStreaming-JORGEFQC.js} +1 -1
- package/dist/{ripgrep-KDPQAMB2.js → ripgrep-KNJBCJIQ.js} +5 -4
- package/dist/sandbox-P3FR4G4D.js +63 -0
- package/dist/{skillMarketplace-IXAGP3Q2.js → skillMarketplace-PCMKVV4O.js} +5 -4
- package/dist/{state-MSCYLB6Y.js → state-XBYIQ7R4.js} +6 -3
- package/dist/structuredOutput-KAVFUV2Z.js +9 -0
- package/dist/theme-4ZSXUILR.js +15 -0
- package/dist/thinking-TTNUZUB3.js +18 -0
- package/dist/{toolPermissionContext-I3IXPVED.js → toolPermissionContext-JCQ5MFUT.js} +1 -1
- package/dist/toolPermissionContext-JCQ5MFUT.js.map +7 -0
- package/dist/toolPermissionContextState-R6ZGMKP6.js +24 -0
- package/dist/toolPermissionContextState-R6ZGMKP6.js.map +7 -0
- package/dist/{toolPermissionSettings-EUZKGZU2.js → toolPermissionSettings-GMEYTJEA.js} +9 -8
- package/dist/toolPermissionSettings-GMEYTJEA.js.map +7 -0
- package/dist/tools-7FVKB7BG.js +55 -0
- package/dist/tools-7FVKB7BG.js.map +7 -0
- package/dist/{userInput-LJL4CVOB.js → userInput-SZEUY5J6.js} +49 -34
- package/dist/{userInput-LJL4CVOB.js.map → userInput-SZEUY5J6.js.map} +1 -1
- package/dist/{uuid-VA3KVASX.js → uuid-RQH3OZ3W.js} +1 -1
- package/dist/uuid-RQH3OZ3W.js.map +7 -0
- package/dist/workspace-EP63OB5S.js +21 -0
- package/dist/workspace-EP63OB5S.js.map +7 -0
- package/package.json +2 -2
- package/web/dist/assets/index-XuLVvSQF.js +251 -0
- package/web/dist/assets/index-pSid9IlY.css +10 -0
- package/web/dist/index.html +2 -2
- package/dist/REPL-IAK7ZN2Z.js +0 -42
- package/dist/acp-J4WDYGRX.js.map +0 -7
- package/dist/ask-MGUO3L35.js.map +0 -7
- package/dist/chunk-2C43OXE7.js.map +0 -7
- package/dist/chunk-2EFL22PV.js.map +0 -7
- package/dist/chunk-53A4JHFW.js.map +0 -7
- package/dist/chunk-755HIAI3.js.map +0 -7
- package/dist/chunk-AXWJI6N5.js +0 -11
- package/dist/chunk-F3COCCAE.js +0 -654
- package/dist/chunk-HSJ6HYAO.js.map +0 -7
- package/dist/chunk-IIFUDVGS.js.map +0 -7
- package/dist/chunk-IM33F5CM.js.map +0 -7
- package/dist/chunk-KQSHIOZK.js +0 -24
- package/dist/chunk-OJIMOLIC.js.map +0 -7
- package/dist/chunk-XMGUQHMF.js.map +0 -7
- package/dist/chunk-XXU2NVOE.js.map +0 -7
- package/dist/chunk-ZYSVG4X3.js +0 -151
- package/dist/cli-KZGF3FV5.js.map +0 -7
- package/dist/commands-AVEBLFVS.js +0 -46
- package/dist/gateway-IZYO6YFJ.js.map +0 -7
- package/dist/kodeAgentStreamJsonSession-XC3IPREZ.js.map +0 -7
- package/dist/llm-CYUDKJNR.js.map +0 -7
- package/dist/prompts-LE6GK75N.js +0 -48
- package/dist/query-GGIP6PWG.js +0 -50
- package/dist/theme-GAMFOLBW.js +0 -14
- package/dist/tools-3HOUIDM3.js +0 -47
- package/web/dist/assets/index-COAJqX1Z.css +0 -1
- package/web/dist/assets/index-CzS_4LmC.js +0 -179
- /package/dist/{REPL-IAK7ZN2Z.js.map → REPL-DECTPCL5.js.map} +0 -0
- /package/dist/{autoUpdater-2GS6LRPK.js.map → autoUpdater-FFMM2DR7.js.map} +0 -0
- /package/dist/{chunk-RUXIBQ3B.js.map → chunk-BJYXLCRS.js.map} +0 -0
- /package/dist/{chunk-AXWJI6N5.js.map → chunk-D4OZACS2.js.map} +0 -0
- /package/dist/{chunk-XS6PU75S.js.map → chunk-IVWPPTDM.js.map} +0 -0
- /package/dist/{chunk-A7X6OCZE.js.map → chunk-IXFBUXQW.js.map} +0 -0
- /package/dist/{chunk-3LMXSKZ7.js.map → chunk-NFXLN6FJ.js.map} +0 -0
- /package/dist/{commands-AVEBLFVS.js.map → commands-JSY7CGSU.js.map} +0 -0
- /package/dist/{config-GTJWCNPF.js.map → config-DQEFVW3Y.js.map} +0 -0
- /package/dist/{context-WF3TTXQU.js.map → context-HVQCTO5R.js.map} +0 -0
- /package/dist/{costTracker-2G3ZI2JF.js.map → costTracker-VSWW7SRT.js.map} +0 -0
- /package/dist/{customCommands-QOWK57EX.js.map → customCommands-XCINU5TG.js.map} +0 -0
- /package/dist/{env-37BAP7QF.js.map → env-ZOPEXWMF.js.map} +0 -0
- /package/dist/{kodeAgentSessionId-KTGFX2BE.js.map → identity-3KZQQVBG.js.map} +0 -0
- /package/dist/{kodeAgentSessionLoad-6F7SJXBC.js.map → kodeAgentSessionId-4SH24DVH.js.map} +0 -0
- /package/dist/{kodeAgentSessionResume-UEEDRJ3N.js.map → kodeAgentSessionLoad-HB3BYVNG.js.map} +0 -0
- /package/dist/{kodeAgentStreamJson-VIXFTYL5.js.map → kodeAgentSessionResume-IGSZZY3G.js.map} +0 -0
- /package/dist/{kodeAgentStructuredStdio-SI5C7AAD.js.map → kodeAgentStreamJson-4ZKIWKS3.js.map} +0 -0
- /package/dist/{kodeHooks-V36SHCTC.js.map → kodeAgentStructuredStdio-5DCUC6V6.js.map} +0 -0
- /package/dist/{llmLazy-IXVVBRTN.js.map → kodeHooks-H6DMC3XX.js.map} +0 -0
- /package/dist/{loader-OEJ6C3TN.js.map → llmLazy-TDLZZDPL.js.map} +0 -0
- /package/dist/{mcp-KE3SILMX.js.map → loader-MOVYZ76M.js.map} +0 -0
- /package/dist/{messages-WCSGGSEU.js.map → mcp-DUYSIR5L.js.map} +0 -0
- /package/dist/{model-4TQIV5J2.js.map → messages-23ICFVMC.js.map} +0 -0
- /package/dist/{openai-KTZV6F7N.js.map → model-FUBCTRTV.js.map} +0 -0
- /package/dist/{outputStyles-WX5RYQOA.js.map → openai-SMYIAIO4.js.map} +0 -0
- /package/dist/{pluginValidation-JNQZYLUP.js.map → outputStyles-HBOYJFBE.js.map} +0 -0
- /package/dist/{prompts-LE6GK75N.js.map → pluginValidation-7CGOMT6F.js.map} +0 -0
- /package/dist/{query-GGIP6PWG.js.map → prompts-MFESKNYZ.js.map} +0 -0
- /package/dist/{responsesStreaming-2AIT6GHG.js.map → query-BFEFOX4S.js.map} +0 -0
- /package/dist/{ripgrep-KDPQAMB2.js.map → responsesStreaming-JORGEFQC.js.map} +0 -0
- /package/dist/{skillMarketplace-IXAGP3Q2.js.map → ripgrep-KNJBCJIQ.js.map} +0 -0
- /package/dist/{state-MSCYLB6Y.js.map → sandbox-P3FR4G4D.js.map} +0 -0
- /package/dist/{theme-GAMFOLBW.js.map → skillMarketplace-PCMKVV4O.js.map} +0 -0
- /package/dist/{toolPermissionContext-I3IXPVED.js.map → state-XBYIQ7R4.js.map} +0 -0
- /package/dist/{toolPermissionSettings-EUZKGZU2.js.map → structuredOutput-KAVFUV2Z.js.map} +0 -0
- /package/dist/{tools-3HOUIDM3.js.map → theme-4ZSXUILR.js.map} +0 -0
- /package/dist/{uuid-VA3KVASX.js.map → thinking-TTNUZUB3.js.map} +0 -0
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/services/context/mentionProcessor.ts"],
|
|
4
4
|
"sourcesContent": ["import { emitReminderEvent } from '@services/systemReminder'\r\nimport { getAvailableAgentTypes } from '@utils/agent/loader'\r\nimport { existsSync } from 'fs'\r\nimport { resolve } from 'path'\r\nimport { getCwd } from '@utils/state'\r\nimport { debug as debugLogger } from '@utils/log/debugLogger'\r\nimport { logError } from '@utils/log'\r\n\r\nexport interface MentionContext {\r\n type: 'agent' | 'file'\r\n mention: string\r\n resolved: string\r\n exists: boolean\r\n metadata?: any\r\n}\r\n\r\nexport interface ProcessedMentions {\r\n agents: MentionContext[]\r\n files: MentionContext[]\r\n hasAgentMentions: boolean\r\n hasFileMentions: boolean\r\n}\r\n\r\nclass MentionProcessorService {\r\n private static readonly MENTION_PATTERNS = {\r\n runAgent: /@(run-agent-[\\w\\-]+)/g,\r\n agent: /@(agent-[\\w\\-]+)/g,\r\n askModel: /@(ask-[\\w\\-]+)/g,\r\n file: /@(?:\"([^\"\\n]+)\"|'([^'\\n]+)'|([a-zA-Z0-9/._~:\\\\\\\\-]+))/g,\r\n } as const\r\n\r\n private agentCache: Map<string, boolean> = new Map()\r\n private lastAgentCheck: number = 0\r\n private CACHE_TTL = 60_000\r\n\r\n public async processMentions(input: string): Promise<ProcessedMentions> {\r\n const result: ProcessedMentions = {\r\n agents: [],\r\n files: [],\r\n hasAgentMentions: false,\r\n hasFileMentions: false,\r\n }\r\n\r\n try {\r\n const agentMentions = this.extractAgentMentions(input)\r\n if (agentMentions.length > 0) {\r\n await this.refreshAgentCache()\r\n\r\n for (const { mention, agentType, isAskModel } of agentMentions) {\r\n if (isAskModel || this.agentCache.has(agentType)) {\r\n result.agents.push({\r\n type: 'agent',\r\n mention,\r\n resolved: agentType,\r\n exists: true,\r\n metadata: isAskModel ? { type: 'ask-model' } : undefined,\r\n })\r\n result.hasAgentMentions = true\r\n\r\n this.emitAgentMentionEvent(mention, agentType, isAskModel)\r\n }\r\n }\r\n }\r\n\r\n const fileMatches = [\r\n ...input.matchAll(MentionProcessorService.MENTION_PATTERNS.file),\r\n ]\r\n const processedAgentMentions = new Set(\r\n agentMentions.map(am => am.mention),\r\n )\r\n\r\n for (const match of fileMatches) {\r\n const rawMention = match[0]?.slice(1) || ''\r\n const mention = (match[1] ?? match[2] ?? match[3] ?? '').trim()\r\n\r\n if (\r\n mention.startsWith('run-agent-') ||\r\n mention.startsWith('agent-') ||\r\n mention.startsWith('ask-') ||\r\n processedAgentMentions.has(mention)\r\n ) {\r\n continue\r\n }\r\n\r\n if (!mention) continue\r\n const filePath = this.resolveFilePath(\r\n this.normalizeFileMentionPath(mention),\r\n )\r\n if (existsSync(filePath)) {\r\n result.files.push({\r\n type: 'file',\r\n mention: rawMention || mention,\r\n resolved: filePath,\r\n exists: true,\r\n })\r\n result.hasFileMentions = true\r\n\r\n emitReminderEvent('file:mentioned', {\r\n filePath: filePath,\r\n originalMention: rawMention || mention,\r\n timestamp: Date.now(),\r\n })\r\n }\r\n }\r\n\r\n return result\r\n } catch (error) {\r\n logError(error)\r\n debugLogger.warn('MENTION_PROCESSOR_PROCESS_FAILED', {\r\n input: input.substring(0, 100) + (input.length > 100 ? '...' : ''),\r\n error: error instanceof Error ? error.message : error,\r\n })\r\n\r\n return {\r\n agents: [],\r\n files: [],\r\n hasAgentMentions: false,\r\n hasFileMentions: false,\r\n }\r\n }\r\n }\r\n\r\n private resolveFilePath(mention: string): string {\r\n return resolve(getCwd(), mention)\r\n }\r\n\r\n private normalizeFileMentionPath(mention: string): string {\r\n return mention.replace(/\\\\ /g, ' ')\r\n }\r\n\r\n private async refreshAgentCache(): Promise<void> {\r\n const now = Date.now()\r\n if (now - this.lastAgentCheck < this.CACHE_TTL) {\r\n return\r\n }\r\n\r\n try {\r\n const agents = await getAvailableAgentTypes()\r\n const previousCacheSize = this.agentCache.size\r\n this.agentCache.clear()\r\n\r\n for (const agent of agents) {\r\n this.agentCache.set(agent.agentType, true)\r\n }\r\n\r\n this.lastAgentCheck = now\r\n\r\n if (agents.length !== previousCacheSize) {\r\n debugLogger.info('MENTION_PROCESSOR_CACHE_REFRESHED', {\r\n agentCount: agents.length,\r\n previousCacheSize,\r\n cacheAge: now - this.lastAgentCheck,\r\n })\r\n }\r\n } catch (error) {\r\n logError(error)\r\n debugLogger.warn('MENTION_PROCESSOR_CACHE_REFRESH_FAILED', {\r\n error: error instanceof Error ? error.message : error,\r\n cacheSize: this.agentCache.size,\r\n lastRefresh: new Date(this.lastAgentCheck).toISOString(),\r\n })\r\n }\r\n }\r\n\r\n private extractAgentMentions(\r\n input: string,\r\n ): Array<{ mention: string; agentType: string; isAskModel: boolean }> {\r\n const mentions: Array<{\r\n mention: string\r\n agentType: string\r\n isAskModel: boolean\r\n }> = []\r\n\r\n const runAgentMatches = [\r\n ...input.matchAll(MentionProcessorService.MENTION_PATTERNS.runAgent),\r\n ]\r\n for (const match of runAgentMatches) {\r\n const mention = match[1]\r\n const agentType = mention.replace(/^run-agent-/, '')\r\n mentions.push({ mention, agentType, isAskModel: false })\r\n }\r\n\r\n const agentMatches = [\r\n ...input.matchAll(MentionProcessorService.MENTION_PATTERNS.agent),\r\n ]\r\n for (const match of agentMatches) {\r\n const mention = match[1]\r\n const agentType = mention.replace(/^agent-/, '')\r\n mentions.push({ mention, agentType, isAskModel: false })\r\n }\r\n\r\n const askModelMatches = [\r\n ...input.matchAll(MentionProcessorService.MENTION_PATTERNS.askModel),\r\n ]\r\n for (const match of askModelMatches) {\r\n const mention = match[1]\r\n mentions.push({ mention, agentType: mention, isAskModel: true })\r\n }\r\n\r\n return mentions\r\n }\r\n\r\n private emitAgentMentionEvent(\r\n mention: string,\r\n agentType: string,\r\n isAskModel: boolean,\r\n ): void {\r\n try {\r\n const eventData = {\r\n originalMention: mention,\r\n timestamp: Date.now(),\r\n }\r\n\r\n if (isAskModel) {\r\n emitReminderEvent('ask-model:mentioned', {\r\n ...eventData,\r\n modelName: mention,\r\n })\r\n } else {\r\n emitReminderEvent('agent:mentioned', {\r\n ...eventData,\r\n agentType,\r\n })\r\n }\r\n\r\n debugLogger.info('MENTION_PROCESSOR_EVENT_EMITTED', {\r\n type: isAskModel ? 'ask-model' : 'agent',\r\n mention,\r\n agentType: isAskModel ? undefined : agentType,\r\n })\r\n } catch (error) {\r\n debugLogger.error('MENTION_PROCESSOR_EVENT_FAILED', {\r\n mention,\r\n agentType,\r\n isAskModel,\r\n error: error instanceof Error ? error.message : error,\r\n })\r\n }\r\n }\r\n\r\n public clearCache(): void {\r\n this.agentCache.clear()\r\n this.lastAgentCheck = 0\r\n }\r\n}\r\n\r\nexport const mentionProcessor = new MentionProcessorService()\r\n\r\nexport const processMentions = (input: string) =>\r\n mentionProcessor.processMentions(input)\r\n\r\nexport const clearMentionCache = () => mentionProcessor.clearCache()\r\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;AACA;AACA;AAJA,SAAS,kBAAkB;AAC3B,SAAS,eAAe;AAoBxB,IAAM,0BAAN,MAAM,yBAAwB;AAAA,EAC5B,OAAwB,mBAAmB;AAAA,IACzC,UAAU;AAAA,IACV,OAAO;AA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K,IAAI;AAAA,MACtB;AAEA,UAAI,YAAY;AACd,0BAAkB,uBAAuB;AAAA,UACvC,GAAG;AAAA,UACH,WAAW;AAAA,QACb,CAAC;AAAA,MACH,OAAO;AACL,0BAAkB,mBAAmB;AAAA,UACnC,GAAG;AAAA,UACH;AAAA,QACF,CAAC;AAAA,MACH;AAEA,YAAY,KAAK,mCAAmC;AAAA,QAClD,MAAM,aAAa,cAAc;AAAA,QACjC;AAAA,QACA,WAAW,aAAa,SAAY;AAAA,MACtC,CAAC;AAAA,IACH,SAAS,OAAO;AACd,YAAY,MAAM,kCAAkC;AAAA,QAClD;AAAA,QACA;AAAA,QACA;AAAA,QACA,OAAO,iBAAiB,QAAQ,MAAM,UAAU;AAAA,MAClD,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEO,aAAmB;AACxB,SAAK,WAAW,MAAM;AACtB,SAAK,iBAAiB;AAAA,EACxB;AACF;AAEO,IAAM,mBAAmB,IAAI,wBAAwB;AAErD,IAAM,kBAAkB,CAAC,UAC9B,iBAAiB,gBAAgB,KAAK;AAEjC,IAAM,oBAAoB,MAAM,iBAAiB,WAAW;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
processUserInput,
|
|
31
31
|
reorderMessages,
|
|
32
32
|
stripSystemMessages
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-IXFBUXQW.js";
|
|
34
|
+
import "./chunk-D4OZACS2.js";
|
|
35
35
|
export {
|
|
36
36
|
CANCEL_MESSAGE,
|
|
37
37
|
INTERRUPT_MESSAGE,
|
|
@@ -8,15 +8,18 @@ import {
|
|
|
8
8
|
getQuickModel,
|
|
9
9
|
getSlowAndCapableModel,
|
|
10
10
|
getVertexRegionForModel,
|
|
11
|
+
init_model,
|
|
11
12
|
isDefaultSlowAndCapableModel,
|
|
12
13
|
reloadModelManager
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-QX5Y5CE5.js";
|
|
15
|
+
import "./chunk-U6IF5D3J.js";
|
|
16
|
+
import "./chunk-NT7RDVDA.js";
|
|
17
|
+
import "./chunk-QT5GS374.js";
|
|
18
|
+
import "./chunk-XYQZLDRB.js";
|
|
19
|
+
import "./chunk-UYWZQVH5.js";
|
|
20
|
+
import "./chunk-EHQ2M5B4.js";
|
|
21
|
+
import "./chunk-D4OZACS2.js";
|
|
22
|
+
init_model();
|
|
20
23
|
export {
|
|
21
24
|
ModelManager,
|
|
22
25
|
USE_BEDROCK,
|
|
@@ -9,14 +9,15 @@ import {
|
|
|
9
9
|
getGPT5CompletionWithProfile,
|
|
10
10
|
getModelFeatures,
|
|
11
11
|
streamCompletion
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MUW3J7CP.js";
|
|
13
13
|
import "./chunk-TY3CCSAT.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-U6IF5D3J.js";
|
|
15
|
+
import "./chunk-NT7RDVDA.js";
|
|
16
|
+
import "./chunk-QT5GS374.js";
|
|
17
|
+
import "./chunk-XYQZLDRB.js";
|
|
18
|
+
import "./chunk-UYWZQVH5.js";
|
|
19
|
+
import "./chunk-EHQ2M5B4.js";
|
|
20
|
+
import "./chunk-D4OZACS2.js";
|
|
20
21
|
export {
|
|
21
22
|
applyModelSpecificTransformations,
|
|
22
23
|
callGPT5ResponsesAPI,
|
|
@@ -9,13 +9,14 @@ import {
|
|
|
9
9
|
getOutputStyleSystemPromptAdditions,
|
|
10
10
|
resolveOutputStyleName,
|
|
11
11
|
setCurrentOutputStyle
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-2EFL22PV.js";
|
|
12
|
+
} from "./chunk-W7Q3VYAB.js";
|
|
14
13
|
import "./chunk-INJSFEKL.js";
|
|
14
|
+
import "./chunk-JI4HCLK7.js";
|
|
15
15
|
import "./chunk-2UO3BFZH.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XYQZLDRB.js";
|
|
17
|
+
import "./chunk-UYWZQVH5.js";
|
|
18
|
+
import "./chunk-EHQ2M5B4.js";
|
|
19
|
+
import "./chunk-D4OZACS2.js";
|
|
19
20
|
export {
|
|
20
21
|
DEFAULT_OUTPUT_STYLE,
|
|
21
22
|
clearOutputStyleCache,
|
|
@@ -4,12 +4,15 @@ import {
|
|
|
4
4
|
setSessionPlugins
|
|
5
5
|
} from "./chunk-2UO3BFZH.js";
|
|
6
6
|
import {
|
|
7
|
-
getCwd
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
getCwd,
|
|
8
|
+
init_state
|
|
9
|
+
} from "./chunk-XYQZLDRB.js";
|
|
10
|
+
import "./chunk-UYWZQVH5.js";
|
|
11
|
+
import "./chunk-EHQ2M5B4.js";
|
|
12
|
+
import "./chunk-D4OZACS2.js";
|
|
11
13
|
|
|
12
14
|
// src/services/plugins/pluginRuntime.ts
|
|
15
|
+
init_state();
|
|
13
16
|
import { existsSync, readFileSync, statSync } from "fs";
|
|
14
17
|
import { homedir } from "os";
|
|
15
18
|
import { join, resolve } from "path";
|
|
@@ -202,14 +205,14 @@ async function configureSessionPlugins(args) {
|
|
|
202
205
|
}
|
|
203
206
|
}
|
|
204
207
|
setSessionPlugins(plugins);
|
|
205
|
-
const { reloadCustomCommands } = await import("./customCommands-
|
|
208
|
+
const { reloadCustomCommands } = await import("./customCommands-XCINU5TG.js");
|
|
206
209
|
reloadCustomCommands();
|
|
207
|
-
const { getCommands } = await import("./commands-
|
|
210
|
+
const { getCommands } = await import("./commands-JSY7CGSU.js");
|
|
208
211
|
getCommands.cache.clear?.();
|
|
209
|
-
const { getClients, getMCPTools } = await import("./mcp-
|
|
212
|
+
const { getClients, getMCPTools } = await import("./mcp-DUYSIR5L.js");
|
|
210
213
|
getClients.cache?.clear?.();
|
|
211
214
|
getMCPTools.cache?.clear?.();
|
|
212
|
-
const { clearOutputStyleCache } = await import("./outputStyles-
|
|
215
|
+
const { clearOutputStyleCache } = await import("./outputStyles-HBOYJFBE.js");
|
|
213
216
|
clearOutputStyleCache();
|
|
214
217
|
return { plugins, errors };
|
|
215
218
|
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/services/plugins/pluginRuntime.ts"],
|
|
4
4
|
"sourcesContent": ["import { existsSync, readFileSync, statSync } from 'fs'\r\nimport { homedir } from 'os'\r\nimport { join, resolve } from 'path'\r\nimport { z } from 'zod'\r\nimport { glob as globLib } from 'glob'\r\nimport { getCwd } from '@utils/state'\r\nimport { setSessionPlugins, type SessionPlugin } from '@utils/session/sessionPlugins'\r\n\r\nconst PluginManifestSchema = z\r\n .object({\r\n name: z.string().min(1),\r\n })\r\n .passthrough()\r\n\r\nfunction expandHome(input: string): string {\r\n const trimmed = input.trim()\r\n if (trimmed === '~') return homedir()\r\n if (trimmed.startsWith('~/') || trimmed.startsWith('~\\\\')) {\r\n return join(homedir(), trimmed.slice(2))\r\n }\r\n return trimmed\r\n}\r\n\r\nfunction isLikelyGlob(value: string): boolean {\r\n return /[*?[\\]]/.test(value)\r\n}\r\n\r\nasync function expandPluginDirInputs(\r\n pluginDirs: string[],\r\n baseDir: string,\r\n): Promise<string[]> {\r\n const out: string[] = []\r\n for (const raw of pluginDirs) {\r\n const trimmed = String(raw ?? '').trim()\r\n if (!trimmed) continue\r\n const expanded = expandHome(trimmed)\r\n const abs = resolve(baseDir, expanded)\r\n\r\n if (isLikelyGlob(trimmed) || isLikelyGlob(expanded)) {\r\n const patternsToTry = expanded !== trimmed ? [expanded, trimmed] : [trimmed]\r\n let matched = false\r\n for (const pattern of patternsToTry) {\r\n try {\r\n const matches = await globLib(pattern, {\r\n cwd: baseDir,\r\n absolute: true,\r\n nodir: false,\r\n nocase: process.platform === 'win32',\r\n })\r\n const dirs = matches.filter(match => {\r\n try {\r\n return existsSync(match) && statSync(match).isDirectory()\r\n } catch {\r\n return false\r\n }\r\n })\r\n if (dirs.length > 0) {\r\n out.push(...dirs)\r\n matched = true\r\n break\r\n }\r\n } catch {\r\n }\r\n }\r\n if (matched) continue\r\n }\r\n\r\n out.push(abs)\r\n }\r\n\r\n const seen = new Set<string>()\r\n const unique: string[] = []\r\n for (const item of out) {\r\n const key = item\r\n if (seen.has(key)) continue\r\n seen.add(key)\r\n unique.push(item)\r\n }\r\n return unique\r\n}\r\n\r\nfunction listIfDir(path: string): string[] {\r\n try {\r\n if (!existsSync(path)) return []\r\n if (!statSync(path).isDirectory()) return []\r\n return [path]\r\n } catch {\r\n return []\r\n }\r\n}\r\n\r\nfunction fileIfExists(path: string): string[] {\r\n try {\r\n if (!existsSync(path)) return []\r\n if (!statSync(path).isFile()) return []\r\n return [path]\r\n } catch {\r\n return []\r\n }\r\n}\r\n\r\nfunction resolveManifestPaths(\r\n rootDir: string,\r\n value: unknown,\r\n): { dirs: string[]; files: string[] } {\r\n const dirs: string[] = []\r\n const files: string[] = []\r\n const list = Array.isArray(value) ? value : value ? [value] : []\r\n for (const item of list) {\r\n if (typeof item !== 'string') continue\r\n const abs = resolve(rootDir, item)\r\n dirs.push(...listIfDir(abs))\r\n files.push(...fileIfExists(abs))\r\n }\r\n return { dirs, files }\r\n}\r\n\r\nfunction loadPluginFromDir(rootDir: string): SessionPlugin {\r\n const primaryManifestPath = join(rootDir, '.newcraw-plugin', 'plugin.json')\r\n const legacyManifestPath = join(rootDir, '.claude-plugin', 'plugin.json')\r\n const manifestPath = existsSync(primaryManifestPath)\r\n ? primaryManifestPath\r\n : legacyManifestPath\r\n if (!existsSync(manifestPath)) {\r\n throw new Error(\r\n `Plugin manifest not found (expected .newcraw-plugin/plugin.json or .claude-plugin/plugin.json)`,\r\n )\r\n }\r\n\r\n let manifestRaw: string\r\n try {\r\n manifestRaw = readFileSync(manifestPath, 'utf8')\r\n } catch (err) {\r\n throw new Error(`Failed to read ${manifestPath}: ${String(err)}`)\r\n }\r\n\r\n let manifestJson: unknown\r\n try {\r\n manifestJson = JSON.parse(manifestRaw)\r\n } catch (err) {\r\n throw new Error(`Invalid JSON in ${manifestPath}: ${String(err)}`)\r\n }\r\n\r\n const parsed = PluginManifestSchema.safeParse(manifestJson)\r\n if (!parsed.success) {\r\n throw new Error(\r\n `Invalid plugin manifest schema in ${manifestPath}: ${parsed.error.message}`,\r\n )\r\n }\r\n\r\n const name = parsed.data.name\r\n const manifestCommands = resolveManifestPaths(\r\n rootDir,\r\n (parsed.data as any).commands,\r\n )\r\n const manifestAgents = resolveManifestPaths(\r\n rootDir,\r\n (parsed.data as any).agents,\r\n )\r\n const commandsDirs = [\r\n ...listIfDir(join(rootDir, 'commands')),\r\n ...manifestCommands.dirs,\r\n ...manifestCommands.files,\r\n ]\r\n const skillsDirs = [\r\n ...listIfDir(join(rootDir, 'skills')),\r\n ...resolveManifestPaths(rootDir, (parsed.data as any).skills).dirs,\r\n ]\r\n const agentsDirs = [\r\n ...listIfDir(join(rootDir, 'agents')),\r\n ...manifestAgents.dirs,\r\n ...manifestAgents.files,\r\n ]\r\n const manifestOutputStyles = resolveManifestPaths(\r\n rootDir,\r\n (parsed.data as any).outputStyles,\r\n )\r\n const outputStylesDirs = [\r\n ...listIfDir(join(rootDir, 'output-styles')),\r\n ...manifestOutputStyles.dirs,\r\n ...manifestOutputStyles.files,\r\n ]\r\n\r\n const standardHook = fileIfExists(join(rootDir, 'hooks', 'hooks.json'))\r\n const hookFromManifest = resolveManifestPaths(\r\n rootDir,\r\n (parsed.data as any).hooks,\r\n ).files\r\n const hooksFiles = [...standardHook, ...hookFromManifest]\r\n\r\n const mcpConfigFiles = [\r\n ...fileIfExists(join(rootDir, '.mcp.json')),\r\n ...fileIfExists(join(rootDir, '.mcp.jsonc')),\r\n ...resolveManifestPaths(rootDir, (parsed.data as any).mcpServers).files,\r\n ]\r\n\r\n return {\r\n name,\r\n rootDir,\r\n manifestPath,\r\n manifest: parsed.data,\r\n commandsDirs,\r\n skillsDirs,\r\n agentsDirs,\r\n hooksFiles,\r\n outputStylesDirs,\r\n mcpConfigFiles,\r\n }\r\n}\r\n\r\nexport async function configureSessionPlugins(args: {\r\n pluginDirs: string[]\r\n baseDir?: string\r\n}): Promise<{ plugins: SessionPlugin[]; errors: string[] }> {\r\n const baseDir = args.baseDir ?? getCwd()\r\n const dirs = await expandPluginDirInputs(args.pluginDirs ?? [], baseDir)\r\n\r\n const plugins: SessionPlugin[] = []\r\n const errors: string[] = []\r\n\r\n for (const dir of dirs) {\r\n try {\r\n plugins.push(loadPluginFromDir(dir))\r\n } catch (err) {\r\n errors.push(err instanceof Error ? err.message : String(err))\r\n }\r\n }\r\n\r\n setSessionPlugins(plugins)\r\n\r\n const { reloadCustomCommands } = await import('@services/customCommands')\r\n reloadCustomCommands()\r\n const { getCommands } = await import('@commands')\r\n getCommands.cache.clear?.()\r\n\r\n const { getClients, getMCPTools } = await import('@services/mcpClient')\r\n ;(getClients as any).cache?.clear?.()\r\n ;(getMCPTools as any).cache?.clear?.()\r\n\r\n const { clearOutputStyleCache } = await import('@services/outputStyles')\r\n clearOutputStyleCache()\r\n\r\n return { plugins, errors }\r\n}\r\n"],
|
|
5
|
-
"mappings": "
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;AAKA;AALA,SAAS,YAAY,cAAc,gBAAgB;AACnD,SAAS,eAAe;AACxB,SAAS,MAAM,eAAe;AAC9B,SAAS,SAAS;AAClB,SAAS,QAAQ,eAAe;AAIhC,IAAM,uBAAuB,EAC1B,OAAO;AAAA,EACN,MAAM,EAAE,OAAO,EAAE,IA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AErC,QAAM,EAAE,sBAAsB,IAAI,MAAM,OAAO,4BAAwB;AACvE,wBAAsB;AAEtB,SAAO,EAAE,SAAS,OAAO;AAC3B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -3,14 +3,15 @@ const require = __newcrawCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
formatValidationResult,
|
|
5
5
|
validatePluginOrMarketplacePath
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-UPRKGNBR.js";
|
|
7
|
+
import "./chunk-IZZTKEZH.js";
|
|
8
|
+
import "./chunk-2JCTO2EY.js";
|
|
9
9
|
import "./chunk-2UO3BFZH.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-QT5GS374.js";
|
|
11
|
+
import "./chunk-XYQZLDRB.js";
|
|
12
|
+
import "./chunk-UYWZQVH5.js";
|
|
13
|
+
import "./chunk-EHQ2M5B4.js";
|
|
14
|
+
import "./chunk-D4OZACS2.js";
|
|
14
15
|
export {
|
|
15
16
|
formatValidationResult,
|
|
16
17
|
validatePluginOrMarketplacePath
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createRequire as __newcrawCreateRequire } from "node:module";
|
|
2
|
+
const require = __newcrawCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
getAgentPrompt,
|
|
5
|
+
getCLISyspromptPrefix,
|
|
6
|
+
getCurrentDateString,
|
|
7
|
+
getEnvInfo,
|
|
8
|
+
getSystemPrompt
|
|
9
|
+
} from "./chunk-3CKC4ABU.js";
|
|
10
|
+
import "./chunk-Q2OBTLBI.js";
|
|
11
|
+
import "./chunk-UPRKGNBR.js";
|
|
12
|
+
import "./chunk-NFXLN6FJ.js";
|
|
13
|
+
import "./chunk-IVWPPTDM.js";
|
|
14
|
+
import "./chunk-KJTPUTU7.js";
|
|
15
|
+
import "./chunk-JX5ZQYTQ.js";
|
|
16
|
+
import "./chunk-XJQATPV7.js";
|
|
17
|
+
import "./chunk-MUW3J7CP.js";
|
|
18
|
+
import "./chunk-MMF5RMLU.js";
|
|
19
|
+
import "./chunk-BJYXLCRS.js";
|
|
20
|
+
import "./chunk-QJ7MQIHN.js";
|
|
21
|
+
import "./chunk-IZZTKEZH.js";
|
|
22
|
+
import "./chunk-UUCRNFMH.js";
|
|
23
|
+
import "./chunk-X3NER6FY.js";
|
|
24
|
+
import "./chunk-U7S4MEYP.js";
|
|
25
|
+
import "./chunk-FIMCETCB.js";
|
|
26
|
+
import "./chunk-TY3CCSAT.js";
|
|
27
|
+
import "./chunk-ZM5FMRLS.js";
|
|
28
|
+
import "./chunk-IXFBUXQW.js";
|
|
29
|
+
import "./chunk-WAXMRSVR.js";
|
|
30
|
+
import "./chunk-MJLWBVZP.js";
|
|
31
|
+
import "./chunk-KS646CDL.js";
|
|
32
|
+
import "./chunk-7ZFLZNOW.js";
|
|
33
|
+
import "./chunk-W7Q3VYAB.js";
|
|
34
|
+
import "./chunk-INJSFEKL.js";
|
|
35
|
+
import "./chunk-JI4HCLK7.js";
|
|
36
|
+
import "./chunk-JLVECHVJ.js";
|
|
37
|
+
import "./chunk-2JCTO2EY.js";
|
|
38
|
+
import "./chunk-2UO3BFZH.js";
|
|
39
|
+
import "./chunk-CHB5K4GI.js";
|
|
40
|
+
import "./chunk-QX5Y5CE5.js";
|
|
41
|
+
import "./chunk-MJ3MLGVB.js";
|
|
42
|
+
import "./chunk-GVLJUD6R.js";
|
|
43
|
+
import "./chunk-U6IF5D3J.js";
|
|
44
|
+
import "./chunk-NT7RDVDA.js";
|
|
45
|
+
import "./chunk-QT5GS374.js";
|
|
46
|
+
import "./chunk-XYQZLDRB.js";
|
|
47
|
+
import "./chunk-UYWZQVH5.js";
|
|
48
|
+
import "./chunk-EHQ2M5B4.js";
|
|
49
|
+
import "./chunk-ZMO4E7IW.js";
|
|
50
|
+
import "./chunk-HLBLZKZH.js";
|
|
51
|
+
import "./chunk-D4OZACS2.js";
|
|
52
|
+
export {
|
|
53
|
+
getAgentPrompt,
|
|
54
|
+
getCLISyspromptPrefix,
|
|
55
|
+
getCurrentDateString,
|
|
56
|
+
getEnvInfo,
|
|
57
|
+
getSystemPrompt
|
|
58
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { createRequire as __newcrawCreateRequire } from "node:module";
|
|
2
|
+
const require = __newcrawCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__ToolUseQueueForTests,
|
|
5
|
+
__isToolUseLikeBlockForTests,
|
|
6
|
+
normalizeToolInput,
|
|
7
|
+
query,
|
|
8
|
+
runToolUse
|
|
9
|
+
} from "./chunk-3CKC4ABU.js";
|
|
10
|
+
import "./chunk-Q2OBTLBI.js";
|
|
11
|
+
import "./chunk-UPRKGNBR.js";
|
|
12
|
+
import "./chunk-NFXLN6FJ.js";
|
|
13
|
+
import "./chunk-IVWPPTDM.js";
|
|
14
|
+
import "./chunk-KJTPUTU7.js";
|
|
15
|
+
import "./chunk-JX5ZQYTQ.js";
|
|
16
|
+
import "./chunk-XJQATPV7.js";
|
|
17
|
+
import "./chunk-MUW3J7CP.js";
|
|
18
|
+
import "./chunk-MMF5RMLU.js";
|
|
19
|
+
import "./chunk-BJYXLCRS.js";
|
|
20
|
+
import "./chunk-QJ7MQIHN.js";
|
|
21
|
+
import "./chunk-IZZTKEZH.js";
|
|
22
|
+
import "./chunk-UUCRNFMH.js";
|
|
23
|
+
import "./chunk-X3NER6FY.js";
|
|
24
|
+
import "./chunk-U7S4MEYP.js";
|
|
25
|
+
import "./chunk-FIMCETCB.js";
|
|
26
|
+
import "./chunk-TY3CCSAT.js";
|
|
27
|
+
import "./chunk-ZM5FMRLS.js";
|
|
28
|
+
import "./chunk-IXFBUXQW.js";
|
|
29
|
+
import "./chunk-WAXMRSVR.js";
|
|
30
|
+
import "./chunk-MJLWBVZP.js";
|
|
31
|
+
import "./chunk-KS646CDL.js";
|
|
32
|
+
import "./chunk-7ZFLZNOW.js";
|
|
33
|
+
import "./chunk-W7Q3VYAB.js";
|
|
34
|
+
import "./chunk-INJSFEKL.js";
|
|
35
|
+
import "./chunk-JI4HCLK7.js";
|
|
36
|
+
import "./chunk-JLVECHVJ.js";
|
|
37
|
+
import "./chunk-2JCTO2EY.js";
|
|
38
|
+
import "./chunk-2UO3BFZH.js";
|
|
39
|
+
import "./chunk-CHB5K4GI.js";
|
|
40
|
+
import "./chunk-QX5Y5CE5.js";
|
|
41
|
+
import "./chunk-MJ3MLGVB.js";
|
|
42
|
+
import "./chunk-GVLJUD6R.js";
|
|
43
|
+
import "./chunk-U6IF5D3J.js";
|
|
44
|
+
import "./chunk-NT7RDVDA.js";
|
|
45
|
+
import "./chunk-QT5GS374.js";
|
|
46
|
+
import "./chunk-XYQZLDRB.js";
|
|
47
|
+
import "./chunk-UYWZQVH5.js";
|
|
48
|
+
import "./chunk-EHQ2M5B4.js";
|
|
49
|
+
import "./chunk-ZMO4E7IW.js";
|
|
50
|
+
import "./chunk-HLBLZKZH.js";
|
|
51
|
+
import "./chunk-D4OZACS2.js";
|
|
52
|
+
export {
|
|
53
|
+
__ToolUseQueueForTests,
|
|
54
|
+
__isToolUseLikeBlockForTests,
|
|
55
|
+
normalizeToolInput,
|
|
56
|
+
query,
|
|
57
|
+
runToolUse
|
|
58
|
+
};
|
|
@@ -5,10 +5,11 @@ import {
|
|
|
5
5
|
listAllContentFiles,
|
|
6
6
|
resetRipgrepPathCacheForTests,
|
|
7
7
|
ripGrep
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-WAXMRSVR.js";
|
|
9
|
+
import "./chunk-XYQZLDRB.js";
|
|
10
|
+
import "./chunk-UYWZQVH5.js";
|
|
11
|
+
import "./chunk-EHQ2M5B4.js";
|
|
12
|
+
import "./chunk-D4OZACS2.js";
|
|
12
13
|
export {
|
|
13
14
|
getRipgrepPath,
|
|
14
15
|
listAllContentFiles,
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { createRequire as __newcrawCreateRequire } from "node:module";
|
|
2
|
+
const require = __newcrawCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
ContainerLifecycleManager,
|
|
5
|
+
ContainerPool,
|
|
6
|
+
DEFAULT_SANDBOX_CONFIG,
|
|
7
|
+
canExecuteInSandbox,
|
|
8
|
+
createContainer,
|
|
9
|
+
detectContainerEngine,
|
|
10
|
+
execInContainer,
|
|
11
|
+
executeSkillInSandbox,
|
|
12
|
+
getAllRuntimeImages,
|
|
13
|
+
getContainerLifecycleManager,
|
|
14
|
+
getContainerStatus,
|
|
15
|
+
getEngineBinary,
|
|
16
|
+
getEngineType,
|
|
17
|
+
getImageFullName,
|
|
18
|
+
getRuntimeImage,
|
|
19
|
+
getSandboxCapabilities,
|
|
20
|
+
getSandboxPool,
|
|
21
|
+
imageExists,
|
|
22
|
+
initSandboxPool,
|
|
23
|
+
init_sandbox,
|
|
24
|
+
pullImage,
|
|
25
|
+
removeContainer,
|
|
26
|
+
resolveImage,
|
|
27
|
+
shutdownSandboxPool,
|
|
28
|
+
stopContainer,
|
|
29
|
+
tryInitSandboxPool
|
|
30
|
+
} from "./chunk-MJLWBVZP.js";
|
|
31
|
+
import "./chunk-QT5GS374.js";
|
|
32
|
+
import "./chunk-XYQZLDRB.js";
|
|
33
|
+
import "./chunk-UYWZQVH5.js";
|
|
34
|
+
import "./chunk-EHQ2M5B4.js";
|
|
35
|
+
import "./chunk-D4OZACS2.js";
|
|
36
|
+
init_sandbox();
|
|
37
|
+
export {
|
|
38
|
+
ContainerLifecycleManager,
|
|
39
|
+
ContainerPool,
|
|
40
|
+
DEFAULT_SANDBOX_CONFIG,
|
|
41
|
+
canExecuteInSandbox,
|
|
42
|
+
createContainer,
|
|
43
|
+
detectContainerEngine,
|
|
44
|
+
execInContainer,
|
|
45
|
+
executeSkillInSandbox,
|
|
46
|
+
getAllRuntimeImages,
|
|
47
|
+
getContainerLifecycleManager,
|
|
48
|
+
getContainerStatus,
|
|
49
|
+
getEngineBinary,
|
|
50
|
+
getEngineType,
|
|
51
|
+
getImageFullName,
|
|
52
|
+
getRuntimeImage,
|
|
53
|
+
getSandboxCapabilities,
|
|
54
|
+
getSandboxPool,
|
|
55
|
+
imageExists,
|
|
56
|
+
initSandboxPool,
|
|
57
|
+
pullImage,
|
|
58
|
+
removeContainer,
|
|
59
|
+
resolveImage,
|
|
60
|
+
shutdownSandboxPool,
|
|
61
|
+
stopContainer,
|
|
62
|
+
tryInitSandboxPool
|
|
63
|
+
};
|
|
@@ -15,10 +15,11 @@ import {
|
|
|
15
15
|
refreshMarketplaceAsync,
|
|
16
16
|
removeMarketplace,
|
|
17
17
|
uninstallSkillPlugin
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-IZZTKEZH.js";
|
|
19
|
+
import "./chunk-XYQZLDRB.js";
|
|
20
|
+
import "./chunk-UYWZQVH5.js";
|
|
21
|
+
import "./chunk-EHQ2M5B4.js";
|
|
22
|
+
import "./chunk-D4OZACS2.js";
|
|
22
23
|
export {
|
|
23
24
|
MarketplaceManifestSchema,
|
|
24
25
|
addMarketplace,
|
|
@@ -3,11 +3,14 @@ const require = __newcrawCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
getCwd,
|
|
5
5
|
getOriginalCwd,
|
|
6
|
+
init_state,
|
|
6
7
|
setCwd,
|
|
7
8
|
setOriginalCwd
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-XYQZLDRB.js";
|
|
10
|
+
import "./chunk-UYWZQVH5.js";
|
|
11
|
+
import "./chunk-EHQ2M5B4.js";
|
|
12
|
+
import "./chunk-D4OZACS2.js";
|
|
13
|
+
init_state();
|
|
11
14
|
export {
|
|
12
15
|
getCwd,
|
|
13
16
|
getOriginalCwd,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { createRequire as __newcrawCreateRequire } from "node:module";
|
|
2
|
+
const require = __newcrawCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
structuredOutputConfig
|
|
5
|
+
} from "./chunk-BQCOSNM3.js";
|
|
6
|
+
import "./chunk-D4OZACS2.js";
|
|
7
|
+
export {
|
|
8
|
+
structuredOutputConfig
|
|
9
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createRequire as __newcrawCreateRequire } from "node:module";
|
|
2
|
+
const require = __newcrawCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
getTheme
|
|
5
|
+
} from "./chunk-GVLJUD6R.js";
|
|
6
|
+
import "./chunk-U6IF5D3J.js";
|
|
7
|
+
import "./chunk-NT7RDVDA.js";
|
|
8
|
+
import "./chunk-QT5GS374.js";
|
|
9
|
+
import "./chunk-XYQZLDRB.js";
|
|
10
|
+
import "./chunk-UYWZQVH5.js";
|
|
11
|
+
import "./chunk-EHQ2M5B4.js";
|
|
12
|
+
import "./chunk-D4OZACS2.js";
|
|
13
|
+
export {
|
|
14
|
+
getTheme
|
|
15
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createRequire as __newcrawCreateRequire } from "node:module";
|
|
2
|
+
const require = __newcrawCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
getMaxThinkingTokens,
|
|
5
|
+
getReasoningEffort
|
|
6
|
+
} from "./chunk-MMF5RMLU.js";
|
|
7
|
+
import "./chunk-QX5Y5CE5.js";
|
|
8
|
+
import "./chunk-U6IF5D3J.js";
|
|
9
|
+
import "./chunk-NT7RDVDA.js";
|
|
10
|
+
import "./chunk-QT5GS374.js";
|
|
11
|
+
import "./chunk-XYQZLDRB.js";
|
|
12
|
+
import "./chunk-UYWZQVH5.js";
|
|
13
|
+
import "./chunk-EHQ2M5B4.js";
|
|
14
|
+
import "./chunk-D4OZACS2.js";
|
|
15
|
+
export {
|
|
16
|
+
getMaxThinkingTokens,
|
|
17
|
+
getReasoningEffort
|
|
18
|
+
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createDefaultToolPermissionContext,
|
|
8
8
|
isPersistableToolPermissionDestination
|
|
9
9
|
} from "./chunk-U7S4MEYP.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-D4OZACS2.js";
|
|
11
11
|
export {
|
|
12
12
|
applyToolPermissionContextUpdate,
|
|
13
13
|
applyToolPermissionContextUpdates,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createRequire as __newcrawCreateRequire } from "node:module";
|
|
2
|
+
const require = __newcrawCreateRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__resetToolPermissionContextStateForTests,
|
|
5
|
+
applyToolPermissionContextUpdateForConversationKey,
|
|
6
|
+
getToolPermissionContextForConversationKey,
|
|
7
|
+
setToolPermissionContextForConversationKey
|
|
8
|
+
} from "./chunk-UUCRNFMH.js";
|
|
9
|
+
import "./chunk-X3NER6FY.js";
|
|
10
|
+
import "./chunk-U7S4MEYP.js";
|
|
11
|
+
import "./chunk-JI4HCLK7.js";
|
|
12
|
+
import "./chunk-U6IF5D3J.js";
|
|
13
|
+
import "./chunk-NT7RDVDA.js";
|
|
14
|
+
import "./chunk-QT5GS374.js";
|
|
15
|
+
import "./chunk-XYQZLDRB.js";
|
|
16
|
+
import "./chunk-UYWZQVH5.js";
|
|
17
|
+
import "./chunk-EHQ2M5B4.js";
|
|
18
|
+
import "./chunk-D4OZACS2.js";
|
|
19
|
+
export {
|
|
20
|
+
__resetToolPermissionContextStateForTests,
|
|
21
|
+
applyToolPermissionContextUpdateForConversationKey,
|
|
22
|
+
getToolPermissionContextForConversationKey,
|
|
23
|
+
setToolPermissionContextForConversationKey
|
|
24
|
+
};
|
|
@@ -3,15 +3,16 @@ const require = __newcrawCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadToolPermissionContextFromDisk,
|
|
5
5
|
persistToolPermissionUpdateToDisk
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-2EFL22PV.js";
|
|
6
|
+
} from "./chunk-X3NER6FY.js";
|
|
8
7
|
import "./chunk-U7S4MEYP.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-JI4HCLK7.js";
|
|
9
|
+
import "./chunk-U6IF5D3J.js";
|
|
10
|
+
import "./chunk-NT7RDVDA.js";
|
|
11
|
+
import "./chunk-QT5GS374.js";
|
|
12
|
+
import "./chunk-XYQZLDRB.js";
|
|
13
|
+
import "./chunk-UYWZQVH5.js";
|
|
14
|
+
import "./chunk-EHQ2M5B4.js";
|
|
15
|
+
import "./chunk-D4OZACS2.js";
|
|
15
16
|
export {
|
|
16
17
|
loadToolPermissionContextFromDisk,
|
|
17
18
|
persistToolPermissionUpdateToDisk
|