Skip to content

Commit ea66af6

Browse files
claude[bot]claude
andauthored
chore(scan): remove scan command (#91)
Drop the `polylane scan` command and the scan_reports HTTP client it wrapped, along with its tests. Exclude the /scan_reports paths and the Scan Report schema in codegen so regenerating from the still-live spec does not reintroduce them. Claude-Session: https://claude.ai/code/session_011xFDGM6NBu3iivNKHJm9kD Co-authored-by: Claude <noreply@anthropic.com>
1 parent 2762e14 commit ea66af6

8 files changed

Lines changed: 4 additions & 990 deletions

File tree

‎codegen/parse-spec.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ import { schemaToTypescript, type TypeGenOptions } from './type-utils';
1010

1111
const CLIENT_OPTS: TypeGenOptions = { refPrefix: 'T.' };
1212

13-
// The automations feature is retired; drop its endpoints and schemas from the
14-
// generated client even while the API still serves them.
15-
const EXCLUDED_PATH = /\/automations(\/|$)/;
13+
// The automations and scan reports features are retired; drop their endpoints
14+
// and schemas from the generated client even while the API still serves them.
15+
const EXCLUDED_PATH = /\/(automations|scan_reports)(\/|$)/;
1616
const EXCLUDED_SCHEMAS = new Set([
1717
'Automation',
1818
'AutomationExecution',
1919
'AutomationNotification',
2020
'AutomationActionExecution',
2121
'TriggerAutomationBody',
2222
'CreateAutomationFromTemplateBody',
23+
'Scan Report',
2324
]);
2425

2526
export function parseSpec(spec: OpenAPISpec): ParsedSpec {

‎src/client/scan-reports.ts‎

Lines changed: 0 additions & 98 deletions
This file was deleted.

‎src/commands/index.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { registry } from '../registry';
22
import { authCommands } from './auth';
33
import { configCommands } from './config';
44
import { helpCommand } from './help';
5-
import { scanCommand } from './scan';
65
import { setupCommand } from './setup';
76
import { mapCommand } from './map';
87
import { updateCommand } from './update';
@@ -47,7 +46,6 @@ export function registerAllCommands(): void {
4746
...apiCommands,
4847
...telemetryCommands,
4948
helpCommand,
50-
scanCommand,
5149
setupCommand,
5250
mapCommand,
5351
updateCommand,

0 commit comments

Comments
 (0)