@oni.bot/core 1.0.0 → 1.0.1
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/package.json +1 -1
- package/dist/oni-code/agent-registry.d.ts +0 -73
- package/dist/oni-code/agent-registry.d.ts.map +0 -1
- package/dist/oni-code/agent-registry.js +0 -151
- package/dist/oni-code/agent-registry.js.map +0 -1
- package/dist/oni-code/bin.d.ts +0 -18
- package/dist/oni-code/bin.d.ts.map +0 -1
- package/dist/oni-code/bin.js +0 -78
- package/dist/oni-code/bin.js.map +0 -1
- package/dist/oni-code/change-tracking.d.ts +0 -28
- package/dist/oni-code/change-tracking.d.ts.map +0 -1
- package/dist/oni-code/change-tracking.js +0 -77
- package/dist/oni-code/change-tracking.js.map +0 -1
- package/dist/oni-code/cli.d.ts +0 -6
- package/dist/oni-code/cli.d.ts.map +0 -1
- package/dist/oni-code/cli.js +0 -30
- package/dist/oni-code/cli.js.map +0 -1
- package/dist/oni-code/conductor.d.ts +0 -203
- package/dist/oni-code/conductor.d.ts.map +0 -1
- package/dist/oni-code/conductor.js +0 -1547
- package/dist/oni-code/conductor.js.map +0 -1
- package/dist/oni-code/config.d.ts +0 -130
- package/dist/oni-code/config.d.ts.map +0 -1
- package/dist/oni-code/config.js +0 -264
- package/dist/oni-code/config.js.map +0 -1
- package/dist/oni-code/context-files.d.ts +0 -22
- package/dist/oni-code/context-files.d.ts.map +0 -1
- package/dist/oni-code/context-files.js +0 -156
- package/dist/oni-code/context-files.js.map +0 -1
- package/dist/oni-code/cron/humanize.d.ts +0 -26
- package/dist/oni-code/cron/humanize.d.ts.map +0 -1
- package/dist/oni-code/cron/humanize.js +0 -83
- package/dist/oni-code/cron/humanize.js.map +0 -1
- package/dist/oni-code/cron/index.d.ts +0 -10
- package/dist/oni-code/cron/index.d.ts.map +0 -1
- package/dist/oni-code/cron/index.js +0 -7
- package/dist/oni-code/cron/index.js.map +0 -1
- package/dist/oni-code/cron/matcher.d.ts +0 -29
- package/dist/oni-code/cron/matcher.d.ts.map +0 -1
- package/dist/oni-code/cron/matcher.js +0 -73
- package/dist/oni-code/cron/matcher.js.map +0 -1
- package/dist/oni-code/cron/parser.d.ts +0 -27
- package/dist/oni-code/cron/parser.d.ts.map +0 -1
- package/dist/oni-code/cron/parser.js +0 -149
- package/dist/oni-code/cron/parser.js.map +0 -1
- package/dist/oni-code/cron/persistence.d.ts +0 -21
- package/dist/oni-code/cron/persistence.d.ts.map +0 -1
- package/dist/oni-code/cron/persistence.js +0 -58
- package/dist/oni-code/cron/persistence.js.map +0 -1
- package/dist/oni-code/cron/scheduler.d.ts +0 -64
- package/dist/oni-code/cron/scheduler.d.ts.map +0 -1
- package/dist/oni-code/cron/scheduler.js +0 -188
- package/dist/oni-code/cron/scheduler.js.map +0 -1
- package/dist/oni-code/cron/store.d.ts +0 -46
- package/dist/oni-code/cron/store.d.ts.map +0 -1
- package/dist/oni-code/cron/store.js +0 -68
- package/dist/oni-code/cron/store.js.map +0 -1
- package/dist/oni-code/env.d.ts +0 -17
- package/dist/oni-code/env.d.ts.map +0 -1
- package/dist/oni-code/env.js +0 -51
- package/dist/oni-code/env.js.map +0 -1
- package/dist/oni-code/file-reader.d.ts +0 -28
- package/dist/oni-code/file-reader.d.ts.map +0 -1
- package/dist/oni-code/file-reader.js +0 -368
- package/dist/oni-code/file-reader.js.map +0 -1
- package/dist/oni-code/file-watcher.d.ts +0 -66
- package/dist/oni-code/file-watcher.d.ts.map +0 -1
- package/dist/oni-code/file-watcher.js +0 -167
- package/dist/oni-code/file-watcher.js.map +0 -1
- package/dist/oni-code/loop-detector.d.ts +0 -64
- package/dist/oni-code/loop-detector.d.ts.map +0 -1
- package/dist/oni-code/loop-detector.js +0 -163
- package/dist/oni-code/loop-detector.js.map +0 -1
- package/dist/oni-code/permissions.d.ts +0 -43
- package/dist/oni-code/permissions.d.ts.map +0 -1
- package/dist/oni-code/permissions.js +0 -98
- package/dist/oni-code/permissions.js.map +0 -1
- package/dist/oni-code/planner.d.ts +0 -26
- package/dist/oni-code/planner.d.ts.map +0 -1
- package/dist/oni-code/planner.js +0 -86
- package/dist/oni-code/planner.js.map +0 -1
- package/dist/oni-code/plugin-loader.d.ts +0 -103
- package/dist/oni-code/plugin-loader.d.ts.map +0 -1
- package/dist/oni-code/plugin-loader.js +0 -171
- package/dist/oni-code/plugin-loader.js.map +0 -1
- package/dist/oni-code/process-tree.d.ts +0 -44
- package/dist/oni-code/process-tree.d.ts.map +0 -1
- package/dist/oni-code/process-tree.js +0 -107
- package/dist/oni-code/process-tree.js.map +0 -1
- package/dist/oni-code/progress-tracker.d.ts +0 -40
- package/dist/oni-code/progress-tracker.d.ts.map +0 -1
- package/dist/oni-code/progress-tracker.js +0 -375
- package/dist/oni-code/progress-tracker.js.map +0 -1
- package/dist/oni-code/scheduler.d.ts +0 -56
- package/dist/oni-code/scheduler.d.ts.map +0 -1
- package/dist/oni-code/scheduler.js +0 -105
- package/dist/oni-code/scheduler.js.map +0 -1
- package/dist/oni-code/session-fork.d.ts +0 -146
- package/dist/oni-code/session-fork.d.ts.map +0 -1
- package/dist/oni-code/session-fork.js +0 -238
- package/dist/oni-code/session-fork.js.map +0 -1
- package/dist/oni-code/session-stats.d.ts +0 -72
- package/dist/oni-code/session-stats.d.ts.map +0 -1
- package/dist/oni-code/session-stats.js +0 -141
- package/dist/oni-code/session-stats.js.map +0 -1
- package/dist/oni-code/session-title.d.ts +0 -25
- package/dist/oni-code/session-title.d.ts.map +0 -1
- package/dist/oni-code/session-title.js +0 -67
- package/dist/oni-code/session-title.js.map +0 -1
- package/dist/oni-code/shell-parser.d.ts +0 -112
- package/dist/oni-code/shell-parser.d.ts.map +0 -1
- package/dist/oni-code/shell-parser.js +0 -657
- package/dist/oni-code/shell-parser.js.map +0 -1
- package/dist/oni-code/summarizer.d.ts +0 -27
- package/dist/oni-code/summarizer.d.ts.map +0 -1
- package/dist/oni-code/summarizer.js +0 -70
- package/dist/oni-code/summarizer.js.map +0 -1
- package/dist/oni-code/swarm-checkpoint.d.ts +0 -52
- package/dist/oni-code/swarm-checkpoint.d.ts.map +0 -1
- package/dist/oni-code/swarm-checkpoint.js +0 -71
- package/dist/oni-code/swarm-checkpoint.js.map +0 -1
- package/dist/oni-code/swarm-runner.d.ts +0 -173
- package/dist/oni-code/swarm-runner.d.ts.map +0 -1
- package/dist/oni-code/swarm-runner.js +0 -873
- package/dist/oni-code/swarm-runner.js.map +0 -1
- package/dist/oni-code/system-prompt.d.ts +0 -13
- package/dist/oni-code/system-prompt.d.ts.map +0 -1
- package/dist/oni-code/system-prompt.js +0 -64
- package/dist/oni-code/system-prompt.js.map +0 -1
- package/dist/oni-code/task-evaluator.d.ts +0 -73
- package/dist/oni-code/task-evaluator.d.ts.map +0 -1
- package/dist/oni-code/task-evaluator.js +0 -172
- package/dist/oni-code/task-evaluator.js.map +0 -1
- package/dist/oni-code/tools/batch.d.ts +0 -12
- package/dist/oni-code/tools/batch.d.ts.map +0 -1
- package/dist/oni-code/tools/batch.js +0 -116
- package/dist/oni-code/tools/batch.js.map +0 -1
- package/dist/oni-code/tools/coding.d.ts +0 -10
- package/dist/oni-code/tools/coding.d.ts.map +0 -1
- package/dist/oni-code/tools/coding.js +0 -557
- package/dist/oni-code/tools/coding.js.map +0 -1
- package/dist/oni-code/tools/cron.d.ts +0 -4
- package/dist/oni-code/tools/cron.d.ts.map +0 -1
- package/dist/oni-code/tools/cron.js +0 -120
- package/dist/oni-code/tools/cron.js.map +0 -1
- package/dist/oni-code/tools/custom.d.ts +0 -43
- package/dist/oni-code/tools/custom.d.ts.map +0 -1
- package/dist/oni-code/tools/custom.js +0 -115
- package/dist/oni-code/tools/custom.js.map +0 -1
- package/dist/oni-code/tools/patch.d.ts +0 -58
- package/dist/oni-code/tools/patch.d.ts.map +0 -1
- package/dist/oni-code/tools/patch.js +0 -247
- package/dist/oni-code/tools/patch.js.map +0 -1
- package/dist/oni-code/tools/plan.d.ts +0 -17
- package/dist/oni-code/tools/plan.d.ts.map +0 -1
- package/dist/oni-code/tools/plan.js +0 -48
- package/dist/oni-code/tools/plan.js.map +0 -1
- package/dist/oni-code/tools/question.d.ts +0 -17
- package/dist/oni-code/tools/question.d.ts.map +0 -1
- package/dist/oni-code/tools/question.js +0 -46
- package/dist/oni-code/tools/question.js.map +0 -1
- package/dist/oni-code/tools/skill.d.ts +0 -36
- package/dist/oni-code/tools/skill.d.ts.map +0 -1
- package/dist/oni-code/tools/skill.js +0 -132
- package/dist/oni-code/tools/skill.js.map +0 -1
- package/dist/oni-code/tools/spawn-agents.d.ts +0 -37
- package/dist/oni-code/tools/spawn-agents.d.ts.map +0 -1
- package/dist/oni-code/tools/spawn-agents.js +0 -91
- package/dist/oni-code/tools/spawn-agents.js.map +0 -1
- package/dist/oni-code/tools/spawn-swarm.d.ts +0 -70
- package/dist/oni-code/tools/spawn-swarm.d.ts.map +0 -1
- package/dist/oni-code/tools/spawn-swarm.js +0 -129
- package/dist/oni-code/tools/spawn-swarm.js.map +0 -1
- package/dist/oni-code/tools/web.d.ts +0 -11
- package/dist/oni-code/tools/web.d.ts.map +0 -1
- package/dist/oni-code/tools/web.js +0 -375
- package/dist/oni-code/tools/web.js.map +0 -1
- package/dist/oni-code/topology-agent-builder.d.ts +0 -22
- package/dist/oni-code/topology-agent-builder.d.ts.map +0 -1
- package/dist/oni-code/topology-agent-builder.js +0 -220
- package/dist/oni-code/topology-agent-builder.js.map +0 -1
- package/dist/oni-code/topology-selector.d.ts +0 -85
- package/dist/oni-code/topology-selector.d.ts.map +0 -1
- package/dist/oni-code/topology-selector.js +0 -338
- package/dist/oni-code/topology-selector.js.map +0 -1
- package/dist/oni-code/ui/App.d.ts +0 -10
- package/dist/oni-code/ui/App.d.ts.map +0 -1
- package/dist/oni-code/ui/App.js +0 -395
- package/dist/oni-code/ui/App.js.map +0 -1
- package/dist/oni-code/ui/FooterPanel.d.ts +0 -16
- package/dist/oni-code/ui/FooterPanel.d.ts.map +0 -1
- package/dist/oni-code/ui/FooterPanel.js +0 -56
- package/dist/oni-code/ui/FooterPanel.js.map +0 -1
- package/dist/oni-code/ui/Header.d.ts +0 -21
- package/dist/oni-code/ui/Header.d.ts.map +0 -1
- package/dist/oni-code/ui/Header.js +0 -105
- package/dist/oni-code/ui/Header.js.map +0 -1
- package/dist/oni-code/ui/InputArea.d.ts +0 -11
- package/dist/oni-code/ui/InputArea.d.ts.map +0 -1
- package/dist/oni-code/ui/InputArea.js +0 -82
- package/dist/oni-code/ui/InputArea.js.map +0 -1
- package/dist/oni-code/ui/MessageBlock.d.ts +0 -11
- package/dist/oni-code/ui/MessageBlock.d.ts.map +0 -1
- package/dist/oni-code/ui/MessageBlock.js +0 -103
- package/dist/oni-code/ui/MessageBlock.js.map +0 -1
- package/dist/oni-code/ui/OutputPane.d.ts +0 -12
- package/dist/oni-code/ui/OutputPane.d.ts.map +0 -1
- package/dist/oni-code/ui/OutputPane.js +0 -8
- package/dist/oni-code/ui/OutputPane.js.map +0 -1
- package/dist/oni-code/ui/PermissionPrompt.d.ts +0 -11
- package/dist/oni-code/ui/PermissionPrompt.d.ts.map +0 -1
- package/dist/oni-code/ui/PermissionPrompt.js +0 -48
- package/dist/oni-code/ui/PermissionPrompt.js.map +0 -1
- package/dist/oni-code/ui/QuestionPrompt.d.ts +0 -8
- package/dist/oni-code/ui/QuestionPrompt.d.ts.map +0 -1
- package/dist/oni-code/ui/QuestionPrompt.js +0 -9
- package/dist/oni-code/ui/QuestionPrompt.js.map +0 -1
- package/dist/oni-code/ui/StatusLine.d.ts +0 -14
- package/dist/oni-code/ui/StatusLine.d.ts.map +0 -1
- package/dist/oni-code/ui/StatusLine.js +0 -23
- package/dist/oni-code/ui/StatusLine.js.map +0 -1
- package/dist/oni-code/ui/SwarmPanel.d.ts +0 -9
- package/dist/oni-code/ui/SwarmPanel.d.ts.map +0 -1
- package/dist/oni-code/ui/SwarmPanel.js +0 -52
- package/dist/oni-code/ui/SwarmPanel.js.map +0 -1
- package/dist/oni-code/ui/ToolCallBlock.d.ts +0 -10
- package/dist/oni-code/ui/ToolCallBlock.d.ts.map +0 -1
- package/dist/oni-code/ui/ToolCallBlock.js +0 -21
- package/dist/oni-code/ui/ToolCallBlock.js.map +0 -1
- package/dist/oni-code/ui/Toolbar.d.ts +0 -8
- package/dist/oni-code/ui/Toolbar.d.ts.map +0 -1
- package/dist/oni-code/ui/Toolbar.js +0 -11
- package/dist/oni-code/ui/Toolbar.js.map +0 -1
- package/dist/oni-code/ui/WelcomeBanner.d.ts +0 -12
- package/dist/oni-code/ui/WelcomeBanner.d.ts.map +0 -1
- package/dist/oni-code/ui/WelcomeBanner.js +0 -24
- package/dist/oni-code/ui/WelcomeBanner.js.map +0 -1
- package/dist/oni-code/ui/activity.d.ts +0 -15
- package/dist/oni-code/ui/activity.d.ts.map +0 -1
- package/dist/oni-code/ui/activity.js +0 -252
- package/dist/oni-code/ui/activity.js.map +0 -1
- package/dist/oni-code/ui/banner.d.ts +0 -16
- package/dist/oni-code/ui/banner.d.ts.map +0 -1
- package/dist/oni-code/ui/banner.js +0 -132
- package/dist/oni-code/ui/banner.js.map +0 -1
- package/dist/oni-code/ui/command-menu.d.ts +0 -7
- package/dist/oni-code/ui/command-menu.d.ts.map +0 -1
- package/dist/oni-code/ui/command-menu.js +0 -20
- package/dist/oni-code/ui/command-menu.js.map +0 -1
- package/dist/oni-code/ui/diff.d.ts +0 -17
- package/dist/oni-code/ui/diff.d.ts.map +0 -1
- package/dist/oni-code/ui/diff.js +0 -37
- package/dist/oni-code/ui/diff.js.map +0 -1
- package/dist/oni-code/ui/format.d.ts +0 -41
- package/dist/oni-code/ui/format.d.ts.map +0 -1
- package/dist/oni-code/ui/format.js +0 -223
- package/dist/oni-code/ui/format.js.map +0 -1
- package/dist/oni-code/ui/input.d.ts +0 -28
- package/dist/oni-code/ui/input.d.ts.map +0 -1
- package/dist/oni-code/ui/input.js +0 -216
- package/dist/oni-code/ui/input.js.map +0 -1
- package/dist/oni-code/ui/insights.d.ts +0 -39
- package/dist/oni-code/ui/insights.d.ts.map +0 -1
- package/dist/oni-code/ui/insights.js +0 -193
- package/dist/oni-code/ui/insights.js.map +0 -1
- package/dist/oni-code/ui/markdown.d.ts +0 -9
- package/dist/oni-code/ui/markdown.d.ts.map +0 -1
- package/dist/oni-code/ui/markdown.js +0 -44
- package/dist/oni-code/ui/markdown.js.map +0 -1
- package/dist/oni-code/ui/panels.d.ts +0 -39
- package/dist/oni-code/ui/panels.d.ts.map +0 -1
- package/dist/oni-code/ui/panels.js +0 -209
- package/dist/oni-code/ui/panels.js.map +0 -1
- package/dist/oni-code/ui/paste.d.ts +0 -17
- package/dist/oni-code/ui/paste.d.ts.map +0 -1
- package/dist/oni-code/ui/paste.js +0 -45
- package/dist/oni-code/ui/paste.js.map +0 -1
- package/dist/oni-code/ui/raw-spinner.d.ts +0 -37
- package/dist/oni-code/ui/raw-spinner.d.ts.map +0 -1
- package/dist/oni-code/ui/raw-spinner.js +0 -121
- package/dist/oni-code/ui/raw-spinner.js.map +0 -1
- package/dist/oni-code/ui/session.d.ts +0 -44
- package/dist/oni-code/ui/session.d.ts.map +0 -1
- package/dist/oni-code/ui/session.js +0 -93
- package/dist/oni-code/ui/session.js.map +0 -1
- package/dist/oni-code/ui/spinner.d.ts +0 -7
- package/dist/oni-code/ui/spinner.d.ts.map +0 -1
- package/dist/oni-code/ui/spinner.js +0 -20
- package/dist/oni-code/ui/spinner.js.map +0 -1
- package/dist/oni-code/ui/swarm-activity.d.ts +0 -50
- package/dist/oni-code/ui/swarm-activity.d.ts.map +0 -1
- package/dist/oni-code/ui/swarm-activity.js +0 -233
- package/dist/oni-code/ui/swarm-activity.js.map +0 -1
- package/dist/oni-code/ui/terminal-size.d.ts +0 -18
- package/dist/oni-code/ui/terminal-size.d.ts.map +0 -1
- package/dist/oni-code/ui/terminal-size.js +0 -45
- package/dist/oni-code/ui/terminal-size.js.map +0 -1
- package/dist/oni-code/ui/theme.d.ts +0 -82
- package/dist/oni-code/ui/theme.d.ts.map +0 -1
- package/dist/oni-code/ui/theme.js +0 -101
- package/dist/oni-code/ui/theme.js.map +0 -1
- package/dist/oni-code/ui/tool-utils.d.ts +0 -10
- package/dist/oni-code/ui/tool-utils.d.ts.map +0 -1
- package/dist/oni-code/ui/tool-utils.js +0 -82
- package/dist/oni-code/ui/tool-utils.js.map +0 -1
- package/dist/oni-code/ui/useTerminalSize.d.ts +0 -3
- package/dist/oni-code/ui/useTerminalSize.d.ts.map +0 -1
- package/dist/oni-code/ui/useTerminalSize.js +0 -16
- package/dist/oni-code/ui/useTerminalSize.js.map +0 -1
- package/dist/oni-code/workspace/change-tracker.d.ts +0 -18
- package/dist/oni-code/workspace/change-tracker.d.ts.map +0 -1
- package/dist/oni-code/workspace/change-tracker.js +0 -67
- package/dist/oni-code/workspace/change-tracker.js.map +0 -1
- package/dist/oni-code/workspace/conflict-detector.d.ts +0 -12
- package/dist/oni-code/workspace/conflict-detector.d.ts.map +0 -1
- package/dist/oni-code/workspace/conflict-detector.js +0 -24
- package/dist/oni-code/workspace/conflict-detector.js.map +0 -1
- package/dist/oni-code/workspace/file-snapshots.d.ts +0 -39
- package/dist/oni-code/workspace/file-snapshots.d.ts.map +0 -1
- package/dist/oni-code/workspace/file-snapshots.js +0 -77
- package/dist/oni-code/workspace/file-snapshots.js.map +0 -1
- package/dist/oni-code/workspace/index.d.ts +0 -5
- package/dist/oni-code/workspace/index.d.ts.map +0 -1
- package/dist/oni-code/workspace/index.js +0 -5
- package/dist/oni-code/workspace/index.js.map +0 -1
- package/dist/oni-code/workspace/project-map.d.ts +0 -14
- package/dist/oni-code/workspace/project-map.d.ts.map +0 -1
- package/dist/oni-code/workspace/project-map.js +0 -91
- package/dist/oni-code/workspace/project-map.js.map +0 -1
- package/dist/sentinel/config/index.d.ts +0 -2
- package/dist/sentinel/config/index.d.ts.map +0 -1
- package/dist/sentinel/config/index.js +0 -2
- package/dist/sentinel/config/index.js.map +0 -1
- package/dist/sentinel/config/schema.d.ts +0 -4
- package/dist/sentinel/config/schema.d.ts.map +0 -1
- package/dist/sentinel/config/schema.js +0 -42
- package/dist/sentinel/config/schema.js.map +0 -1
- package/dist/sentinel/debate/index.d.ts +0 -6
- package/dist/sentinel/debate/index.d.ts.map +0 -1
- package/dist/sentinel/debate/index.js +0 -64
- package/dist/sentinel/debate/index.js.map +0 -1
- package/dist/sentinel/debate/prompts.d.ts +0 -4
- package/dist/sentinel/debate/prompts.d.ts.map +0 -1
- package/dist/sentinel/debate/prompts.js +0 -13
- package/dist/sentinel/debate/prompts.js.map +0 -1
- package/dist/sentinel/fix/index.d.ts +0 -6
- package/dist/sentinel/fix/index.d.ts.map +0 -1
- package/dist/sentinel/fix/index.js +0 -27
- package/dist/sentinel/fix/index.js.map +0 -1
- package/dist/sentinel/fix/strategies.d.ts +0 -9
- package/dist/sentinel/fix/strategies.d.ts.map +0 -1
- package/dist/sentinel/fix/strategies.js +0 -40
- package/dist/sentinel/fix/strategies.js.map +0 -1
- package/dist/sentinel/index.d.ts +0 -14
- package/dist/sentinel/index.d.ts.map +0 -1
- package/dist/sentinel/index.js +0 -22
- package/dist/sentinel/index.js.map +0 -1
- package/dist/sentinel/integrations/cli.d.ts +0 -10
- package/dist/sentinel/integrations/cli.d.ts.map +0 -1
- package/dist/sentinel/integrations/cli.js +0 -24
- package/dist/sentinel/integrations/cli.js.map +0 -1
- package/dist/sentinel/integrations/index.d.ts +0 -2
- package/dist/sentinel/integrations/index.d.ts.map +0 -1
- package/dist/sentinel/integrations/index.js +0 -2
- package/dist/sentinel/integrations/index.js.map +0 -1
- package/dist/sentinel/memory/index.d.ts +0 -16
- package/dist/sentinel/memory/index.d.ts.map +0 -1
- package/dist/sentinel/memory/index.js +0 -60
- package/dist/sentinel/memory/index.js.map +0 -1
- package/dist/sentinel/report/console.d.ts +0 -3
- package/dist/sentinel/report/console.d.ts.map +0 -1
- package/dist/sentinel/report/console.js +0 -27
- package/dist/sentinel/report/console.js.map +0 -1
- package/dist/sentinel/report/github.d.ts +0 -3
- package/dist/sentinel/report/github.d.ts.map +0 -1
- package/dist/sentinel/report/github.js +0 -36
- package/dist/sentinel/report/github.js.map +0 -1
- package/dist/sentinel/report/index.d.ts +0 -6
- package/dist/sentinel/report/index.d.ts.map +0 -1
- package/dist/sentinel/report/index.js +0 -15
- package/dist/sentinel/report/index.js.map +0 -1
- package/dist/sentinel/report/sarif.d.ts +0 -3
- package/dist/sentinel/report/sarif.d.ts.map +0 -1
- package/dist/sentinel/report/sarif.js +0 -29
- package/dist/sentinel/report/sarif.js.map +0 -1
- package/dist/sentinel/sentinel.d.ts +0 -17
- package/dist/sentinel/sentinel.d.ts.map +0 -1
- package/dist/sentinel/sentinel.js +0 -111
- package/dist/sentinel/sentinel.js.map +0 -1
- package/dist/sentinel/swarm/agents.d.ts +0 -6
- package/dist/sentinel/swarm/agents.d.ts.map +0 -1
- package/dist/sentinel/swarm/agents.js +0 -36
- package/dist/sentinel/swarm/agents.js.map +0 -1
- package/dist/sentinel/swarm/index.d.ts +0 -8
- package/dist/sentinel/swarm/index.d.ts.map +0 -1
- package/dist/sentinel/swarm/index.js +0 -74
- package/dist/sentinel/swarm/index.js.map +0 -1
- package/dist/sentinel/swarm/prompts.d.ts +0 -2
- package/dist/sentinel/swarm/prompts.d.ts.map +0 -1
- package/dist/sentinel/swarm/prompts.js +0 -24
- package/dist/sentinel/swarm/prompts.js.map +0 -1
- package/dist/sentinel/swarm/topology.d.ts +0 -10
- package/dist/sentinel/swarm/topology.d.ts.map +0 -1
- package/dist/sentinel/swarm/topology.js +0 -38
- package/dist/sentinel/swarm/topology.js.map +0 -1
- package/dist/sentinel/triage/analyzers/complexity-analyzer.d.ts +0 -7
- package/dist/sentinel/triage/analyzers/complexity-analyzer.d.ts.map +0 -1
- package/dist/sentinel/triage/analyzers/complexity-analyzer.js +0 -94
- package/dist/sentinel/triage/analyzers/complexity-analyzer.js.map +0 -1
- package/dist/sentinel/triage/analyzers/custom-analyzer.d.ts +0 -19
- package/dist/sentinel/triage/analyzers/custom-analyzer.d.ts.map +0 -1
- package/dist/sentinel/triage/analyzers/custom-analyzer.js +0 -268
- package/dist/sentinel/triage/analyzers/custom-analyzer.js.map +0 -1
- package/dist/sentinel/triage/analyzers/dependency-analyzer.d.ts +0 -26
- package/dist/sentinel/triage/analyzers/dependency-analyzer.d.ts.map +0 -1
- package/dist/sentinel/triage/analyzers/dependency-analyzer.js +0 -220
- package/dist/sentinel/triage/analyzers/dependency-analyzer.js.map +0 -1
- package/dist/sentinel/triage/analyzers/diff-analyzer.d.ts +0 -12
- package/dist/sentinel/triage/analyzers/diff-analyzer.d.ts.map +0 -1
- package/dist/sentinel/triage/analyzers/diff-analyzer.js +0 -19
- package/dist/sentinel/triage/analyzers/diff-analyzer.js.map +0 -1
- package/dist/sentinel/triage/analyzers/index.d.ts +0 -14
- package/dist/sentinel/triage/analyzers/index.d.ts.map +0 -1
- package/dist/sentinel/triage/analyzers/index.js +0 -25
- package/dist/sentinel/triage/analyzers/index.js.map +0 -1
- package/dist/sentinel/triage/analyzers/pattern-analyzer.d.ts +0 -7
- package/dist/sentinel/triage/analyzers/pattern-analyzer.d.ts.map +0 -1
- package/dist/sentinel/triage/analyzers/pattern-analyzer.js +0 -180
- package/dist/sentinel/triage/analyzers/pattern-analyzer.js.map +0 -1
- package/dist/sentinel/triage/analyzers/security-analyzer.d.ts +0 -7
- package/dist/sentinel/triage/analyzers/security-analyzer.d.ts.map +0 -1
- package/dist/sentinel/triage/analyzers/security-analyzer.js +0 -96
- package/dist/sentinel/triage/analyzers/security-analyzer.js.map +0 -1
- package/dist/sentinel/triage/analyzers/ts-parser.d.ts +0 -71
- package/dist/sentinel/triage/analyzers/ts-parser.d.ts.map +0 -1
- package/dist/sentinel/triage/analyzers/ts-parser.js +0 -323
- package/dist/sentinel/triage/analyzers/ts-parser.js.map +0 -1
- package/dist/sentinel/triage/analyzers/typescript-analyzer.d.ts +0 -7
- package/dist/sentinel/triage/analyzers/typescript-analyzer.d.ts.map +0 -1
- package/dist/sentinel/triage/analyzers/typescript-analyzer.js +0 -68
- package/dist/sentinel/triage/analyzers/typescript-analyzer.js.map +0 -1
- package/dist/sentinel/triage/index.d.ts +0 -10
- package/dist/sentinel/triage/index.d.ts.map +0 -1
- package/dist/sentinel/triage/index.js +0 -39
- package/dist/sentinel/triage/index.js.map +0 -1
- package/dist/sentinel/triage/scorer.d.ts +0 -9
- package/dist/sentinel/triage/scorer.d.ts.map +0 -1
- package/dist/sentinel/triage/scorer.js +0 -28
- package/dist/sentinel/triage/scorer.js.map +0 -1
- package/dist/sentinel/types.d.ts +0 -125
- package/dist/sentinel/types.d.ts.map +0 -1
- package/dist/sentinel/types.js +0 -6
- package/dist/sentinel/types.js.map +0 -1
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared tool display utilities — emoji and verb mappings for UI components.
|
|
3
|
-
*
|
|
4
|
-
* Single source of truth. Consumed by ToolCallBlock, MessageBlock, and InsightsPanel.
|
|
5
|
-
*/
|
|
6
|
-
/** Get emoji for a tool name (Hermes-style) */
|
|
7
|
-
export function getToolEmoji(name) {
|
|
8
|
-
const n = name.toLowerCase();
|
|
9
|
-
if (n.includes("read"))
|
|
10
|
-
return "\ud83d\udcc4";
|
|
11
|
-
if (n.includes("write"))
|
|
12
|
-
return "\u270d\ufe0f";
|
|
13
|
-
if (n.includes("edit") || n.includes("patch"))
|
|
14
|
-
return "\ud83d\udd27";
|
|
15
|
-
if (n.includes("bash") || n.includes("terminal"))
|
|
16
|
-
return "\ud83d\udcbb";
|
|
17
|
-
if (n.includes("web") || n.includes("fetch"))
|
|
18
|
-
return "\ud83c\udf10";
|
|
19
|
-
if (n.includes("grep") || n.includes("search"))
|
|
20
|
-
return "\ud83d\udd0d";
|
|
21
|
-
if (n.includes("glob"))
|
|
22
|
-
return "\ud83d\udcc2";
|
|
23
|
-
if (n === "list_dir")
|
|
24
|
-
return "\ud83d\udcc2";
|
|
25
|
-
if (n.includes("git"))
|
|
26
|
-
return "\ud83c\udf3f";
|
|
27
|
-
if (n === "question")
|
|
28
|
-
return "\u2753";
|
|
29
|
-
if (n.includes("plan"))
|
|
30
|
-
return "\ud83d\udccb";
|
|
31
|
-
if (n.includes("spawn") || n.includes("agent"))
|
|
32
|
-
return "\ud83e\udd16";
|
|
33
|
-
if (n.includes("swarm"))
|
|
34
|
-
return "\ud83d\udc1d";
|
|
35
|
-
if (n.includes("project") || n.includes("map"))
|
|
36
|
-
return "\ud83d\uddfa\ufe0f";
|
|
37
|
-
if (n.includes("todo"))
|
|
38
|
-
return "\ud83d\udccb";
|
|
39
|
-
return "\u2699\ufe0f";
|
|
40
|
-
}
|
|
41
|
-
/** Get past-tense verb for a tool name (used in verbose tool result display) */
|
|
42
|
-
export function getToolVerb(name) {
|
|
43
|
-
const n = name.toLowerCase();
|
|
44
|
-
if (n === "read_file" || n === "read")
|
|
45
|
-
return "read";
|
|
46
|
-
if (n === "write_file" || n === "write")
|
|
47
|
-
return "wrote";
|
|
48
|
-
if (n === "edit_file" || n === "edit")
|
|
49
|
-
return "patched";
|
|
50
|
-
if (n === "apply_patch")
|
|
51
|
-
return "patched";
|
|
52
|
-
if (n === "bash" || n === "terminal")
|
|
53
|
-
return "ran";
|
|
54
|
-
if (n === "git" || n === "git_status")
|
|
55
|
-
return "git";
|
|
56
|
-
if (n === "grep")
|
|
57
|
-
return "searched";
|
|
58
|
-
if (n === "glob")
|
|
59
|
-
return "found";
|
|
60
|
-
if (n === "list_dir")
|
|
61
|
-
return "listed";
|
|
62
|
-
if (n === "question")
|
|
63
|
-
return "asked";
|
|
64
|
-
if (n === "plan_enter")
|
|
65
|
-
return "planned";
|
|
66
|
-
if (n === "plan_exit")
|
|
67
|
-
return "resumed";
|
|
68
|
-
if (n.includes("search"))
|
|
69
|
-
return "searched";
|
|
70
|
-
if (n.includes("fetch"))
|
|
71
|
-
return "fetched";
|
|
72
|
-
if (n.includes("spawn_agents"))
|
|
73
|
-
return "spawned";
|
|
74
|
-
if (n.includes("spawn_swarm"))
|
|
75
|
-
return "swarmed";
|
|
76
|
-
if (n.includes("project_map"))
|
|
77
|
-
return "mapped";
|
|
78
|
-
if (n.includes("todo") || n.includes("memory"))
|
|
79
|
-
return "noted";
|
|
80
|
-
return "ran";
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=tool-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool-utils.js","sourceRoot":"","sources":["../../../src/oni-code/ui/tool-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,+CAA+C;AAC/C,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,MAAM,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IAC7B,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAK,OAAO,cAAc,CAAC;IACjD,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAI,OAAO,cAAc,CAAC;IACjD,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO,cAAc,CAAC;IACrE,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC;QAAE,OAAO,cAAc,CAAC;IACxE,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO,cAAc,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,cAAc,CAAC;IACtE,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAK,OAAO,cAAc,CAAC;IACjD,IAAI,CAAC,KAAK,UAAU;QAAO,OAAO,cAAc,CAAC;IACjD,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,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AO,OAAO,CAAC;IAC3D,IAAI,CAAC,KAAK,UAAU;QAAwB,OAAO,QAAQ,CAAC;IAC5D,IAAI,CAAC,KAAK,UAAU;QAAwB,OAAO,OAAO,CAAC;IAC3D,IAAI,CAAC,KAAK,YAAY;QAAsB,OAAO,SAAS,CAAC;IAC7D,IAAI,CAAC,KAAK,WAAW;QAAuB,OAAO,SAAS,CAAC;IAC7D,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAoB,OAAO,UAAU,CAAC;IAC9D,IAAI,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAqB,OAAO,SAAS,CAAC;IAC7D,IAAI,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC;QAAc,OAAO,SAAS,CAAC;IAC7D,IAAI,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;QAAe,OAAO,SAAS,CAAC;IAC7D,IAAI,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;QAAe,OAAO,QAAQ,CAAC;IAC5D,IAAI,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,OAAO,CAAC;IAC/D,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTerminalSize.d.ts","sourceRoot":"","sources":["../../../src/oni-code/ui/useTerminalSize.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,KAAK,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE7E,wBAAgB,eAAe,IAAI,oBAAoB,CAetD"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from "react";
|
|
2
|
-
import { terminalSize } from "./terminal-size.js";
|
|
3
|
-
export function useTerminalSize() {
|
|
4
|
-
const [size, setSize] = useState(() => terminalSize.getSnapshot());
|
|
5
|
-
useEffect(() => {
|
|
6
|
-
const handleResize = (nextSize) => {
|
|
7
|
-
setSize(nextSize);
|
|
8
|
-
};
|
|
9
|
-
terminalSize.on("resize", handleResize);
|
|
10
|
-
return () => {
|
|
11
|
-
terminalSize.off("resize", handleResize);
|
|
12
|
-
};
|
|
13
|
-
}, []);
|
|
14
|
-
return size;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=useTerminalSize.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTerminalSize.js","sourceRoot":"","sources":["../../../src/oni-code/ui/useTerminalSize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,YAAY,EAA6B,MAAM,oBAAoB,CAAC;AAE7E,MAAM,UAAU,eAAe;IAC7B,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,CAAuB,GAAG,EAAE,CAAC,YAAY,CAAC,WAAW,EAAE,CAAC,CAAC;IAEzF,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,YAAY,GAAG,CAAC,QAA8B,EAAE,EAAE;YACtD,OAAO,CAAC,QAAQ,CAAC,CAAC;QACpB,CAAC,CAAC;QAEF,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QACxC,OAAO,GAAG,EAAE;YACV,YAAY,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;QAC3C,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type ChangeType = "create" | "edit" | "delete";
|
|
2
|
-
export interface ChangeEntry {
|
|
3
|
-
file: string;
|
|
4
|
-
type: ChangeType;
|
|
5
|
-
}
|
|
6
|
-
export declare class ChangeTracker {
|
|
7
|
-
private changes;
|
|
8
|
-
private version;
|
|
9
|
-
recordChange(file: string, type: ChangeType): void;
|
|
10
|
-
getChangedFiles(): string[];
|
|
11
|
-
getChangeType(file: string): ChangeType | undefined;
|
|
12
|
-
entries(): ChangeEntry[];
|
|
13
|
-
replace(changes: ChangeEntry[]): void;
|
|
14
|
-
getVersion(): number;
|
|
15
|
-
getSummary(): string;
|
|
16
|
-
clear(): void;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=change-tracker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"change-tracker.d.ts","sourceRoot":"","sources":["../../../src/oni-code/workspace/change-tracker.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;AACtD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,UAAU,CAAC;CAClB;AAQD,qBAAa,aAAa;IACxB,OAAO,CAAC,OAAO,CAAiC;IAChD,OAAO,CAAC,OAAO,CAAK;IAEpB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,GAAG,IAAI;IAQlD,eAAe,IAAI,MAAM,EAAE;IAI3B,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS;IAInD,OAAO,IAAI,WAAW,EAAE;IAIxB,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI;IAerC,UAAU,IAAI,MAAM;IAIpB,UAAU,IAAI,MAAM;IAQpB,KAAK,IAAI,IAAI;CAOd"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
const CHANGE_LABELS = {
|
|
2
|
-
create: "created",
|
|
3
|
-
edit: "edited",
|
|
4
|
-
delete: "deleted",
|
|
5
|
-
};
|
|
6
|
-
export class ChangeTracker {
|
|
7
|
-
changes = new Map();
|
|
8
|
-
version = 0;
|
|
9
|
-
recordChange(file, type) {
|
|
10
|
-
if (this.changes.get(file) === type) {
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
this.changes.set(file, type);
|
|
14
|
-
this.version++;
|
|
15
|
-
}
|
|
16
|
-
getChangedFiles() {
|
|
17
|
-
return [...this.changes.keys()];
|
|
18
|
-
}
|
|
19
|
-
getChangeType(file) {
|
|
20
|
-
return this.changes.get(file);
|
|
21
|
-
}
|
|
22
|
-
entries() {
|
|
23
|
-
return [...this.changes.entries()].map(([file, type]) => ({ file, type }));
|
|
24
|
-
}
|
|
25
|
-
replace(changes) {
|
|
26
|
-
const next = new Map();
|
|
27
|
-
for (const change of changes) {
|
|
28
|
-
next.set(change.file, change.type);
|
|
29
|
-
}
|
|
30
|
-
if (mapsEqual(this.changes, next)) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
this.changes.clear();
|
|
34
|
-
for (const [file, type] of next) {
|
|
35
|
-
this.changes.set(file, type);
|
|
36
|
-
}
|
|
37
|
-
this.version++;
|
|
38
|
-
}
|
|
39
|
-
getVersion() {
|
|
40
|
-
return this.version;
|
|
41
|
-
}
|
|
42
|
-
getSummary() {
|
|
43
|
-
const lines = [`${this.changes.size} file(s) changed:`];
|
|
44
|
-
for (const [file, type] of this.changes) {
|
|
45
|
-
lines.push(` ${file} (${CHANGE_LABELS[type]})`);
|
|
46
|
-
}
|
|
47
|
-
return lines.join("\n");
|
|
48
|
-
}
|
|
49
|
-
clear() {
|
|
50
|
-
if (this.changes.size === 0) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
this.changes.clear();
|
|
54
|
-
this.version++;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function mapsEqual(a, b) {
|
|
58
|
-
if (a.size !== b.size)
|
|
59
|
-
return false;
|
|
60
|
-
for (const [key, value] of a) {
|
|
61
|
-
if (b.get(key) !== value) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
//# sourceMappingURL=change-tracker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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d,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface TaskEstimate {
|
|
2
|
-
id: string;
|
|
3
|
-
estimatedFiles: string[];
|
|
4
|
-
}
|
|
5
|
-
export interface Conflict {
|
|
6
|
-
file: string;
|
|
7
|
-
tasks: string[];
|
|
8
|
-
}
|
|
9
|
-
export declare class ConflictDetector {
|
|
10
|
-
findConflicts(tasks: TaskEstimate[]): Conflict[];
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=conflict-detector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conflict-detector.d.ts","sourceRoot":"","sources":["../../../src/oni-code/workspace/conflict-detector.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,qBAAa,gBAAgB;IAC3B,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,QAAQ,EAAE;CAuBjD"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export class ConflictDetector {
|
|
2
|
-
findConflicts(tasks) {
|
|
3
|
-
const fileToTasks = new Map();
|
|
4
|
-
for (const task of tasks) {
|
|
5
|
-
for (const file of task.estimatedFiles) {
|
|
6
|
-
const existing = fileToTasks.get(file);
|
|
7
|
-
if (existing) {
|
|
8
|
-
existing.push(task.id);
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
fileToTasks.set(file, [task.id]);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
const conflicts = [];
|
|
16
|
-
for (const [file, taskIds] of fileToTasks) {
|
|
17
|
-
if (taskIds.length > 1) {
|
|
18
|
-
conflicts.push({ file, tasks: taskIds });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return conflicts;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=conflict-detector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conflict-detector.js","sourceRoot":"","sources":["../../../src/oni-code/workspace/conflict-detector.ts"],"names":[],"mappings":"AAUA,MAAM,OAAO,gBAAgB;IAC3B,aAAa,CAAC,KAAqB;QACjC,MAAM,WAAW,GAAG,IAAI,GAAG,EAAoB,CAAC;QAEhD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;gBACvC,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBACvC,IAAI,QAAQ,EAAE,CAAC;oBACb,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACzB,CAAC;qBAAM,CAAC;oBACN,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;gBACnC,CAAC;YACH,CAAC;QACH,CAAC;QAED,MAAM,SAAS,GAAe,EAAE,CAAC;QACjC,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,WAAW,EAAE,CAAC;YAC1C,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvB,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;YAC3C,CAAC;QACH,CAAC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File Snapshots — captures file content before mutations for undo support.
|
|
3
|
-
*
|
|
4
|
-
* Used by the Conductor's PreToolUse hook to snapshot files before
|
|
5
|
-
* edit_file or write_file modifies them. The undo_edit tool restores
|
|
6
|
-
* the previous version by popping the snapshot stack.
|
|
7
|
-
*/
|
|
8
|
-
export interface SnapshotConfig {
|
|
9
|
-
/** Max snapshots to keep per file (default 10) */
|
|
10
|
-
maxPerFile?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface RestoreResult {
|
|
13
|
-
success: boolean;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class FileSnapshots {
|
|
17
|
-
private readonly maxPerFile;
|
|
18
|
-
private readonly stacks;
|
|
19
|
-
constructor(config?: SnapshotConfig);
|
|
20
|
-
/**
|
|
21
|
-
* Capture the current content of a file before it's modified.
|
|
22
|
-
* Silently skips if the file doesn't exist (new file creation).
|
|
23
|
-
*/
|
|
24
|
-
capture(filePath: string): void;
|
|
25
|
-
/**
|
|
26
|
-
* Restore a file to its previous snapshot (undo).
|
|
27
|
-
* Pops the most recent snapshot and writes it to disk.
|
|
28
|
-
*/
|
|
29
|
-
restore(filePath: string): RestoreResult;
|
|
30
|
-
/** Check if a file has any snapshots */
|
|
31
|
-
hasSnapshot(filePath: string): boolean;
|
|
32
|
-
/** Get the number of snapshots for a file */
|
|
33
|
-
getSnapshotCount(filePath: string): number;
|
|
34
|
-
/** List all files with snapshots */
|
|
35
|
-
getModifiedFiles(): string[];
|
|
36
|
-
/** Clear all snapshots */
|
|
37
|
-
clear(): void;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=file-snapshots.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-snapshots.d.ts","sourceRoot":"","sources":["../../../src/oni-code/workspace/file-snapshots.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAID,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA+B;gBAE1C,MAAM,GAAE,cAAmB;IAIvC;;;OAGG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAsB/B;;;OAGG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa;IAgBxC,wCAAwC;IACxC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAKtC,6CAA6C;IAC7C,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM;IAI1C,oCAAoC;IACpC,gBAAgB,IAAI,MAAM,EAAE;IAI5B,0BAA0B;IAC1B,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* File Snapshots — captures file content before mutations for undo support.
|
|
3
|
-
*
|
|
4
|
-
* Used by the Conductor's PreToolUse hook to snapshot files before
|
|
5
|
-
* edit_file or write_file modifies them. The undo_edit tool restores
|
|
6
|
-
* the previous version by popping the snapshot stack.
|
|
7
|
-
*/
|
|
8
|
-
import { readFileSync, writeFileSync, existsSync } from "node:fs";
|
|
9
|
-
// ── FileSnapshots ────────────────────────────────────────────
|
|
10
|
-
export class FileSnapshots {
|
|
11
|
-
maxPerFile;
|
|
12
|
-
stacks = new Map();
|
|
13
|
-
constructor(config = {}) {
|
|
14
|
-
this.maxPerFile = config.maxPerFile ?? 10;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Capture the current content of a file before it's modified.
|
|
18
|
-
* Silently skips if the file doesn't exist (new file creation).
|
|
19
|
-
*/
|
|
20
|
-
capture(filePath) {
|
|
21
|
-
if (!existsSync(filePath))
|
|
22
|
-
return;
|
|
23
|
-
try {
|
|
24
|
-
const content = readFileSync(filePath, "utf-8");
|
|
25
|
-
let stack = this.stacks.get(filePath);
|
|
26
|
-
if (!stack) {
|
|
27
|
-
stack = [];
|
|
28
|
-
this.stacks.set(filePath, stack);
|
|
29
|
-
}
|
|
30
|
-
stack.push(content);
|
|
31
|
-
// Trim to max history
|
|
32
|
-
if (stack.length > this.maxPerFile) {
|
|
33
|
-
stack.splice(0, stack.length - this.maxPerFile);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
catch {
|
|
37
|
-
// Skip unreadable files (binary, permissions, etc.)
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Restore a file to its previous snapshot (undo).
|
|
42
|
-
* Pops the most recent snapshot and writes it to disk.
|
|
43
|
-
*/
|
|
44
|
-
restore(filePath) {
|
|
45
|
-
const stack = this.stacks.get(filePath);
|
|
46
|
-
if (!stack || stack.length === 0) {
|
|
47
|
-
return { success: false, error: `No snapshot available for ${filePath}` };
|
|
48
|
-
}
|
|
49
|
-
const content = stack.pop();
|
|
50
|
-
try {
|
|
51
|
-
writeFileSync(filePath, content, "utf-8");
|
|
52
|
-
return { success: true };
|
|
53
|
-
}
|
|
54
|
-
catch (err) {
|
|
55
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
56
|
-
return { success: false, error: `Failed to restore: ${message}` };
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
/** Check if a file has any snapshots */
|
|
60
|
-
hasSnapshot(filePath) {
|
|
61
|
-
const stack = this.stacks.get(filePath);
|
|
62
|
-
return !!stack && stack.length > 0;
|
|
63
|
-
}
|
|
64
|
-
/** Get the number of snapshots for a file */
|
|
65
|
-
getSnapshotCount(filePath) {
|
|
66
|
-
return this.stacks.get(filePath)?.length ?? 0;
|
|
67
|
-
}
|
|
68
|
-
/** List all files with snapshots */
|
|
69
|
-
getModifiedFiles() {
|
|
70
|
-
return [...this.stacks.keys()].filter((k) => this.hasSnapshot(k));
|
|
71
|
-
}
|
|
72
|
-
/** Clear all snapshots */
|
|
73
|
-
clear() {
|
|
74
|
-
this.stacks.clear();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=file-snapshots.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-snapshots.js","sourceRoot":"","sources":["../../../src/oni-code/workspace/file-snapshots.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAclE,gEAAgE;AAEhE,MAAM,OAAO,aAAa;IACP,UAAU,CAAS;IACnB,MAAM,GAAG,IAAI,GAAG,EAAoB,CAAC;IAEtD,YAAY,SAAyB,EAAE;QACrC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,QAAgB;QACtB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;YAAE,OAAO;QAElC,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;YAChD,IAAI,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACtC,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,KAAK,GAAG,EAAE,CAAC;gBACX,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;YACnC,CAAC;YAED,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEpB,sBAAsB;YACtB,IAAI,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;gBACnC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC;YAClD,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,oDAAoD;QACtD,CAAC;IACH,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,QAAgB;QACtB,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAA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IAC1B,KAAK;QACH,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;IACtB,CAAC;CACF"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { ProjectMap, type FileEntry } from "./project-map.js";
|
|
2
|
-
export { ChangeTracker, type ChangeType } from "./change-tracker.js";
|
|
3
|
-
export { FileSnapshots, type SnapshotConfig, type RestoreResult } from "./file-snapshots.js";
|
|
4
|
-
export { ConflictDetector, type Conflict, type TaskEstimate } from "./conflict-detector.js";
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/oni-code/workspace/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,KAAK,QAAQ,EAAE,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/oni-code/workspace/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkB,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAmB,MAAM,qBAAqB,CAAC;AACrE,OAAO,EAAE,aAAa,EAA2C,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAoC,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface FileEntry {
|
|
2
|
-
path: string;
|
|
3
|
-
size: number;
|
|
4
|
-
ext: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class ProjectMap {
|
|
7
|
-
readonly files: FileEntry[];
|
|
8
|
-
readonly root: string;
|
|
9
|
-
private constructor();
|
|
10
|
-
static build(rootDir: string, maxDepth?: number): ProjectMap;
|
|
11
|
-
toContextString(): string;
|
|
12
|
-
getFilesByExtension(ext: string): FileEntry[];
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=project-map.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-map.d.ts","sourceRoot":"","sources":["../../../src/oni-code/workspace/project-map.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAeD,qBAAa,UAAU;IACrB,QAAQ,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,OAAO;IAKP,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAU,GAAG,UAAU;IAO/D,eAAe,IAAI,MAAM;IAazB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE;CAG9C"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import * as fs from "node:fs";
|
|
2
|
-
import * as path from "node:path";
|
|
3
|
-
const IGNORED_DIRS = new Set([
|
|
4
|
-
"node_modules",
|
|
5
|
-
".git",
|
|
6
|
-
"dist",
|
|
7
|
-
"build",
|
|
8
|
-
"out",
|
|
9
|
-
"coverage",
|
|
10
|
-
".cache",
|
|
11
|
-
".turbo",
|
|
12
|
-
]);
|
|
13
|
-
const MAX_FILE_SIZE = 512 * 1024; // 512KB
|
|
14
|
-
export class ProjectMap {
|
|
15
|
-
files;
|
|
16
|
-
root;
|
|
17
|
-
constructor(root, files) {
|
|
18
|
-
this.root = root;
|
|
19
|
-
this.files = files;
|
|
20
|
-
}
|
|
21
|
-
static build(rootDir, maxDepth = 6) {
|
|
22
|
-
const entries = [];
|
|
23
|
-
walk(rootDir, rootDir, 0, maxDepth, entries);
|
|
24
|
-
entries.sort((a, b) => a.path.localeCompare(b.path));
|
|
25
|
-
return new ProjectMap(rootDir, entries);
|
|
26
|
-
}
|
|
27
|
-
toContextString() {
|
|
28
|
-
const lines = [`Project: ${this.files.length} files`];
|
|
29
|
-
for (const f of this.files) {
|
|
30
|
-
lines.push(` ${f.path} (${formatSize(f.size)})`);
|
|
31
|
-
}
|
|
32
|
-
const result = lines.join("\n");
|
|
33
|
-
// Truncate if somehow exceeds limit
|
|
34
|
-
if (result.length > 5000) {
|
|
35
|
-
return result.slice(0, 4997) + "...";
|
|
36
|
-
}
|
|
37
|
-
return result;
|
|
38
|
-
}
|
|
39
|
-
getFilesByExtension(ext) {
|
|
40
|
-
return this.files.filter((f) => f.ext === ext);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function walk(dir, root, depth, maxDepth, entries) {
|
|
44
|
-
if (depth > maxDepth)
|
|
45
|
-
return;
|
|
46
|
-
let dirEntries;
|
|
47
|
-
try {
|
|
48
|
-
dirEntries = fs.readdirSync(dir, { withFileTypes: true });
|
|
49
|
-
}
|
|
50
|
-
catch {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
for (const entry of dirEntries) {
|
|
54
|
-
const fullPath = path.join(dir, entry.name);
|
|
55
|
-
if (entry.isDirectory()) {
|
|
56
|
-
// Skip ignored directories and dot-dirs
|
|
57
|
-
if (IGNORED_DIRS.has(entry.name) || entry.name.startsWith(".")) {
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
walk(fullPath, root, depth + 1, maxDepth, entries);
|
|
61
|
-
}
|
|
62
|
-
else if (entry.isFile()) {
|
|
63
|
-
let stat;
|
|
64
|
-
try {
|
|
65
|
-
stat = fs.statSync(fullPath);
|
|
66
|
-
}
|
|
67
|
-
catch {
|
|
68
|
-
continue;
|
|
69
|
-
}
|
|
70
|
-
if (stat.size > MAX_FILE_SIZE)
|
|
71
|
-
continue;
|
|
72
|
-
const relativePath = path
|
|
73
|
-
.relative(root, fullPath)
|
|
74
|
-
.split(path.sep)
|
|
75
|
-
.join("/");
|
|
76
|
-
entries.push({
|
|
77
|
-
path: relativePath,
|
|
78
|
-
size: stat.size,
|
|
79
|
-
ext: path.extname(entry.name),
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
function formatSize(bytes) {
|
|
85
|
-
if (bytes < 1024)
|
|
86
|
-
return `${bytes}b`;
|
|
87
|
-
if (bytes < 1024 * 1024)
|
|
88
|
-
return `${(bytes / 1024).toFixed(1)}kb`;
|
|
89
|
-
return `${(bytes / (1024 * 1024)).toFixed(1)}mb`;
|
|
90
|
-
}
|
|
91
|
-
//# sourceMappingURL=project-map.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"project-map.js","sourceRoot":"","sources":["../../../src/oni-code/workspace/project-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAQlC,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC;IAC3B,cAAc;IACd,MAAM;IACN,MAAM;IACN,OAAO;IACP,KAAK;IACL,UAAU;IACV,QAAQ;IACR,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,GAAG,GAAG,IAAI,CAAC,CAAC,QAAQ;AAE1C,MAAM,OAAO,UAAU;IACZ,KAAK,CAAc;IACnB,IAAI,CAAS;IAEtB,YAAoB,IAAY,EAAE,KAAkB;QAClD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,OAAe,EAAE,WAAmB,CAAC;QAChD,MAAM,OAAO,GAAgB,EAA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,KAAK,GAAG,IAAI;QAAE,OAAO,GAAG,KAAK,GAAG,CAAC;IACrC,IAAI,KAAK,GAAG,IAAI,GAAG,IAAI;QAAE,OAAO,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;IACjE,OAAO,GAAG,CAAC,KAAK,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC;AACnD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sentinel/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sentinel/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/sentinel/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAY,MAAM,aAAa,CAAC;AAI5D,eAAO,MAAM,cAAc,EAAE,cAS5B,CAAC;AAEF,wBAAgB,WAAW,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG,cAAc,CAgC7E"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const VALID_SEVERITIES = ["error", "warning", "info"];
|
|
2
|
-
export const DEFAULT_CONFIG = {
|
|
3
|
-
severity_threshold: "warning",
|
|
4
|
-
auto_fix: true,
|
|
5
|
-
max_fix_attempts: 3,
|
|
6
|
-
max_debates: 10,
|
|
7
|
-
debate_auto_confirm_above: 0.7,
|
|
8
|
-
ignore: [],
|
|
9
|
-
rules: {},
|
|
10
|
-
custom_analyzers: [],
|
|
11
|
-
};
|
|
12
|
-
export function parseConfig(partial) {
|
|
13
|
-
const config = { ...DEFAULT_CONFIG, ...partial };
|
|
14
|
-
if (!VALID_SEVERITIES.includes(config.severity_threshold)) {
|
|
15
|
-
throw new Error(`Invalid severity_threshold: "${config.severity_threshold}". Must be one of: ${VALID_SEVERITIES.join(", ")}`);
|
|
16
|
-
}
|
|
17
|
-
if (config.max_debates < 1) {
|
|
18
|
-
throw new Error("max_debates must be positive");
|
|
19
|
-
}
|
|
20
|
-
if (config.debate_auto_confirm_above < 0 || config.debate_auto_confirm_above > 1) {
|
|
21
|
-
throw new Error("debate_auto_confirm_above must be between 0 and 1");
|
|
22
|
-
}
|
|
23
|
-
if (config.max_fix_attempts < 1) {
|
|
24
|
-
throw new Error("max_fix_attempts must be positive");
|
|
25
|
-
}
|
|
26
|
-
if (config.custom_analyzers) {
|
|
27
|
-
const validParsers = ["sarif", "json", "text"];
|
|
28
|
-
for (const ca of config.custom_analyzers) {
|
|
29
|
-
if (!ca.name || typeof ca.name !== "string") {
|
|
30
|
-
throw new Error("custom_analyzers[].name is required and must be a string");
|
|
31
|
-
}
|
|
32
|
-
if (!ca.command || typeof ca.command !== "string") {
|
|
33
|
-
throw new Error(`custom_analyzers "${ca.name}" requires a command string`);
|
|
34
|
-
}
|
|
35
|
-
if (!validParsers.includes(ca.parser)) {
|
|
36
|
-
throw new Error(`custom_analyzers "${ca.name}" parser must be one of: ${validParsers.join(", ")}`);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return config;
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/sentinel/config/schema.ts"],"names":[],"mappings":"AAEA,MAAM,gBAAgB,GAAe,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;AAElE,MAAM,CAAC,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AC5C,MAAM,IAAI,KAAK,CAAC,0DAA0D,CAAC,CAAC;YAC9E,CAAC;YACD,IAAI,CAAC,EAAE,CAAC,OAAO,IAAI,OAAO,EAAE,CAAC,OAAO,KAAK,QAAQ,EAAE,CAAC;gBAClD,MAAM,IAAI,KAAK,CAAC,qBAAqB,EAAE,CAAC,IAAI,6BAA6B,CAAC,CAAC;YAC7E,CAAC;YACD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,qBAAqB,EAAE,CAAC,IAAI,4BAA4B,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACrG,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ONIModel } from "../../models/types.js";
|
|
2
|
-
import type { Finding, SentinelConfig } from "../types.js";
|
|
3
|
-
import type { MemoryStore } from "../memory/index.js";
|
|
4
|
-
export declare function runDebateVerification(findings: Finding[], model: ONIModel, config: SentinelConfig, memory?: MemoryStore): Promise<Finding[]>;
|
|
5
|
-
export { PROSECUTOR_PROMPT, DEFENDER_PROMPT, JUDGE_PROMPT } from "./prompts.js";
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sentinel/debate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,OAAO,EAAE,EACnB,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,cAAc,EACtB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,EAAE,CAAC,CA+CpB;AA4BD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC"}
|