查看命中位置(46)
执行命令 · 第123 行plugins/clawd-hq/hooks/register.tsxspawn: a => $.agent.spawn({ subagentType: SCOUT_TYPE, description: a.description, prompt: a.prompt }), list: () => $.agent.list(), version: async () => { const v = await $.session.version(); return v.
工具拦截 · 第123 行plugins/clawd-hq/hooks/register.tsxspawn: a => $.agent.spawn({ subagentType: SCOUT_TYPE, description: a.description, prompt: a.prompt }), list: () => $.agent.list(), version: async () => { const v = await $.session.version(); return v.
环境变量 · 第174 行plugins/clawd-hq/hooks/register.tsxconst homeOf = async ($: EngineInterface) => ((await $.env.get("HOME").catch(() => undefined)) || (await $.env.get("USERPROFILE").catch(() => undefined)) || '').replace(/[\\/]+$/, '')
读文件 · 第177 行plugins/clawd-hq/hooks/register.tsxroot: $.plugin.root, home, warn, read: path => $.fs.read(path), exists: path => $.fs.exists(path),
写文件 · 第213 行plugins/clawd-hq/hooks/register.tsxwrite: (path, text) => $.fs.write(path, text), setSeed: (part, text) => $.store.set(SEED_KEYS[part], text),
读文件 · 第243 行plugins/clawd-hq/hooks/register.tsxhires: async () => hireTypes((await $.store.get(teamKey(cwd))) as SavedTeam | undefined), list: path => $.fs.list(path), fx: () => getFx($), setFx: fn => setFx($, fn),
工具拦截 · 第253 行plugins/clawd-hq/hooks/register.tsxcheck: i => $.tool.check(i as never), list: i => $.tool.call({ tool: 'Artifact', ...i }) as never,
读文件 · 第259 行plugins/clawd-hq/hooks/register.tsxread: path => $.fs.read(path), complete: ask => $.model.complete(ask), fillPrompt: text => knowIo($).fillPrompt(text), byOf: id => byOf($, id), get: key => $.store.get(key), set: (key, value) => $.sto
模型调用 · 第259 行plugins/clawd-hq/hooks/register.tsxread: path => $.fs.read(path), complete: ask => $.model.complete(ask), fillPrompt: text => knowIo($).fillPrompt(text), byOf: id => byOf($, id), get: key => $.store.get(key), set: (key, value) => $.sto
读文件 · 第268 行plugins/clawd-hq/hooks/register.tsxexists: path => $.fs.exists(path), read: path => $.fs.read(path), write: (path, text) => $.fs.write(path, text),
写文件 · 第268 行plugins/clawd-hq/hooks/register.tsxexists: path => $.fs.exists(path), read: path => $.fs.read(path), write: (path, text) => $.fs.write(path, text),
模型调用 · 第302 行plugins/clawd-hq/hooks/register.tsxask: prompt => $.model.fork({ prompt }),
模型调用 · 第313 行plugins/clawd-hq/hooks/register.tsxcomplete: ask => $.model.complete(ask),
环境变量 · 第324 行plugins/clawd-hq/hooks/register.tsxconst [now, home, config, known, p] = [await $.clock.now(), await homeOf($), await $.env.get('CLAUDE_CONFIG_DIR').catch(() => undefined), await read($, blurbs), await getPayroll($)]
读文件 · 第328 行plugins/clawd-hq/hooks/register.tsxnow: () => now, cwd, home: () => home, isFolder: path => $.fs.stat(path).then(s => s.kind === 'dir', () => false), configDir: () => config || undefined, blurbs: () => known, allAgentTypes: () => types
读文件 · 第331 行plugins/clawd-hq/hooks/register.tsxlist: dir => listEntries(dir, d => $.fs.list(d), path => $.fs.stat(path)), read: path => $.fs.read(path).catch(() => undefined), exists: path => $.fs.exists(path),
模型调用 · 第334 行plugins/clawd-hq/hooks/register.tsxcomplete: async req => answerText(await $.model.complete(req)),
读文件 · 第347 行plugins/clawd-hq/hooks/register.tsxfolder: () => cwd, root: () => $.session.root(), real: path => $.fs.stat(path, { resolve: true }).then(s => s.realPath),
模型调用 · 第451 行plugins/clawd-hq/hooks/register.tsxask: prompt => $.model.fork({ prompt }), // the note's one short question, on the cached chat
提交提示词 · 第459 行plugins/clawd-hq/hooks/register.tsxconst councilIo = ($: EngineInterface): CouncilIo => ({ fill: text => $.prompt.fill({ text, mode: 'append' }), submit: text => $.prompt.submit({ text, asUser: true }), later: fn => $.clock.after(0, fn
注册工具 · 第516 行plugins/clawd-hq/hooks/register.tsx['demo tool', () => $.tool.register(DEMO_SPEC)],
注册工具 · 第522 行plugins/clawd-hq/hooks/register.tsx['offer rule tool', () => $.tool.register(OFFER_RULE_SPEC)],
注册工具 · 第524 行plugins/clawd-hq/hooks/register.tsx['step tool', () => $.tool.register(STEP_SPEC)],
注册工具 · 第525 行plugins/clawd-hq/hooks/register.tsx['find helpers tool', () => $.tool.register(FIND_HELPERS_SPEC)],
注册工具 · 第526 行plugins/clawd-hq/hooks/register.tsx['contractor tool', () => $.tool.register(HIRE_CONTRACTOR_SPEC)],
执行命令 · 第640 行plugins/clawd-hq/hooks/register.tsxif (spawnTypeOf(e) === SCOUT_TYPE) return handScoutSpawn(scoutHandoff, next.origin.plugin === 'clawd-hq', () => next(e)) as never // the setup scout: no brief notes, no desk
工具拦截 · 第684 行plugins/clawd-hq/hooks/register.tsxon('tool.call', { tool: 'Artifact' }, async ($, e, next) => {
工具拦截 · 第692 行plugins/clawd-hq/hooks/register.tsxfor (const tool of FILE_TOOLS) on('tool.call', { tool: tool as 'Edit' }, ($, e, next) => leftWatch(leftIo($), e as never, () => next(e))) // MultiEdit is no declared tool name, but the engine runs one
工具拦截 · 第694 行plugins/clawd-hq/hooks/register.tsxon('tool.call', async ($, e, next) => {
执行命令 · 第67 行plugins/clawd-hq/hooks/left-check.tsconst json = /\{[\s\S]*\}/.exec(reply)?.[0]
执行命令 · 第144 行plugins/clawd-hq/hooks/know.tsconst bold = /^\*\*(.+?)\*\*/.exec(kept)
执行命令 · 第132 行plugins/clawd-hq/hooks/left-scan.tsconst marker = comment === undefined ? undefined : MARKER.exec(comment)
执行命令 · 第55 行plugins/clawd-hq/hooks/panel-model.tsconst after = new RegExp(`${family}-(\\d{1,2})(?:-(\\d{1,2}))?(?!\\d)`, 'i').exec(id)
执行命令 · 第56 行plugins/clawd-hq/hooks/panel-model.tsconst before = new RegExp(`(\\d{1,2})(?:-(\\d{1,2}))?-${family}`, 'i').exec(id)
执行命令 · 第64 行plugins/clawd-hq/hooks/panel-model.tsconst family = FAMILY.exec(id)?.[1]
执行命令 · 第133 行plugins/clawd-hq/hooks/panel-model.tsconst end = CLAUSE_END.exec(rest)
执行命令 · 第156 行plugins/clawd-hq/hooks/panel-model.tsconst asked = WHEN_ASKED.exec(plain)
执行命令 · 第38 行plugins/clawd-hq/hooks/activity.tsconst host = /^https?:\/\/([^/?#:\s]+)/i.exec(text(input, 'url') ?? '')?.[1]
执行命令 · 第57 行plugins/clawd-hq/hooks/artifacts.tsreturn named ?? tidy(typeof text === 'string' ? /^\s*title:[ \t]*(.+)$/im.exec(text)?.[1] : undefined)
执行命令 · 第135 行plugins/clawd-hq/hooks/quiet.tsconst shortName = (tool: string) => MCP_NAME.exec(tool)?.[1] ?? tool
执行命令 · 第59 行plugins/clawd-hq/hooks/scout-run.tsconst started = await host.spawn({ subagentType: SCOUT_TYPE, description: 'Look around the project', prompt })
执行命令 · 第96 行plugins/clawd-hq/hooks/team.tsconst result = await io.spawnScout(brief).catch(() => ({ why: 'The scout could not start.' })) // the error's own words are not kept
执行命令 · 第38 行plugins/clawd-hq/hooks/usage-count.tsconst name = typeof content === 'string' && COMMAND_TEXT.test(content) ? COMMAND_NAME.exec(content)?.[1] : undefined
执行命令 · 第78 行plugins/clawd-hq/hooks/workflow-card.tsconst step = NUMBERED.exec(l)?.[1]
执行命令 · 第90 行plugins/clawd-hq/hooks/workflow-card.tsconst item = NUMBERED.exec(l)?.[1] ?? BULLET.exec(l)?.[1]
执行命令 · 第53 行plugins/clawd-hq/hooks/recap.tsconst at = NEXT_SENTENCE.exec(text)