Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 2.62 KB

File metadata and controls

28 lines (22 loc) · 2.62 KB

目录说明:src/utils/task

目录定位

该目录是 src/utils 下的子模块,围绕 task 这一主题组织实现文件。

目录快照

  • 相对路径:src/utils/task
  • 直接文件数:5
  • 直接子目录数:0
  • 递归文件数:5
  • 主要文件类型:.ts x 5

依赖关系观察

  • 该目录最常引用的仓库内目录:src/utils (11)、src/utils/shell (1)、src/bootstrap (1)、src/utils/permissions (1)、src/constants (1)、src/state (1)、src (1)
  • 最常引用该目录的仓库内目录:src/utils (8)、src/tasks/LocalShellTask (4)、src/utils/swarm (4)、src/tasks/LocalAgentTask (3)、src/tools/TaskOutputTool (3)、src/tools/AgentTool (3)、src/tasks (2)

直接文件说明

文件 行数 导出/关键符号 说明
TaskOutput.ts 390 TaskOutput 基础辅助逻辑;导出符号以 TaskOutput 为主,顶部注释说明:Single source of truth for a shell command's output. For bash commands (file mode): both stdout and stderr go directl...
diskOutput.ts 451 MAX_TASK_OUTPUT_BYTES, MAX_TASK_OUTPUT_BYTES_DISPLAY, getTaskOutputDir, _resetTaskOutputDirForTest, getTaskOutputPath, DiskTaskOutput 基础辅助逻辑;导出符号以 MAX_TASK_OUTPUT_BYTES, MAX_TASK_OUTPUT_BYTES_DISPLAY, getTaskOutputDir, _resetTaskOutputDirForTest 为主,顶部注释说明:Disk cap for task output files. In file mode (bash), a watchdog polls file size and kills the process. In pipe mode (...
framework.ts 308 POLL_INTERVAL_MS, STOPPED_DISPLAY_MS, PANEL_GRACE_MS, TaskAttachment, updateTaskState, registerTask 基础辅助逻辑;导出符号以 POLL_INTERVAL_MS, STOPPED_DISPLAY_MS, PANEL_GRACE_MS, TaskAttachment 为主,顶部注释说明:Update a task's state in AppState. Helper function for task implementations. Generic to allow type-safe updates for s...
outputFormatting.ts 38 TASK_MAX_OUTPUT_UPPER_LIMIT, TASK_MAX_OUTPUT_DEFAULT, getMaxTaskOutputLength, formatTaskOutput 基础辅助逻辑;导出符号以 TASK_MAX_OUTPUT_UPPER_LIMIT, TASK_MAX_OUTPUT_DEFAULT, getMaxTaskOutputLength, formatTaskOutput 为主,顶部注释说明:Format task output for API consumption, truncating if too large. When truncated, includes a header with the file path...
sdkProgress.ts 36 emitTaskProgress 基础辅助逻辑;导出符号以 emitTaskProgress 为主,顶部注释说明:Emit a task_progress SDK event. Shared by background agents (per tool_use in runAsyncAgentLifecycle) and workflows ...

直接子目录说明

该目录没有直接子目录。