INNER CODE UNIT · JavaScript

getTable

fengshao1227/ccg-workflow · dsh-ccg/src/index.js:377

  const getTable = deps.getTable ?? (() => undefined)
  return ctx.plugin({
    name: 'ccg-matrix',
    inject: ['tools'],
    apply(inner) {
      const resolved = resolveRoles(config)

      // Decided before anything mounts, because the child tool filter has to
      // name exactly the tools this generation registers — an unknown name in
      // a filter fails the child's startup, not just that entry.
      const teamTool = config.teamTool ?? TEAM_TOOL
      const team = config.team !== false && resolved.length > 0
      const remembersOwnership = config.memory !== false
      const panel = config.crosscheck === false ? [] : resolvePanel(config)
      const crosscheck = panel.length >= 2

      const ownTools = [
        ...resolved.map((entry) => entry.toolName),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…