Skip to content

Commit 3965da1

Browse files
committed
feat(api): add BooleanCrossesNode implementation to CloudflareNodeRegistry and mock for testing
1 parent 7df7996 commit 3965da1

1 file changed

Lines changed: 97 additions & 92 deletions

File tree

apps/api/src/nodes/cloudflare-node-registry.ts

Lines changed: 97 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ import { BooleanPointOnLineNode } from "./geo/boolean-point-on-line-node";
132132
import { BooleanTouchesNode } from "./geo/boolean-touches-node";
133133
import { BooleanWithinNode } from "./geo/boolean-within-node";
134134
import { BooleanValidNode } from "./geo/boolean-valid-node";
135+
import { BooleanCrossesNode } from "./geo/boolean-crosses-node";
135136
import { CenterMeanNode } from "./geo/center-mean-node";
136137
import { CenterMedianNode } from "./geo/center-median-node";
137138
import { AreaNode } from "./geo/area-node";
@@ -342,98 +343,6 @@ export class CloudflareNodeRegistry extends BaseNodeRegistry {
342343
this.registerImplementation(ToMarkdownNode);
343344
this.registerImplementation(DocumentNode);
344345
this.registerImplementation(HttpRequestNode);
345-
this.registerImplementation(GeoJsonGeometryNode);
346-
this.registerImplementation(WktGeometryNode);
347-
this.registerImplementation(EnvelopeNode);
348-
this.registerImplementation(BufferNode);
349-
this.registerImplementation(CentroidNode);
350-
this.registerImplementation(AlongNode);
351-
this.registerImplementation(FeatureCollectionNode);
352-
this.registerImplementation(GeometryCollectionNode);
353-
this.registerImplementation(MultiLineStringNode);
354-
this.registerImplementation(MultiPointNode);
355-
this.registerImplementation(MultiPolygonNode);
356-
this.registerImplementation(BooleanClockwiseNode);
357-
this.registerImplementation(BooleanConcaveNode);
358-
this.registerImplementation(BooleanEqualNode);
359-
this.registerImplementation(BooleanIntersectsNode);
360-
this.registerImplementation(BooleanParallelNode);
361-
this.registerImplementation(BooleanPointOnLineNode);
362-
this.registerImplementation(BooleanTouchesNode);
363-
this.registerImplementation(BooleanWithinNode);
364-
this.registerImplementation(BooleanValidNode);
365-
this.registerImplementation(CenterMeanNode);
366-
this.registerImplementation(CenterMedianNode);
367-
this.registerImplementation(AreaNode);
368-
this.registerImplementation(BboxNode);
369-
this.registerImplementation(BboxPolygonNode);
370-
this.registerImplementation(BearingNode);
371-
this.registerImplementation(DistanceNode);
372-
this.registerImplementation(PointNode);
373-
this.registerImplementation(LengthNode);
374-
this.registerImplementation(CenterNode);
375-
this.registerImplementation(DestinationNode);
376-
this.registerImplementation(BooleanPointInPolygonNode);
377-
this.registerImplementation(CircleNode);
378-
this.registerImplementation(UnionNode);
379-
this.registerImplementation(IntersectNode);
380-
this.registerImplementation(LineStringNode);
381-
this.registerImplementation(MidpointNode);
382-
this.registerImplementation(PolygonNode);
383-
this.registerImplementation(SimplifyNode);
384-
this.registerImplementation(ConvexNode);
385-
this.registerImplementation(AngleNode);
386-
this.registerImplementation(NearestPointNode);
387-
this.registerImplementation(ExplodeNode);
388-
this.registerImplementation(FlipNode);
389-
this.registerImplementation(BooleanContainsNode);
390-
this.registerImplementation(TransformRotateNode);
391-
this.registerImplementation(CombineNode);
392-
this.registerImplementation(RhumbBearingNode);
393-
this.registerImplementation(RhumbDistanceNode);
394-
this.registerImplementation(TransformTranslateNode);
395-
this.registerImplementation(TransformScaleNode);
396-
this.registerImplementation(RhumbDestinationNode);
397-
this.registerImplementation(BooleanOverlapNode);
398-
this.registerImplementation(BooleanDisjointNode);
399-
this.registerImplementation(CenterOfMassNode);
400-
this.registerImplementation(DifferenceNode);
401-
this.registerImplementation(LineIntersectNode);
402-
this.registerImplementation(GreatCircleNode);
403-
this.registerImplementation(PointOnFeatureNode);
404-
this.registerImplementation(PointToLineDistanceNode);
405-
this.registerImplementation(PointToPolygonDistanceNode);
406-
this.registerImplementation(PolygonTangentsNode);
407-
this.registerImplementation(SquareNode);
408-
this.registerImplementation(CleanCoordsNode);
409-
this.registerImplementation(RewindNode);
410-
this.registerImplementation(RoundNode);
411-
this.registerImplementation(TruncateNode);
412-
this.registerImplementation(BboxClipNode);
413-
this.registerImplementation(ConcaveNode);
414-
this.registerImplementation(LineOffsetNode);
415-
this.registerImplementation(PolygonSmoothNode);
416-
this.registerImplementation(VoronoiNode);
417-
this.registerImplementation(FlattenNode);
418-
this.registerImplementation(LineToPolygonNode);
419-
this.registerImplementation(PolygonToLineNode);
420-
this.registerImplementation(PolygonizeNode);
421-
this.registerImplementation(KinksNode);
422-
this.registerImplementation(LineArcNode);
423-
this.registerImplementation(LineChunkNode);
424-
this.registerImplementation(LineIntersectNode);
425-
this.registerImplementation(LineOverlapNode);
426-
this.registerImplementation(LineSegmentNode);
427-
this.registerImplementation(LineSliceNode);
428-
this.registerImplementation(LineSliceAlongNode);
429-
this.registerImplementation(LineSplitNode);
430-
this.registerImplementation(MaskNode);
431-
this.registerImplementation(NearestPointOnLineNode);
432-
this.registerImplementation(SectorNode);
433-
this.registerImplementation(ShortestPathNode);
434-
this.registerImplementation(UnkinkPolygonNode);
435-
this.registerImplementation(FeatureNode);
436-
this.registerImplementation(FeatureCollectionNode);
437346

438347
// Conditional registrations based on environment
439348
if (hasCloudflare) {
@@ -463,9 +372,105 @@ export class CloudflareNodeRegistry extends BaseNodeRegistry {
463372
this.registerImplementation(SendEmailResendNode);
464373
}
465374

375+
// RAG nodes
466376
if (this.developerMode) {
467377
this.registerImplementation(RagAiSearchNode);
468378
this.registerImplementation(RagSearchNode);
469379
}
380+
381+
// Geo nodes
382+
if (this.developerMode) {
383+
this.registerImplementation(AlongNode);
384+
this.registerImplementation(AngleNode);
385+
this.registerImplementation(AreaNode);
386+
this.registerImplementation(BboxClipNode);
387+
this.registerImplementation(BboxNode);
388+
this.registerImplementation(BboxPolygonNode);
389+
this.registerImplementation(BearingNode);
390+
this.registerImplementation(BooleanClockwiseNode);
391+
this.registerImplementation(BooleanConcaveNode);
392+
this.registerImplementation(BooleanContainsNode);
393+
this.registerImplementation(BooleanCrossesNode);
394+
this.registerImplementation(BooleanDisjointNode);
395+
this.registerImplementation(BooleanEqualNode);
396+
this.registerImplementation(BooleanIntersectsNode);
397+
this.registerImplementation(BooleanOverlapNode);
398+
this.registerImplementation(BooleanParallelNode);
399+
this.registerImplementation(BooleanPointInPolygonNode);
400+
this.registerImplementation(BooleanPointOnLineNode);
401+
this.registerImplementation(BooleanTouchesNode);
402+
this.registerImplementation(BooleanValidNode);
403+
this.registerImplementation(BooleanWithinNode);
404+
this.registerImplementation(BufferNode);
405+
this.registerImplementation(CenterMeanNode);
406+
this.registerImplementation(CenterMedianNode);
407+
this.registerImplementation(CenterNode);
408+
this.registerImplementation(CenterOfMassNode);
409+
this.registerImplementation(CentroidNode);
410+
this.registerImplementation(CircleNode);
411+
this.registerImplementation(CleanCoordsNode);
412+
this.registerImplementation(CombineNode);
413+
this.registerImplementation(ConcaveNode);
414+
this.registerImplementation(ConvexNode);
415+
this.registerImplementation(DestinationNode);
416+
this.registerImplementation(DifferenceNode);
417+
this.registerImplementation(DistanceNode);
418+
this.registerImplementation(EnvelopeNode);
419+
this.registerImplementation(ExplodeNode);
420+
this.registerImplementation(FeatureCollectionNode);
421+
this.registerImplementation(FeatureNode);
422+
this.registerImplementation(FlattenNode);
423+
this.registerImplementation(FlipNode);
424+
this.registerImplementation(GeometryCollectionNode);
425+
this.registerImplementation(GeoJsonGeometryNode);
426+
this.registerImplementation(GreatCircleNode);
427+
this.registerImplementation(IntersectNode);
428+
this.registerImplementation(KinksNode);
429+
this.registerImplementation(LengthNode);
430+
this.registerImplementation(LineArcNode);
431+
this.registerImplementation(LineChunkNode);
432+
this.registerImplementation(LineIntersectNode);
433+
this.registerImplementation(LineOffsetNode);
434+
this.registerImplementation(LineOverlapNode);
435+
this.registerImplementation(LineSegmentNode);
436+
this.registerImplementation(LineSliceAlongNode);
437+
this.registerImplementation(LineSliceNode);
438+
this.registerImplementation(LineSplitNode);
439+
this.registerImplementation(LineStringNode);
440+
this.registerImplementation(LineToPolygonNode);
441+
this.registerImplementation(MaskNode);
442+
this.registerImplementation(MidpointNode);
443+
this.registerImplementation(MultiLineStringNode);
444+
this.registerImplementation(MultiPointNode);
445+
this.registerImplementation(MultiPolygonNode);
446+
this.registerImplementation(NearestPointNode);
447+
this.registerImplementation(NearestPointOnLineNode);
448+
this.registerImplementation(PointNode);
449+
this.registerImplementation(PointOnFeatureNode);
450+
this.registerImplementation(PointToLineDistanceNode);
451+
this.registerImplementation(PointToPolygonDistanceNode);
452+
this.registerImplementation(PolygonNode);
453+
this.registerImplementation(PolygonSmoothNode);
454+
this.registerImplementation(PolygonTangentsNode);
455+
this.registerImplementation(PolygonToLineNode);
456+
this.registerImplementation(PolygonizeNode);
457+
this.registerImplementation(RewindNode);
458+
this.registerImplementation(RhumbBearingNode);
459+
this.registerImplementation(RhumbDestinationNode);
460+
this.registerImplementation(RhumbDistanceNode);
461+
this.registerImplementation(RoundNode);
462+
this.registerImplementation(SectorNode);
463+
this.registerImplementation(ShortestPathNode);
464+
this.registerImplementation(SimplifyNode);
465+
this.registerImplementation(SquareNode);
466+
this.registerImplementation(TransformRotateNode);
467+
this.registerImplementation(TransformScaleNode);
468+
this.registerImplementation(TransformTranslateNode);
469+
this.registerImplementation(TruncateNode);
470+
this.registerImplementation(UnionNode);
471+
this.registerImplementation(UnkinkPolygonNode);
472+
this.registerImplementation(VoronoiNode);
473+
this.registerImplementation(WktGeometryNode);
474+
}
470475
}
471476
}

0 commit comments

Comments
 (0)