Skip to content

Conversation

seveibar
Copy link
Contributor

@seveibar seveibar commented Oct 3, 2025

Summary

  • refactor the platform configuration to use a spice engine map instead of a single engine entry
  • add an analog simulation component definition that defaults to spice transient analysis
  • update and extend tests and documentation to cover the new configuration and component

Testing

  • bun test tests/spiceEngine.test.ts
  • bun test tests/analogsimulation.test.ts
  • bunx tsc --noEmit

https://chatgpt.com/codex/tasks/task_b_68e04c473808832e92bf544965a522b8

Comment on lines +1 to +16
import { expectTypesMatch } from "lib/typecheck"
import { z } from "zod"

export interface AnalogSimulationProps {
simulationType?: "spice_transient_analysis"
}

export const analogSimulationProps = z.object({
simulationType: z
.literal("spice_transient_analysis")
.default("spice_transient_analysis"),
})

expectTypesMatch<AnalogSimulationProps, z.input<typeof analogSimulationProps>>(
true,
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file name 'analogsimulation.ts' violates the file naming convention rule. File names should be consistent with the project and generally use kebab-case. This file should be renamed to 'analog-simulation.ts' to follow the kebab-case convention. The export name 'AnalogSimulationProps' suggests the file should use kebab-case separation between 'analog' and 'simulation'.

Spotted by Diamond (based on custom rule: Custom rule)

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

This comment came from an experimental review—please leave feedback if it was helpful/unhelpful. Learn more about experimental comments here.

@seveibar seveibar merged commit 0242e65 into main Oct 3, 2025
5 checks passed
@seveibar seveibar deleted the codex/refactor-spiceengine-to-spiceenginemap branch October 3, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant