f8ca6ad746
BREAKING: Change polygon to keyword args ( #6385 )
...
* Change polygon to keyword args
* Update docs
* Update generated output
* Update docs to mention the default for inscribed
* Appease clippy
* Remove tag parameter
* Update docs since removing tag
* Remove inscribed from autocomplete snippet since the default is true
2025-04-21 18:29:32 +00:00
2900858171
Bump the minor group across 1 directory with 8 updates ( #6411 )
...
Bumps the minor group with 6 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [@csstools/postcss-oklab-function](https://github.com/csstools/postcss-plugins/tree/HEAD/plugins/postcss-oklab-function ) | `4.0.8` | `4.0.9` |
| [@playwright/test](https://github.com/microsoft/playwright ) | `1.51.1` | `1.52.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) | `22.14.0` | `22.14.1` |
| [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react ) | `4.3.4` | `4.4.1` |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint ) | `8.29.1` | `8.30.1` |
| [rollup](https://github.com/rollup/rollup ) | `4.39.0` | `4.40.0` |
Updates `@csstools/postcss-oklab-function` from 4.0.8 to 4.0.9
- [Changelog](https://github.com/csstools/postcss-plugins/blob/main/plugins/postcss-oklab-function/CHANGELOG.md )
- [Commits](https://github.com/csstools/postcss-plugins/commits/HEAD/plugins/postcss-oklab-function )
Updates `@playwright/test` from 1.51.1 to 1.52.0
- [Release notes](https://github.com/microsoft/playwright/releases )
- [Commits](https://github.com/microsoft/playwright/compare/v1.51.1...v1.52.0 )
Updates `@types/node` from 22.14.0 to 22.14.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Updates `@vitejs/plugin-react` from 4.3.4 to 4.4.1
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases )
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md )
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@4.4.1/packages/plugin-react )
Updates `typescript-eslint` from 8.29.1 to 8.30.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.30.1/packages/typescript-eslint )
Updates `rollup` from 4.39.0 to 4.40.0
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v4.39.0...v4.40.0 )
Updates `@typescript-eslint/eslint-plugin` from 8.29.1 to 8.30.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.30.1/packages/eslint-plugin )
Updates `@typescript-eslint/parser` from 8.29.1 to 8.30.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.30.1/packages/parser )
---
updated-dependencies:
- dependency-name: "@csstools/postcss-oklab-function"
dependency-version: 4.0.9
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: minor
- dependency-name: "@playwright/test"
dependency-version: 1.52.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: minor
- dependency-name: "@types/node"
dependency-version: 22.14.1
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: minor
- dependency-name: "@vitejs/plugin-react"
dependency-version: 4.4.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: minor
- dependency-name: typescript-eslint
dependency-version: 8.30.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: minor
- dependency-name: rollup
dependency-version: 4.40.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: minor
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-version: 8.30.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: minor
- dependency-name: "@typescript-eslint/parser"
dependency-version: 8.30.1
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-21 12:42:14 +00:00
790613e708
KCL: Convert bezierCurve to use keyword args ( #6381 )
2025-04-20 20:10:27 -05:00
90acc00369
Kwargs migration: arc/arcTo ( #6334 )
2025-04-18 17:40:44 -05:00
e4fe8a4440
Fix CSG commands to be included in the artifact graph ( #6391 )
...
* Fix CSG commands to be included in the artifact graph
* Update output
2025-04-18 22:35:17 +00:00
8c2c877817
Bump crossbeam-channel from 0.5.14 to 0.5.15 in /rust in the security group ( #6354 )
...
Bump crossbeam-channel in /rust in the security group
Bumps the security group in /rust with 1 update: [crossbeam-channel](https://github.com/crossbeam-rs/crossbeam ).
Updates `crossbeam-channel` from 0.5.14 to 0.5.15
- [Release notes](https://github.com/crossbeam-rs/crossbeam/releases )
- [Changelog](https://github.com/crossbeam-rs/crossbeam/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crossbeam-rs/crossbeam/compare/crossbeam-channel-0.5.14...crossbeam-channel-0.5.15 )
---
updated-dependencies:
- dependency-name: crossbeam-channel
dependency-version: 0.5.15
dependency-type: indirect
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-18 14:10:54 -04:00
bd4bad0020
allow sending async commands to engine ( #6342 )
...
* start of async
Signed-off-by: Jess Frazelle <github@jessfraz.com >
check at end if the async commands completed
Signed-off-by: Jess Frazelle <github@jessfraz.com >
run at the end of inner_run
Signed-off-by: Jess Frazelle <github@jessfraz.com >
set import as async
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add to the wasm side
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fire
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* flake
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixup for awaiting on import
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix mock
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix mock
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add a test where we import then do a bunch of other stuff
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixup to see
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixups
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cross platform time
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* another appearance tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* new docs and tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* dont loop so tight
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-17 17:22:19 -07:00
f9fbaa2298
Add files via upload ( #6227 )
...
* Add files via upload
Adding parametric pc fan and bottle
* Update and rename globals.kcl to parameters.kcl
* Update fan-housing.kcl
* Update fan-housing.kcl
* Update fan.kcl
* Update motor.kcl
* Update parameters.kcl
* Update kcl-samples simulation test output
* Update main.kcl
avoiding fn imports
* Update kcl-samples simulation test output
* remove functions
* angledLine kwargs
* tangentalArc kwargs
* Update kcl-samples simulation test output
* Update housing middle
more tweaks because I just can't help myself
* Update kcl-samples simulation test output
* Update kcl-samples simulation test output
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: jgomez720 <114548659+jgomez720@users.noreply.github.com >
2025-04-17 17:46:56 +00:00
3324835b72
ci: Fix so that just commands regenerate ast output ( #6338 )
...
* Fix so that just commands regenerate ast output
* Update just command to include manifest
* Fix overwrite-sim-test kcl_samples to generate manifest
This is the command used in CI.
2025-04-17 06:03:58 +00:00
be119248a6
put execution benchmarks behind flag ( #6364 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-16 21:23:30 -07:00
d9fe78171f
parallelized modules from kcl ( #6206 )
...
* wip
* sketch a bit more; going to pull this out of tests next
* wip
* lock start things
* this was a bad idea
* Revert "this was a bad idea"
This reverts commit a2092e7ed6
.
* prepare prelude before spawning
* error
* poop
* yike
* :(
* ok
* Reapply "this was a bad idea"
This reverts commit fafdf41093
.
* chip away more
* man this is bad
* fix rebase add feature flag
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* get rid of execution kind
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* clippy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* logs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* no extra executes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* race w batch
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cluppy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* no printlns
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* no printlns
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix source ranges
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* batch shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix some bugs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix error
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* cut 1
* preserve mem
* re-ad deep_clone
the helper we were calling was pushing a new call, which was hanging
out. we can skip the middleman since we already have something properly
prepared, just without a stdlib in some cases.
* skip non-kcl
* clean up source range bug
* error message changed
the uuids also changed because the error is hit before execute even
starts.
* typo
* rensnapshot a few
* order things
* MAYBE REVERT LATER:
attempt at an ordering
* snapsnap
* Revert "snapsnap"
This reverts commit 7350b32c7d
.
* Revert "MAYBE REVERT LATER:"
This reverts commit ab49f3e85f
.
* ugh
* poop
* poop2
* lint
* tranche 1
* more
* more snaps
* snap
* more
* update
* MAYBE REVERT THIS
* cache multi-file
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* addd tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* set to false
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add test outputs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* clippy
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* kcl-py-bindings uses carwheel
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* update snapshots
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Paul R. Tagliamonte <paul@zoo.dev >
Co-authored-by: Paul Tagliamonte <paultag@gmail.com >
2025-04-16 11:52:14 -07:00
5586646a60
Fix insta version in Cargo.toml to match lock file ( #6348 )
...
Cargo decided to downgrade `windows-sys` for some reason.
2025-04-16 17:50:39 +00:00
e955e783f4
KCL: Error when user sets a keyword arg multiple times ( #6339 )
...
Previously, KCL would silently ignore any duplicated keyword args, setting the parameter to one arbitrarily-chosen argument. Now this is instead a parse error.
I've tested that
1. The error message makes sense
2. The error is on a reasonable part of the source code
3. The error doesn't prevent other kinds of parse errors being picked up later
Thanks for noticing this one Frank!
2025-04-16 11:18:45 -05:00
f5e3b4bbe7
Update helix snapshots ( #6340 )
...
Engine fixed a bug where helices were starting at the wrong position. Requires updating the snapshots.
2025-04-15 17:15:37 -05:00
941911ed30
docs: Fix syntax error and deprecated string planes in types.md ( #6332 )
2025-04-15 17:42:24 +00:00
a847c7f608
Release KCL 62 ( #6330 )
2025-04-15 15:53:01 +00:00
d9be308c36
~Maybe~ (Lee: ABSOLUTELY) use biome ( #6327 )
...
* maybe use biome
* import organising
* Removed unused new fmt commands; fix to not use linter
* Don't use fmt:generated - fmt is fast, but also use Makefile for this sort of thing
---------
Co-authored-by: lee-at-zoo-corp <lee@zoo.dev >
2025-04-15 10:11:25 -04:00
7fce38b212
KCL: angledLineThatIntersects migrate to kwargs ( #6296 )
...
* KCL: Convert angledLineThatIntersects to use kwargs
* Update KCL tests and samples
* WIP
* Fix tsc and lint errors
* Fix missing cases
* Fix modifyAst unit tests
* Fix sketch unit tests
* Fix std unit tests
* Fix to not have extra docs
* Fix more unit tests
* Fix bench test
* Fix e2e tests to use new kw args
* tiny lint
* Fix adding constraint from UI to work
* Fix to use labeledArg constraints and use the correct order of args
* Fix selections e2e test
* Fix e2e test expectation
App was working as expected, but the e2e test was
expecting the old code, not the new code.
* Fix order of constraints in unit test
* Update docs
* Fix KCL formatting
* Update output
---------
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
2025-04-15 02:06:55 +00:00
d0e9b111af
#5339 Add tangent snapping to straight segment tool ( #5995 )
...
* first draft of making segment snap to previous arc's last tangent
* ability to force/disable line snap, threshold in screen space
* mouseEvent refactor tsc errors fixed
* cleanups, extract getTanPreviousPoint function
* add snap line support when previous segment is ARC
* small cleanups
* remove unused planeNodePath param from onDragSegment
* renaming
* Enable snapping when placing the segment point in onClick
* refactor getSnappedDragPoint to include axis intersection
* handle snapping to both axis and tangent direction
* snap refinements
* small cleanups
* lint
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* A snapshot a day keeps the bugs away! 📷 🐛
* generate tag for previous arc when snapping current straight segment
* using previous arc's tag in snapped angledLine
* angledLine uses object instead of array now
* use more general snap object instead
* snap tangent line visualized when snapping occurs
* remove unused scale param from createLine
* prettier
* fix bug where segment body is not drawn
* fix generated kcl error introduced in merge from main - modifiedAst needs to be passed to addNewSketchLn
* add support for snapping to negative tangent direction
* fix findTangentDirection for THREE_POINT_ARC_SEGMENT
* fix tsc error by introducing overrideExpr
* fix missing ccw for 3 point arc, fix tan_previous_point calculation for 3 point arcs
* resolve clippy until confirmation for circle radius
* fix runtime error when drawing a 3 point arc
* add unit tests to closestPointoOnRay
* unrelated react warning fixed
* add playwright test for tangent snapping
* better fix for tan_previous_point
* fix lint
* add simulation test for tangent_to_3_point_arc
* Fix simulation test output
* Add missing simulation test output files
* fix tangent snapping bug: use current group instead of last group in activeSegments
* make testcombos.test happy
* cleanup merge
* fix merge mistake, tsc error
* update tangent_to_3_point_arc simulation test
* fix angledLine related breaking tests
* minimum distance added before snapping to tangent
* circle is always ccw regardless of the order of points for tangential info calculation
* fix snapping when different unit is used other than mm
* update test: Straight line snapping to previous tangent
* update rust snapshot test
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Frank Noirot <frank@zoo.dev >
Co-authored-by: Jonathan Tran <jonnytran@gmail.com >
2025-04-14 23:51:14 +02:00
6c7e42b541
Bump the patch group in /rust with 8 updates ( #6312 )
...
Bumps the patch group in /rust with 8 updates:
| Package | From | To |
| --- | --- | --- |
| [anyhow](https://github.com/dtolnay/anyhow ) | `1.0.97` | `1.0.98` |
| [clap](https://github.com/clap-rs/clap ) | `4.5.32` | `4.5.36` |
| [kittycad-modeling-cmds](https://github.com/KittyCAD/modeling-api ) | `0.2.113` | `0.2.114` |
| [once_cell](https://github.com/matklad/once_cell ) | `1.21.1` | `1.21.3` |
| [log](https://github.com/rust-lang/log ) | `0.4.26` | `0.4.27` |
| [flate2](https://github.com/rust-lang/flate2-rs ) | `1.1.0` | `1.1.1` |
| [time](https://github.com/time-rs/time ) | `0.3.40` | `0.3.41` |
| [image](https://github.com/image-rs/image ) | `0.25.5` | `0.25.6` |
Updates `anyhow` from 1.0.97 to 1.0.98
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.97...1.0.98 )
Updates `clap` from 4.5.32 to 4.5.36
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.32...clap_complete-v4.5.36 )
Updates `kittycad-modeling-cmds` from 0.2.113 to 0.2.114
- [Commits](https://github.com/KittyCAD/modeling-api/compare/kittycad-modeling-cmds-0.2.113...kittycad-modeling-cmds-0.2.114 )
Updates `once_cell` from 1.21.1 to 1.21.3
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md )
- [Commits](https://github.com/matklad/once_cell/compare/v1.21.1...v1.21.3 )
Updates `log` from 0.4.26 to 0.4.27
- [Release notes](https://github.com/rust-lang/log/releases )
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/log/compare/0.4.26...0.4.27 )
Updates `flate2` from 1.1.0 to 1.1.1
- [Release notes](https://github.com/rust-lang/flate2-rs/releases )
- [Commits](https://github.com/rust-lang/flate2-rs/compare/1.1.0...1.1.1 )
Updates `time` from 0.3.40 to 0.3.41
- [Release notes](https://github.com/time-rs/time/releases )
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md )
- [Commits](https://github.com/time-rs/time/compare/v0.3.40...v0.3.41 )
Updates `image` from 0.25.5 to 0.25.6
- [Changelog](https://github.com/image-rs/image/blob/main/CHANGES.md )
- [Commits](https://github.com/image-rs/image/compare/v0.25.5...v0.25.6 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-version: 1.0.98
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: clap
dependency-version: 4.5.36
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: kittycad-modeling-cmds
dependency-version: 0.2.114
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: once_cell
dependency-version: 1.21.3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: log
dependency-version: 0.4.27
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: flate2
dependency-version: 1.1.1
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: time
dependency-version: 0.3.41
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: image
dependency-version: 0.25.6
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-14 09:48:43 -07:00
160f55ede5
BREAKING: More units of measure work and keyword args ( #6291 )
...
* More units of measure work
Signed-off-by: Nick Cameron <nrc@ncameron.org >
* Update CSG output since engine change
---------
Signed-off-by: Nick Cameron <nrc@ncameron.org >
Co-authored-by: Nick Cameron <nrc@ncameron.org >
2025-04-14 09:58:19 +00:00
7d7b153085
Add START and END constants to std ( #6270 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-14 20:37:45 +12:00
167445ef8a
WIP: migrate from yarn v1 to npm ( #6274 )
...
* WIP: migrate from yarn v1 to npm
* Add tsc mapping script
* More fixes
* Add playwright as script
* Fix more
* more and more people just want more
* Merge branch 'main' into pierremtb/adhoc/npm
* use workspaces and fix circular deps
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* New machine-api types
* better lock file
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* ignore typos in machine-api generated files
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* install from root
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix tsc
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* New machine-api types
* bettter install
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* bettter install
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* bettter install
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* bettter install
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* bettter install
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add comment
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* add comment
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
Co-authored-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-12 02:49:49 +00:00
95b72d839b
coerce [single, HomArray[single]] into flattened HomArray ( #6299 )
...
* dont prompt for message in git tag
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more tests
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-11 22:06:12 -04:00
eea026f8e0
dont prompt for message in git tag ( #6293 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-11 17:33:17 -04:00
9e1f1152e3
Involute curve for sketch ( #6258 )
...
* WIP: Involute circles in KCL
* first pass involute end calculation
* fmt
* cleanup
* involute snapshot
* actually update markdown
* remove debug build stuff
* spacing
---------
Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev >
2025-04-11 21:59:11 +01:00
60d2be9ff2
Fix angledLine error messages to recommend the right keyword args ( #6290 )
...
* Fix angledLine error messages to recommend the right keyword args
* Update generated docs
2025-04-11 20:03:57 +00:00
0f59894d66
Hide sweep artifacts after automatically ( #6287 )
...
* automatically hide the trajectory sketch agter a sweep
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* more samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-11 15:53:53 -04:00
74c07fc0eb
Update onboarding bracket to be robust ( #6099 )
...
* update onboarding bracket to be robust
* update onboarding bracket with bends
* checking if asserts causing parse failure
* fun fact, it was not the asserts
* fix bracket loading
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Pierre Jacquier <pierrejacquier39@gmail.com >
Co-authored-by: Jess Frazelle <github@jessfraz.com >
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
2025-04-11 19:27:29 +00:00
67a8bf525d
bump kcl friends ( #6288 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-11 19:10:37 +00:00
319c60d4fa
BREAKING: Change tangential arc to keyword args ( #6266 )
...
* Change tangentialArc, tangentialArcTo, and tangentialArcToRelative to keyword args
* Change tangentialArc offset to angle and convert to kw arg calls
* Fix lints
* Fix sketch errors and all unit tests passing
* Fix tangentialArcTo calls in KCL samples
* Update tangentialArc in samples
* Update sim test output
* Fix formatting
* Fix mistake in merge
* Fix gear rack sample
* Update output after more samples fixes
* Update gear rack output
* Add end label to docs snippet
* Fix to not add endAbsolute for an arc with radius or angle arguments
* Update docs outputs
* Fix formatting
* Fix executor tests
* Fix formatting
* Fix bench input files
* Fix spelling
* Improve error messages
---------
Co-authored-by: Adam Chalmers <adam.chalmers@zoo.dev >
2025-04-11 14:17:20 -04:00
8b14d32879
Bump the security group in /rust with 2 updates ( #6212 )
...
Bumps the security group in /rust with 2 updates: [pyo3](https://github.com/pyo3/pyo3 ) and [tokio](https://github.com/tokio-rs/tokio ).
Updates `pyo3` from 0.24.0 to 0.24.1
- [Release notes](https://github.com/pyo3/pyo3/releases )
- [Changelog](https://github.com/PyO3/pyo3/blob/v0.24.1/CHANGELOG.md )
- [Commits](https://github.com/pyo3/pyo3/compare/v0.24.0...v0.24.1 )
Updates `tokio` from 1.44.1 to 1.44.2
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.44.1...tokio-1.44.2 )
---
updated-dependencies:
- dependency-name: pyo3
dependency-version: 0.24.1
dependency-type: direct:production
dependency-group: security
- dependency-name: tokio
dependency-version: 1.44.2
dependency-type: direct:production
dependency-group: security
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-11 16:12:53 +00:00
1f6b90d383
#6182 Improve calculate_circle_center ( #6192 )
...
* add tests for calculate_circle_center - the first one succeeds with the current impl
* fix calculate_circle_center
* comment cleanup
* clippy
* comment format
* update circle_three_point sim test snapshot for slight floating point changes introduced by calculate_circle_center refactor
* use TAU instead of 2 * PI
* clippy
2025-04-11 12:43:18 +02:00
c45c2e27ba
make sure the nix flake never breaks ( #6273 )
...
make sure teh nix flake never breaks
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-11 06:27:42 +00:00
5832890dbb
Add CSG operations to the artifact graph ( #6104 )
...
* Add CSG operations to the artifact graph
* Add tool IDs for subtract
* Fix names to match modeling-cmds now that it's done
* Update output since adding CSG ops
* Update formatting
* Add extra solid ids to the graph
* Fix to not add duplicates to the graph
2025-04-11 05:16:29 +00:00
0d899694b2
Remove experimental warning on whole-module imports ( #6240 )
2025-04-11 04:22:51 +00:00
7bd5e7365d
Insert a newline between block comments and attributes ( #6250 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com >
2025-04-11 03:19:52 +00:00
a63e51e2ad
Remove import function from std ( #6241 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-11 03:11:59 +00:00
1b8eee86a1
Fix vscode lsp bugs ( #6271 )
...
* start of shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* untitled test
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-11 12:53:05 +10:00
6d50278d34
bump kcl friends ( #6272 )
...
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-10 19:01:30 -07:00
35844842de
Bump modeling api & pull thru csg endpoints ( #6245 )
...
* csg-upts
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* base
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* do the id shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* tried to run
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* csg-upts
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* use bens samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* use bens samples
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* gen std
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* gen std
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix;
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-10 18:30:57 -07:00
d33d399c31
Repetitive structs removed for import file extensions ( #6211 )
...
* get rid of repetitive structs
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fmt
Signed-off-by: Jess Frazelle <github@jessfraz.com >
get rid of more
Signed-off-by: Jess Frazelle <github@jessfraz.com >
add more
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
await the shit
Signed-off-by: Jess Frazelle <github@jessfraz.com >
updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
put it at the root
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix;es
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fixes
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* fix
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* kcl-language-server flake
Signed-off-by: Jess Frazelle <github@jessfraz.com >
* updates
Signed-off-by: Jess Frazelle <github@jessfraz.com >
---------
Signed-off-by: Jess Frazelle <github@jessfraz.com >
2025-04-10 13:57:12 -07:00
d125efcd60
Bidirectional extrude/revolve ( #6154 )
...
* extend extrude endpoint
* revolve and mocks
* add bounds check to revolve
* kcl examples of new args
* update to 110
* fix mock
* move example to prelude
* change to camelCase
* new prelude tests
* extend just file
* missed change
* change to XY
* redo sim tests
* review changes
* redo markdown
2025-04-10 10:46:10 -04:00
0c6b6bf5d5
Fix bad merge with some KCL snapshots ( #6239 )
...
Caused by admin merge in #5803
2025-04-09 16:43:56 -04:00
d275995dfe
KCL: Angled line should use keyword args ( #5803 )
...
We continue migrating KCL stdlib functions to use keyword arguments. Next up is the `angledLine` family of functions (except `angledLineThatIntersects, which will be a quick follow-up).
Before vs. after:
`angledLine({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, length = 3, tag = $edge)`
`angledLineOfXLength({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, lengthX = 3, tag = $edge)`
`angledLineOfYLength({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, lengthY = 3, tag = $edge)`
`angledLineToX({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, endAbsoluteX = 3, tag = $edge)`
`angledLineToY({angle = 90, length = 3}, %, $edge)`
=> `angledLine(angle = 90, endAbsoluteY = 3, tag = $edge)`
2025-04-09 14:55:15 -05:00
b03ca30379
Cleanup spatula example. ( #6232 )
...
* Cleanup spatula example. Naming better variables and removing unused tags
* Update kcl-samples simulation test output
* remove unused tag
* fix spacing
* Update kcl-samples simulation test output
* cleanup comments
* Update kcl-samples simulation test output
* re-add spacing
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Greg Sweeney <greg@kittycad.io >
Co-authored-by: jgomez720 <114548659+jgomez720@users.noreply.github.com >
2025-04-09 15:21:05 -04:00
ae9d8be4e4
Don't apply numeric adjustments in arithmetic yet ( #6222 )
...
Don't apply numeric adjustments yet
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-09 14:16:58 +12:00
a31fd608cf
Improve hovers for KCL std lib fns ( #6208 )
...
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-09 12:15:12 +12:00
997f539a8c
More numeric type propagations ( #6221 )
...
Last few numeric type propagations
Signed-off-by: Nick Cameron <nrc@ncameron.org >
2025-04-09 11:46:54 +12:00
c3097aa334
fix missing extension ( #6205 )
...
* fix missing extension
* fix e2e
* better name
2025-04-08 15:41:48 +00:00