mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-05-27 19:02:38 +02:00
13731f5ebf
- Delete 4 dead files: pre-recon.ts, tool-checker.ts, input-validator.ts, environment.ts - Remove runClaudePromptWithRetry() and its now-unused imports from claude-executor.ts - De-export unused symbols: AGENT_ORDER, getParallelGroups, logError, isRouterMode, showHelp, displayTimingSummary - De-export unused types: ProcessingState, ProcessingResult, SdkMessage, MessageDispatchResult, MessageDispatchContext - Remove dead import (path from zx) in session-manager.ts and deprecated comment in config.ts
64 lines
1.2 KiB
TypeScript
64 lines
1.2 KiB
TypeScript
// Copyright (C) 2025 Keygraph, Inc.
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License version 3
|
|
// as published by the Free Software Foundation.
|
|
|
|
/**
|
|
* Configuration type definitions
|
|
*/
|
|
|
|
export type RuleType =
|
|
| 'path'
|
|
| 'subdomain'
|
|
| 'domain'
|
|
| 'method'
|
|
| 'header'
|
|
| 'parameter';
|
|
|
|
export interface Rule {
|
|
description: string;
|
|
type: RuleType;
|
|
url_path: string;
|
|
}
|
|
|
|
export interface Rules {
|
|
avoid?: Rule[];
|
|
focus?: Rule[];
|
|
}
|
|
|
|
export type LoginType = 'form' | 'sso' | 'api' | 'basic';
|
|
|
|
export type SuccessConditionType = 'url' | 'cookie' | 'element' | 'redirect';
|
|
|
|
export interface SuccessCondition {
|
|
type: SuccessConditionType;
|
|
value: string;
|
|
}
|
|
|
|
export interface Credentials {
|
|
username: string;
|
|
password: string;
|
|
totp_secret?: string;
|
|
}
|
|
|
|
export interface Authentication {
|
|
login_type: LoginType;
|
|
login_url: string;
|
|
credentials: Credentials;
|
|
login_flow: string[];
|
|
success_condition: SuccessCondition;
|
|
}
|
|
|
|
export interface Config {
|
|
rules?: Rules;
|
|
authentication?: Authentication;
|
|
login?: unknown;
|
|
}
|
|
|
|
export interface DistributedConfig {
|
|
avoid: Rule[];
|
|
focus: Rule[];
|
|
authentication: Authentication | null;
|
|
}
|