@pascal-app/core 1.0.7 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-operations/__fixtures__/cases.d.ts +3 -2
- package/dist/agent-operations/__fixtures__/cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/native-materials.d.ts +4 -0
- package/dist/agent-operations/__fixtures__/native-materials.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/place-items-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/place-items-cases.js +28 -0
- package/dist/agent-operations/__fixtures__/roof-bearing-cases.d.ts +9567 -9563
- package/dist/agent-operations/__fixtures__/roof-bearing-cases.d.ts.map +1 -1
- package/dist/agent-operations/__fixtures__/verify-scene-cases.d.ts +77 -77
- package/dist/agent-operations/asset-catalog.d.ts +21 -11
- package/dist/agent-operations/asset-catalog.d.ts.map +1 -1
- package/dist/agent-operations/asset-catalog.js +28 -10
- package/dist/agent-operations/asset-views.d.ts +8 -3
- package/dist/agent-operations/asset-views.d.ts.map +1 -1
- package/dist/agent-operations/asset-views.js +19 -3
- package/dist/agent-operations/author-scene.d.ts.map +1 -1
- package/dist/agent-operations/author-scene.js +2 -3
- package/dist/agent-operations/batch.d.ts +7 -1
- package/dist/agent-operations/batch.d.ts.map +1 -1
- package/dist/agent-operations/batch.js +17 -2
- package/dist/agent-operations/catalog-asset.d.ts +15 -0
- package/dist/agent-operations/catalog-asset.d.ts.map +1 -0
- package/dist/agent-operations/catalog-asset.js +4 -0
- package/dist/agent-operations/circulation-spaces.d.ts +1724 -1723
- package/dist/agent-operations/circulation-spaces.d.ts.map +1 -1
- package/dist/agent-operations/design-brief.d.ts.map +1 -1
- package/dist/agent-operations/design-brief.js +2 -0
- package/dist/agent-operations/furnish-room.d.ts.map +1 -1
- package/dist/agent-operations/furnish-room.js +2 -1
- package/dist/agent-operations/index.d.ts +3 -0
- package/dist/agent-operations/index.d.ts.map +1 -1
- package/dist/agent-operations/index.js +4 -1
- package/dist/agent-operations/level-reads.d.ts.map +1 -1
- package/dist/agent-operations/level-reads.js +5 -2
- package/dist/agent-operations/move-plan.d.ts.map +1 -1
- package/dist/agent-operations/move-plan.js +11 -9
- package/dist/agent-operations/place-in-room.d.ts.map +1 -1
- package/dist/agent-operations/place-in-room.js +2 -1
- package/dist/agent-operations/place-items.d.ts.map +1 -1
- package/dist/agent-operations/place-items.js +2 -1
- package/dist/agent-operations/scene-queries.d.ts +2944 -2943
- package/dist/agent-operations/scene-queries.d.ts.map +1 -1
- package/dist/agent-operations/scene-view.d.ts.map +1 -1
- package/dist/agent-operations/scene-view.js +38 -13
- package/dist/agent-operations/search-assets.d.ts.map +1 -1
- package/dist/agent-operations/search-assets.js +6 -0
- package/dist/agent-operations/types.d.ts +3 -2
- package/dist/agent-operations/types.d.ts.map +1 -1
- package/dist/agent-operations/usage-checks.js +18 -3
- package/dist/agent-operations/verify-scene.d.ts.map +1 -1
- package/dist/agent-operations/verify-scene.js +4 -2
- package/dist/agent-operations/wall-object-observations.d.ts.map +1 -1
- package/dist/agent-operations/wall-object-observations.js +1 -1
- package/dist/agent-tools/assets.js +1 -1
- package/dist/agent-tools/wall-openings.js +2 -2
- package/dist/building/__fixtures__/wall-opening-cases.d.ts +13 -12
- package/dist/building/__fixtures__/wall-opening-cases.d.ts.map +1 -1
- package/dist/building/level-duplication.d.ts +1281 -1279
- package/dist/building/level-duplication.d.ts.map +1 -1
- package/dist/building/level-duplication.js +3 -1
- package/dist/building/merge-windows.d.ts.map +1 -1
- package/dist/building/merge-windows.js +4 -3
- package/dist/building/wall-openings.d.ts +95 -81
- package/dist/building/wall-openings.d.ts.map +1 -1
- package/dist/building/wall-openings.js +74 -25
- package/dist/commands/structure/shared.d.ts +3203 -3202
- package/dist/commands/structure/shared.d.ts.map +1 -1
- package/dist/commands/structure/zone-wall-merge.d.ts +2028 -2025
- package/dist/commands/structure/zone-wall-merge.d.ts.map +1 -1
- package/dist/contracts/reference-inventory.d.ts.map +1 -1
- package/dist/contracts/reference-inventory.js +0 -1
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts +6 -1
- package/dist/hooks/spatial-grid/spatial-grid-manager.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-manager.js +30 -9
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts +2101 -2100
- package/dist/hooks/spatial-grid/spatial-grid-sync.d.ts.map +1 -1
- package/dist/hooks/spatial-grid/spatial-grid-sync.js +8 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -4
- package/dist/lib/__fixtures__/mezzanine.d.ts +6428 -6424
- package/dist/lib/__fixtures__/mezzanine.d.ts.map +1 -1
- package/dist/lib/absorb-wall-separators.d.ts +2267 -2266
- package/dist/lib/absorb-wall-separators.d.ts.map +1 -1
- package/dist/lib/asset-storage.d.ts.map +1 -1
- package/dist/lib/asset-storage.js +3 -0
- package/dist/lib/build-mode.d.ts +11 -0
- package/dist/lib/build-mode.d.ts.map +1 -0
- package/dist/lib/build-mode.js +24 -0
- package/dist/lib/corner-pair.d.ts +2 -0
- package/dist/lib/corner-pair.d.ts.map +1 -1
- package/dist/lib/door-interaction.d.ts +14 -0
- package/dist/lib/door-interaction.d.ts.map +1 -0
- package/dist/lib/door-interaction.js +62 -0
- package/dist/lib/elevator-support.d.ts +15 -0
- package/dist/lib/elevator-support.d.ts.map +1 -0
- package/dist/lib/elevator-support.js +40 -0
- package/dist/lib/floor-foundation-datum.d.ts.map +1 -1
- package/dist/lib/floor-foundation-datum.js +5 -1
- package/dist/lib/floor-intent-changes.d.ts.map +1 -1
- package/dist/lib/floor-intent-changes.js +6 -4
- package/dist/lib/floorplan/context.d.ts +95 -0
- package/dist/lib/floorplan/context.d.ts.map +1 -0
- package/dist/lib/floorplan/context.js +155 -0
- package/dist/lib/floorplan/index.d.ts +6 -0
- package/dist/lib/floorplan/index.d.ts.map +1 -0
- package/dist/lib/floorplan/index.js +5 -0
- package/dist/lib/floorplan/marks.d.ts +71 -0
- package/dist/lib/floorplan/marks.d.ts.map +1 -0
- package/dist/lib/floorplan/marks.js +157 -0
- package/dist/lib/floorplan/plan-math.d.ts +18 -0
- package/dist/lib/floorplan/plan-math.d.ts.map +1 -0
- package/dist/lib/floorplan/plan-math.js +82 -0
- package/dist/lib/floorplan/svg-paths.d.ts +17 -0
- package/dist/lib/floorplan/svg-paths.d.ts.map +1 -0
- package/dist/lib/floorplan/svg-paths.js +92 -0
- package/dist/lib/floorplan/wall-affordances.d.ts +31 -0
- package/dist/lib/floorplan/wall-affordances.d.ts.map +1 -0
- package/dist/lib/floorplan/wall-affordances.js +24 -0
- package/dist/lib/hierarchy.d.ts +19 -0
- package/dist/lib/hierarchy.d.ts.map +1 -0
- package/dist/lib/hierarchy.js +53 -0
- package/dist/lib/opening-floor-datum.d.ts +1 -1
- package/dist/lib/opening-floor-datum.d.ts.map +1 -1
- package/dist/lib/opening-floor-datum.js +2 -2
- package/dist/lib/own-floor-intent.d.ts.map +1 -1
- package/dist/lib/own-floor-intent.js +2 -2
- package/dist/lib/polygon-boolean.d.ts.map +1 -1
- package/dist/lib/polygon-boolean.js +2 -1
- package/dist/lib/room-floor-elevation.d.ts +12 -0
- package/dist/lib/room-floor-elevation.d.ts.map +1 -0
- package/dist/lib/room-floor-elevation.js +41 -0
- package/dist/lib/room-floor-feasibility.d.ts.map +1 -1
- package/dist/lib/room-floor-feasibility.js +1 -1
- package/dist/lib/space-detection.d.ts.map +1 -1
- package/dist/lib/space-detection.js +1 -0
- package/dist/lib/wall-face-script.d.ts.map +1 -1
- package/dist/lib/wall-face-script.js +3 -3
- package/dist/lib/window-interaction.d.ts +16 -0
- package/dist/lib/window-interaction.d.ts.map +1 -0
- package/dist/lib/window-interaction.js +82 -0
- package/dist/lib/zone-quantities.js +1 -1
- package/dist/node-slots/column.d.ts +5 -0
- package/dist/node-slots/column.d.ts.map +1 -1
- package/dist/node-slots/column.js +10 -0
- package/dist/registry/__fixtures__/roof-planes.d.ts +69 -0
- package/dist/registry/__fixtures__/roof-planes.d.ts.map +1 -0
- package/dist/registry/__fixtures__/roof-planes.js +59 -0
- package/dist/registry/index.d.ts +3 -2
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/registry/index.js +2 -1
- package/dist/registry/registry.d.ts +5 -0
- package/dist/registry/registry.d.ts.map +1 -1
- package/dist/registry/registry.js +10 -0
- package/dist/registry/roofs.d.ts +34 -0
- package/dist/registry/roofs.d.ts.map +1 -0
- package/dist/registry/roofs.js +61 -0
- package/dist/registry/types.d.ts +54 -0
- package/dist/registry/types.d.ts.map +1 -1
- package/dist/registry/validate-relations.d.ts +5 -1
- package/dist/registry/validate-relations.d.ts.map +1 -1
- package/dist/registry/validate-relations.js +6 -2
- package/dist/schema/asset-url.d.ts +8 -0
- package/dist/schema/asset-url.d.ts.map +1 -1
- package/dist/schema/asset-url.js +17 -0
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/nodes/roof-segment-resize.d.ts.map +1 -1
- package/dist/schema/nodes/roof-segment-resize.js +2 -2
- package/dist/schema/nodes/roof-segment.d.ts +2 -0
- package/dist/schema/nodes/roof-segment.d.ts.map +1 -1
- package/dist/schema/nodes/roof-segment.js +40 -2
- package/dist/schema/nodes/roof.d.ts +1 -1
- package/dist/schema/nodes/roof.d.ts.map +1 -1
- package/dist/schema/nodes/roof.js +13 -8
- package/dist/schema/nodes/wall.d.ts +1 -0
- package/dist/schema/nodes/wall.d.ts.map +1 -1
- package/dist/schema/nodes/wall.js +6 -0
- package/dist/schema/types.d.ts +2 -1
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/movement.d.ts +7 -0
- package/dist/services/movement.d.ts.map +1 -1
- package/dist/services/movement.js +13 -0
- package/dist/services/port-connectivity.d.ts +15 -6
- package/dist/services/port-connectivity.d.ts.map +1 -1
- package/dist/services/port-connectivity.js +83 -17
- package/dist/services/roof-bearing.js +2 -1
- package/dist/services/roof-level.d.ts.map +1 -1
- package/dist/services/roof-level.js +12 -2
- package/dist/services/roof-move.d.ts +4 -2
- package/dist/services/roof-move.d.ts.map +1 -1
- package/dist/services/roof-move.js +21 -9
- package/dist/services/storey.d.ts +6 -1
- package/dist/services/storey.d.ts.map +1 -1
- package/dist/services/storey.js +11 -2
- package/dist/spatial/usage-field/findings.d.ts +7 -1
- package/dist/spatial/usage-field/findings.d.ts.map +1 -1
- package/dist/spatial/usage-field/findings.js +42 -10
- package/dist/spatial/usage-field/path.d.ts.map +1 -1
- package/dist/spatial/usage-field/path.js +28 -18
- package/dist/spatial/usage-field/swings.d.ts +1 -0
- package/dist/spatial/usage-field/swings.d.ts.map +1 -1
- package/dist/spatial/usage-field/walls.d.ts +2 -0
- package/dist/spatial/usage-field/walls.d.ts.map +1 -1
- package/dist/spatial/usage-field/walls.js +18 -4
- package/dist/store/actions/node-actions.d.ts +2 -1
- package/dist/store/actions/node-actions.d.ts.map +1 -1
- package/dist/store/actions/node-actions.js +23 -5
- package/dist/store/derived-node-guard.d.ts.map +1 -1
- package/dist/store/derived-node-guard.js +2 -1
- package/dist/store/scene-annotations.d.ts +4634 -4632
- package/dist/store/scene-annotations.d.ts.map +1 -1
- package/dist/systems/document-reconcile.d.ts.map +1 -1
- package/dist/systems/document-reconcile.js +1 -2
- package/dist/systems/elevator/elevator-geometry.d.ts +25 -0
- package/dist/systems/elevator/elevator-geometry.d.ts.map +1 -1
- package/dist/systems/elevator/elevator-geometry.js +40 -8
- package/dist/systems/elevator/elevator-opening-sync.d.ts.map +1 -1
- package/dist/systems/elevator/elevator-opening-sync.js +4 -35
- package/dist/systems/elevator/elevator-runtime.d.ts.map +1 -1
- package/dist/systems/elevator/elevator-runtime.js +95 -18
- package/dist/systems/elevator/elevator-service.d.ts.map +1 -1
- package/dist/systems/elevator/elevator-service.js +24 -4
- package/dist/systems/roof/roof-elevation.d.ts +11 -6
- package/dist/systems/roof/roof-elevation.d.ts.map +1 -1
- package/dist/systems/roof/roof-elevation.js +26 -12
- package/dist/systems/slab/__fixtures__/floor-step.d.ts +5 -1
- package/dist/systems/slab/__fixtures__/floor-step.d.ts.map +1 -1
- package/dist/systems/slab/__fixtures__/raised-room.d.ts +2218 -2214
- package/dist/systems/slab/__fixtures__/raised-room.d.ts.map +1 -1
- package/dist/systems/stair/stair-opening-preview.d.ts +3203 -3202
- package/dist/systems/stair/stair-opening-preview.d.ts.map +1 -1
- package/dist/systems/wall/wall-curve.d.ts +10 -0
- package/dist/systems/wall/wall-curve.d.ts.map +1 -1
- package/dist/systems/wall/wall-curve.js +38 -0
- package/dist/systems/wall/wall-frame.d.ts.map +1 -1
- package/dist/systems/wall/wall-frame.js +8 -0
- package/dist/systems/wall/wall-merge.d.ts +9 -1
- package/dist/systems/wall/wall-merge.d.ts.map +1 -1
- package/dist/systems/wall/wall-merge.js +38 -6
- package/dist/systems/wall/wall-top.d.ts +10 -3
- package/dist/systems/wall/wall-top.d.ts.map +1 -1
- package/dist/systems/wall/wall-top.js +24 -8
- package/dist/systems/wall/wall-topology.d.ts.map +1 -1
- package/dist/systems/wall/wall-topology.js +19 -1
- package/dist/utils/ensure-scene-openings.d.ts +5595 -5593
- package/dist/utils/ensure-scene-openings.d.ts.map +1 -1
- package/dist/utils/floor-plate-migration.d.ts +2267 -2266
- package/dist/utils/floor-plate-migration.d.ts.map +1 -1
- package/dist/utils/measurement-format.d.ts +27 -0
- package/dist/utils/measurement-format.d.ts.map +1 -0
- package/dist/utils/measurement-format.js +143 -0
- package/dist/utils/owned-floor-opening-migration.d.ts +653 -652
- package/dist/utils/owned-floor-opening-migration.d.ts.map +1 -1
- package/dist/utils/reconcile-structure-on-load.d.ts +1724 -1723
- package/dist/utils/reconcile-structure-on-load.d.ts.map +1 -1
- package/dist/utils/scene-bounds.d.ts +32 -0
- package/dist/utils/scene-bounds.d.ts.map +1 -0
- package/dist/utils/scene-bounds.js +201 -0
- package/dist/validation/validate-build-json.d.ts.map +1 -1
- package/dist/validation/validate-build-json.js +3 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-queries.d.ts","sourceRoot":"","sources":["../../src/agent-operations/scene-queries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAExC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAErE,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,CAAA;AACvD,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAOD,gDAAgD;AAChD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,GAAG,CAAC,OAAO,GAAG;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,CAI3E;AAED,qFAAqF;AACrF,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAStE;AAED,kGAAkG;AAClG,wBAAgB,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,EAAE,CAetE;AAED,6EAA6E;AAC7E,eAAO,MAAM,YAAY,UAAW,UAAU,WAAW,MAAM
|
|
1
|
+
{"version":3,"file":"scene-queries.d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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAkC,CAAA;AAEjG,wBAAgB,aAAa,CAAC,OAAO,EAAE,SAAS,OAAO,EAAE,GAAG,aAAa,CAexE;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,OAAO;;;;EAY1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-view.d.ts","sourceRoot":"","sources":["../../src/agent-operations/scene-view.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAElB,KAAK,UAAU,EAChB,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"scene-view.d.ts","sourceRoot":"","sources":["../../src/agent-operations/scene-view.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAElB,KAAK,UAAU,EAChB,MAAM,2BAA2B,CAAA;AAMlC,OAAO,KAAK,EACV,OAAO,EAKP,SAAS,EAKV,MAAM,WAAW,CAAA;AAUlB;;;GAGG;AAEH,MAAM,MAAM,YAAY,GAAG;IAAE,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC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radeStanding } from '../lib/grade-standing.js';
|
|
|
4
4
|
import { buildingGroundBox, levelGroundBox, terrainBetweenEyeAndBox } from '../lib/ground-window.js';
|
|
5
5
|
import { distanceToSegment } from '../lib/room-topology-index.js';
|
|
6
6
|
import { buildingStreet } from '../lib/site-placement.js';
|
|
7
|
+
import { roofFaceOf, roofFaceShapes } from '../registry/roofs.js';
|
|
7
8
|
import { getActiveRoofHeight } from '../schema/index.js';
|
|
8
|
-
import { isCeilingGeometry, isRoofGeometry } from '../services/roof-level.js';
|
|
9
|
+
import { coveredStoreyId, isCeilingGeometry, isRoofGeometry } from '../services/roof-level.js';
|
|
9
10
|
import { EXPLODED_GAP, getLevelElevations } from '../services/storey.js';
|
|
10
11
|
import { stairFootprintAABB } from '../systems/stair/stair-footprint.js';
|
|
11
12
|
import { resolveWallExteriorSide } from '../systems/wall/wall-assembly.js';
|
|
@@ -311,8 +312,9 @@ function siteBox(node, baseY) {
|
|
|
311
312
|
return null;
|
|
312
313
|
}
|
|
313
314
|
/**
|
|
314
|
-
* A roof's box: its segments' footprints
|
|
315
|
-
*
|
|
315
|
+
* A roof's box: its segments' footprints and its faces' outlines (`capabilities.roofs`) in the
|
|
316
|
+
* plan, from the roof's seat (its faces' lowest eave, theirs being their own heights) to the
|
|
317
|
+
* highest peak. A roof holds no wall, so a roof, or the roof level it stands on, framed nothing.
|
|
316
318
|
*/
|
|
317
319
|
function roofBox(nodes, roof, baseY) {
|
|
318
320
|
const seat = baseY + roof.position[1];
|
|
@@ -321,11 +323,18 @@ function roofBox(nodes, roof, baseY) {
|
|
|
321
323
|
x * Math.sin(angle) + z * Math.cos(angle),
|
|
322
324
|
];
|
|
323
325
|
const points = [];
|
|
324
|
-
let
|
|
326
|
+
let floor = Number.POSITIVE_INFINITY;
|
|
327
|
+
let peak = Number.NEGATIVE_INFINITY;
|
|
328
|
+
for (const face of roofFaceShapes(roof, nodes)) {
|
|
329
|
+
points.push(...face.outline);
|
|
330
|
+
floor = Math.min(floor, baseY + face.low);
|
|
331
|
+
peak = Math.max(peak, baseY + face.high);
|
|
332
|
+
}
|
|
325
333
|
for (const id of roof.children ?? []) {
|
|
326
334
|
const segment = nodes[id];
|
|
327
335
|
if (segment?.type !== 'roof-segment')
|
|
328
336
|
continue;
|
|
337
|
+
floor = Math.min(floor, seat);
|
|
329
338
|
for (const [sx, sz] of [
|
|
330
339
|
[-1, -1],
|
|
331
340
|
[1, -1],
|
|
@@ -338,12 +347,12 @@ function roofBox(nodes, roof, baseY) {
|
|
|
338
347
|
const [px, pz] = turn([cx + segment.position[0], cz + segment.position[2]], -roof.rotation);
|
|
339
348
|
points.push([px + roof.position[0], pz + roof.position[2]]);
|
|
340
349
|
}
|
|
341
|
-
peak = Math.max(peak, seat + segment.position[1] + segment.wallHeight + getActiveRoofHeight(segment));
|
|
350
|
+
peak = Math.max(peak, seat, seat + segment.position[1] + segment.wallHeight + getActiveRoofHeight(segment));
|
|
342
351
|
}
|
|
343
352
|
if (!points.length)
|
|
344
353
|
return null;
|
|
345
354
|
return tall({
|
|
346
|
-
min: [Math.min(...points.map((p) => p[0])),
|
|
355
|
+
min: [Math.min(...points.map((p) => p[0])), floor, Math.min(...points.map((p) => p[1]))],
|
|
347
356
|
max: [Math.max(...points.map((p) => p[0])), peak, Math.max(...points.map((p) => p[1]))],
|
|
348
357
|
}, 0.3);
|
|
349
358
|
}
|
|
@@ -454,19 +463,35 @@ export function sceneViewBounds(nodes, targetId, presentation) {
|
|
|
454
463
|
if (pose)
|
|
455
464
|
return placed(hostedItemBox(target, pose, baseOf(pose.levelId)), pose.levelId);
|
|
456
465
|
}
|
|
466
|
+
const unreadFace = (id) => {
|
|
467
|
+
const child = nodes[id];
|
|
468
|
+
return !!child?.type.includes(':') && !roofFaceOf(child);
|
|
469
|
+
};
|
|
470
|
+
// A roof holding faces this runtime cannot read (their plugin not registered here) frames the
|
|
471
|
+
// storey it covers as well, up to its own level's top.
|
|
472
|
+
const coveredByTarget = target?.type === 'roof' && (target.children ?? []).some(unreadFace)
|
|
473
|
+
? coveredStoreyId(nodes, target)
|
|
474
|
+
: null;
|
|
457
475
|
const site = target && nodes[target.parentId ?? '']?.type === 'level'
|
|
458
476
|
? levelChildBox(nodes, target, baseOf(target.parentId))
|
|
459
477
|
: null;
|
|
460
|
-
if (site)
|
|
478
|
+
if (site && !coveredByTarget)
|
|
461
479
|
return placed(site, target.parentId);
|
|
462
480
|
const levelOf = (node) => (node.parentId ? nodes[node.parentId] : undefined);
|
|
463
481
|
const outlines = [];
|
|
464
482
|
// With no walls yet, what the level holds frames it: furniture placed from a plan before the
|
|
465
483
|
// walls are built, a site with its paving and fences. The roofs frame with the walls, and so does
|
|
466
|
-
// a plugin's node (a roof plane), whose shape core cannot read: up to its storey's top.
|
|
484
|
+
// a plugin's node (a roof plane), whose shape core cannot read: up to its storey's top. A roof's
|
|
485
|
+
// faces are read through their kind (`capabilities.roofs`); a plugin's this runtime has not
|
|
486
|
+
// registered frames as one on the level would.
|
|
467
487
|
const held = [];
|
|
468
488
|
const roofs = [];
|
|
469
489
|
let pluginTop = Number.NEGATIVE_INFINITY;
|
|
490
|
+
const upToStoreyTop = (levelId, at) => {
|
|
491
|
+
const storey = elevations.get(levelId);
|
|
492
|
+
if (storey)
|
|
493
|
+
pluginTop = Math.max(pluginTop, baseOf(levelId) + storey.height + at.y);
|
|
494
|
+
};
|
|
470
495
|
// biome-ignore lint/plugin: a view frames whatever the level holds
|
|
471
496
|
for (const node of Object.values(nodes)) {
|
|
472
497
|
const level = levelOf(node);
|
|
@@ -475,6 +500,7 @@ export function sceneViewBounds(nodes, targetId, presentation) {
|
|
|
475
500
|
const inTarget = !target ||
|
|
476
501
|
target.id === node.id ||
|
|
477
502
|
target.id === level.id ||
|
|
503
|
+
level.id === coveredByTarget ||
|
|
478
504
|
(target.type === 'building' && level.parentId === target.id);
|
|
479
505
|
if (!inTarget)
|
|
480
506
|
continue;
|
|
@@ -491,15 +517,14 @@ export function sceneViewBounds(nodes, targetId, presentation) {
|
|
|
491
517
|
});
|
|
492
518
|
else if (node.type === 'item')
|
|
493
519
|
(isRoofGeometry(node) ? roofs : held).push(placedBox(itemBox(node, baseOf(level.id)), at));
|
|
494
|
-
else if (node.type.includes(':'))
|
|
495
|
-
|
|
496
|
-
if (storey)
|
|
497
|
-
pluginTop = Math.max(pluginTop, baseOf(level.id) + storey.height + at.y);
|
|
498
|
-
}
|
|
520
|
+
else if (node.type.includes(':'))
|
|
521
|
+
upToStoreyTop(level.id, at);
|
|
499
522
|
else {
|
|
500
523
|
const box = levelChildBox(nodes, node, baseOf(level.id));
|
|
501
524
|
if (box)
|
|
502
525
|
(node.type === 'roof' ? roofs : held).push(placedBox(box, at));
|
|
526
|
+
if (node.type === 'roof' && (node.children ?? []).some(unreadFace))
|
|
527
|
+
upToStoreyTop(level.id, at);
|
|
503
528
|
}
|
|
504
529
|
}
|
|
505
530
|
const upTo = (box) => pluginTop > box.max[1] ? { min: box.min, max: [box.max[0], pluginTop, box.max[2]] } : box;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-assets.d.ts","sourceRoot":"","sources":["../../src/agent-operations/search-assets.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AACvD,KAAK,iBAAiB,GAAG;IAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAcnE;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"search-assets.d.ts","sourceRoot":"","sources":["../../src/agent-operations/search-assets.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAE7C,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AACvD,KAAK,iBAAiB,GAAG;IAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAcnE;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,iBAAiB,CA2C1D,CAAA"}
|
|
@@ -38,6 +38,12 @@ export const searchAssets = (_nodes, input, context) => {
|
|
|
38
38
|
category: item.category,
|
|
39
39
|
dimensions: item.dimensions ?? [1, 1, 1],
|
|
40
40
|
attachTo: item.attachTo ?? null,
|
|
41
|
+
...(item.script && {
|
|
42
|
+
params: item.script.manifest.params.map((spec) => ({
|
|
43
|
+
...spec,
|
|
44
|
+
value: item.script.params[spec.id] ?? spec.default,
|
|
45
|
+
})),
|
|
46
|
+
}),
|
|
41
47
|
}));
|
|
42
48
|
return { query: query.text, total: found.total, truncated, results };
|
|
43
49
|
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ZodType } from 'zod';
|
|
2
2
|
import type { DesignBrief } from '../agent-tools/design-brief.js';
|
|
3
|
-
import type { AnyNode,
|
|
3
|
+
import type { AnyNode, Collection, CompiledGeometryScript, SceneMaterial, SceneMaterialId } from '../schema/index.js';
|
|
4
4
|
import type { AssetSearchResult } from './asset-catalog.js';
|
|
5
5
|
import type { AssetViewFacts } from './asset-views.js';
|
|
6
|
+
import type { CatalogAsset } from './catalog-asset.js';
|
|
6
7
|
import type { SessionKeep, SessionRecord } from './scene-checkpoint.js';
|
|
7
8
|
export type SceneNodes = Readonly<Record<string, AnyNode>>;
|
|
8
9
|
/**
|
|
@@ -32,7 +33,7 @@ export type AgentContext = {
|
|
|
32
33
|
};
|
|
33
34
|
/** The agent's session so far. The host keeps it where its sessions live; it is never scene data. */
|
|
34
35
|
session?: SessionRecord;
|
|
35
|
-
catalog?: readonly
|
|
36
|
+
catalog?: readonly CatalogAsset[];
|
|
36
37
|
/** The library's answers to the call's searches, by `assetSearchKey`; set, they are what search_assets lists. */
|
|
37
38
|
catalogSearches?: Readonly<Record<string, AssetSearchResult>>;
|
|
38
39
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/agent-operations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/agent-operations/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EACV,OAAO,EACP,UAAU,EACV,sBAAsB,EACtB,aAAa,EACb,eAAe,EAChB,MAAM,WAAW,CAAA;AAClB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEpE,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;AAE1D;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,SAAS,CAAA;IAClD,wFAAwF;IACxF,UA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
|
1
|
-
import {
|
|
1
|
+
import { isUsageType, ROOM_ENTRY_TYPE, ROOM_FOLDED_TYPES } from '../agent-tools/verify-scene-usage.js';
|
|
2
|
+
import { USAGE_TYPES, usageIssues } from '../spatial/usage-field/findings.js';
|
|
2
3
|
import { sdfChecksOn } from '../spatial/usage-field/flag.js';
|
|
3
4
|
import { registerSceneCheck } from './verify-scene.js';
|
|
5
|
+
/**
|
|
6
|
+
* The finding types a `type` question is about: itself, or what a room's one entry holds. A usage
|
|
7
|
+
* type no measurement gives is a misspelt one, and its answer names the types there are: every
|
|
8
|
+
* measurement is taken, as for a question with no type.
|
|
9
|
+
*/
|
|
10
|
+
function askedTypes(type) {
|
|
11
|
+
if (typeof type !== 'string' || type.length === 0)
|
|
12
|
+
return undefined;
|
|
13
|
+
if (type === ROOM_ENTRY_TYPE)
|
|
14
|
+
return new Set(ROOM_FOLDED_TYPES);
|
|
15
|
+
return isUsageType(type) && !USAGE_TYPES.has(type) ? undefined : new Set([type]);
|
|
16
|
+
}
|
|
4
17
|
/**
|
|
5
18
|
* Passages, turning circles, pockets and wall objects, measured on the real shapes of the scene
|
|
6
|
-
* (`spatial/usage-field`). Off unless a host turns usage checks on; off, it adds nothing.
|
|
19
|
+
* (`spatial/usage-field`). Off unless a host turns usage checks on; off, it adds nothing. A
|
|
20
|
+
* question about one finding type takes the measurements that give it, and none for a type that
|
|
21
|
+
* is not a usage finding.
|
|
7
22
|
*/
|
|
8
23
|
registerSceneCheck({
|
|
9
24
|
name: 'usage',
|
|
10
25
|
order: 60,
|
|
11
|
-
run: (nodes) =>
|
|
26
|
+
run: (nodes, input) => sdfChecksOn() ? usageIssues(nodes, { types: askedTypes(input.type) }) : [],
|
|
12
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-scene.d.ts","sourceRoot":"","sources":["../../src/agent-operations/verify-scene.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-scene.d.ts","sourceRoot":"","sources":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IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAA;AAI/F,+FAA+F;AAC/F,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,QAItD;AAED,6FAA6F;AAC7F,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,UAAU,QAKnD;AAuLD,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,gBAAgB,GAAG,SAAS,CA2fpE,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { levelBuildingId } from '../building/level-duplication.js';
|
|
2
2
|
import { levelGradeStanding } from '../lib/grade-standing.js';
|
|
3
3
|
import { groundSeat } from '../lib/ground-seat.js';
|
|
4
|
+
import { hierarchyCycleErrors } from '../lib/hierarchy.js';
|
|
4
5
|
import { getLevelDisplayName } from '../lib/level-name.js';
|
|
5
6
|
import { HIDDEN_SITE_NOTE } from '../lib/node-visibility.js';
|
|
6
7
|
import { wallSupportForNodes } from '../lib/opening-floor-datum.js';
|
|
@@ -167,7 +168,7 @@ function withDefaults(node, parsed) {
|
|
|
167
168
|
* kind's, else core's. The checks that measure read each node with its defaults filled. A node its schema
|
|
168
169
|
* rejects is listed field by field and left `unread`: they could not read it. A node of a kind no
|
|
169
170
|
* schema here knows (a plugin's, where the plugin is not loaded) is counted by kind and kept as
|
|
170
|
-
* stored: the checks never read it.
|
|
171
|
+
* stored: the checks never read it. Each node on a parent cycle is listed by its `parentId`.
|
|
171
172
|
*/
|
|
172
173
|
function checkSchemas(scene, hostSchema) {
|
|
173
174
|
const errors = [];
|
|
@@ -193,6 +194,7 @@ function checkSchemas(scene, hostSchema) {
|
|
|
193
194
|
errors.push({ nodeId: id, path: issue.path.join('.'), message: issue.message });
|
|
194
195
|
unread.add(id);
|
|
195
196
|
}
|
|
197
|
+
errors.push(...hierarchyCycleErrors(scene));
|
|
196
198
|
return { errors, unknownKinds, unread, measured };
|
|
197
199
|
}
|
|
198
200
|
/**
|
|
@@ -319,7 +321,7 @@ export const verifyScene = (scene, input, context) => {
|
|
|
319
321
|
for (const level of levels) {
|
|
320
322
|
for (const wall of ofType(onLevel(level.levelId), 'wall')) {
|
|
321
323
|
const base = wallSupportForNodes(wall, nodes).elevation;
|
|
322
|
-
const wallTop = getWallTop(wall, level.levelId, nodes, base);
|
|
324
|
+
const wallTop = Math.max(getWallTop(wall, level.levelId, nodes, base, 0), getWallTop(wall, level.levelId, nodes, base, 1));
|
|
323
325
|
for (const { slab, top: slabTop, underside: slabUnderside } of getWallCoveringSlabs(wall, level.levelId, nodes)) {
|
|
324
326
|
const penetration = Math.max(0, Math.min(wallTop, slabTop) - Math.max(base, slabUnderside));
|
|
325
327
|
const coplanar = Math.abs(wallTop - slabTop) <= 1e-6;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wall-object-observations.d.ts","sourceRoot":"","sources":["../../src/agent-operations/wall-object-observations.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,IAAI,EAEV,MAAM,wBAAwB,CAAA;AAQ/B,OAAO,KAAK,EAAE,OAAO,EAAsB,MAAM,WAAW,CAAA;AAK5D,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AACpC,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,CAAA;AAC3E,+FAA+F;AAC/F,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAAC,KAAK,EAAE,cAAc,EAAE,CAAA;CAAE,CAAA;AAC7E,KAAK,QAAQ,GAAG;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,OAAO,GAAG,MAAM,CAAA;IACtB,eAAe,EAAE,UAAU,CAAA;IAC3B,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,IAAI,CAAC;QAAC,GAAG,EAAE,IAAI,CAAA;KAAE,CAAA;IACjC,QAAQ,EAAE,eAAe,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,mBAAmB,CAAA;CACvF,CAAA;AACD,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG;IAC7C,IAAI,EACA,wBAAwB,GACxB,mBAAmB,GACnB,iBAAiB,GACjB,yBAAyB,GACzB,gCAAgC,CAAA;IACpC,OAAO,EAAE,MAAM,CAAA;IACf,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;
|
|
1
|
+
{"version":3,"file":"wall-object-observations.d.ts","sourceRoot":"","sources":["../../src/agent-operations/wall-object-observations.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,KAAK,IAAI,EAEV,MAAM,wBAAwB,CAAA;AAQ/B,OAAO,KAAK,EAAE,OAAO,EAAsB,MAAM,WAAW,CAAA;AAK5D,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;AACpC,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,CAAA;AAC3E,+FAA+F;AAC/F,MAAM,MAAM,kBAAkB,GAAG;IAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAAC,KAAK,EAAE,cAAc,EAA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const height = getWallTop(wall, wall.parentId, nodes, support) - support;
|
|
64
|
+
const height = Math.max(getWallTop(wall, wall.parentId, nodes, support, 0), getWallTop(wall, wall.parentId, nodes, support, 1)) - support;
|
|
65
65
|
const length = Math.hypot(wall.end[0] - wall.start[0], wall.end[1] - wall.start[1]);
|
|
66
66
|
if (![height, length, support, wall.thickness ?? 0.1].every(Number.isFinite) ||
|
|
67
67
|
height <= 0 ||
|
|
@@ -5,7 +5,7 @@ export const SEARCH_ASSETS_MAX_LIMIT = 60;
|
|
|
5
5
|
export const searchAssetsTool = {
|
|
6
6
|
name: 'search_assets',
|
|
7
7
|
title: 'Search assets',
|
|
8
|
-
description: `Search the item library (furniture, fixtures, lights, plants, outdoor) by keyword, with one or several queries in a call. The catalog is a limited set that varies by server: what a search returns is what exists. Results provide valid asset ids and placement facts when these are not already known. A query matches the items whose name, id, category or tags hold every one of its words. Returns one group per query, best matches first (the name exactly, then words of the name, words starting it, the category, a tag), at most limit items (${SEARCH_ASSETS_LIMIT} unless set, up to ${SEARCH_ASSETS_MAX_LIMIT}); total counts every match and truncated says the limit cut some, with a hint on how to narrow. Each item has its id, name, category, dimensions [width, height, depth] in metres and attachTo (null on the floor, else 'wall', 'wall-side' or 'ceiling'). Related lookups (sofa, coffee table, tv stand) can share a call.`,
|
|
8
|
+
description: `Search the item library (furniture, fixtures, lights, plants, outdoor) by keyword, with one or several queries in a call. The catalog is a limited set that varies by server: what a search returns is what exists. Results provide valid asset ids and placement facts when these are not already known. A query matches the items whose name, id, category or tags hold every one of its words. Returns one group per query, best matches first (the name exactly, then words of the name, words starting it, the category, a tag), at most limit items (${SEARCH_ASSETS_LIMIT} unless set, up to ${SEARCH_ASSETS_MAX_LIMIT}); total counts every match and truncated says the limit cut some, with a hint on how to narrow. Each item has its id, name, category, dimensions [width, height, depth] in metres and attachTo (null on the floor, else 'wall', 'wall-side' or 'ceiling'). An item with params is built from code and listed before plain models the query names as well: once placed, add_object with its nodeId and new params resizes or reshapes it to the room. Related lookups (sofa, coffee table, tv stand) can share a call.`,
|
|
9
9
|
input: {
|
|
10
10
|
queries: z
|
|
11
11
|
.array(z.object({
|
|
@@ -70,7 +70,7 @@ export const doorDetailFields = {
|
|
|
70
70
|
export const addDoorTool = {
|
|
71
71
|
name: 'add_door',
|
|
72
72
|
title: 'Add door',
|
|
73
|
-
description: 'Add a door to an existing straight wall at t (0..1 along it), or a passage with no leaf (openingKind opening: a cased opening, an arch). The door slides to stay on the wall and reports clamped. On a railing (wallType railing) it is a gap in the guard as tall as the railing, with no leaf, casing or threshold. Refused with a code, as in the editor: curved walls, walls shorter than the door, and overlapping another door, window or wall item unless force is set. Match the reference with the outline (rectangle, rounded, arch), doorType and style; what they cannot express (glass strips, a pattern of lites, carved panels) is written as a script in code, never left as not possible. Not available in run_batch: the host opening executor prepares scripted creation and rebuilds, which a batch does not prepare.',
|
|
73
|
+
description: 'Add a door to an existing straight wall at t (0..1 along it), or a passage with no leaf (openingKind opening: a cased opening, an arch). The door slides to stay on the wall and reports clamped. On a railing (wallType railing) it is a gap in the guard as tall as the railing, with no leaf, casing or threshold. Refused with a code, as in the editor: curved walls, walls shorter than the door, a door taller than the wall top where it stands or anywhere along a sloped wall (wall_too_low), and overlapping another door, window or wall item unless force is set. Match the reference with the outline (rectangle, rounded, arch), doorType and style; what they cannot express (glass strips, a pattern of lites, carved panels) is written as a script in code, never left as not possible. Not available in run_batch: the host opening executor prepares scripted creation and rebuilds, which a batch does not prepare.',
|
|
74
74
|
input: {
|
|
75
75
|
wallId: NodeId.optional().describe('The wall to add the door to.'),
|
|
76
76
|
nodeId: NodeId.optional().describe('Rebuild this door instead of adding one: new code and/or params (get_source provides current code when needed). Its native fields change with update_node.'),
|
|
@@ -199,7 +199,7 @@ export const windowDetailFields = {
|
|
|
199
199
|
export const addWindowTool = {
|
|
200
200
|
name: 'add_window',
|
|
201
201
|
title: 'Add window',
|
|
202
|
-
description: "Add a window to an existing straight wall at t (0..1 along it), centred vertically on the wall, or on sillHeight above the floor when given. It slides to stay on the wall and under the wall's ceiling, and reports clamped. Refused with a code, as in the editor: curved walls, railings (railing_window: a railing takes a door, a gap in its guard), walls shorter than the window, overlapping another door, window or wall item unless force is set, and a style on a window that is not Fixed (style_needs_fixed_window). Match the reference with the outline (rectangle, rounded, arch), windowType and panes (columns × rows, or a style); what they cannot express (glass strips, leaded lites, a feature frame) is written as a script in code, never left as not possible. Not available in run_batch: the host opening executor prepares scripted creation and rebuilds, which a batch does not prepare.",
|
|
202
|
+
description: "Add a window to an existing straight wall at t (0..1 along it), centred vertically on the wall, or on sillHeight above the floor when given. It slides to stay on the wall and under the wall's ceiling, and reports clamped. Refused with a code, as in the editor: curved walls, railings (railing_window: a railing takes a door, a gap in its guard), walls shorter than the window, a window that fits nowhere under a sloped wall's top (wall_too_low), overlapping another door, window or wall item unless force is set, and a style on a window that is not Fixed (style_needs_fixed_window). Match the reference with the outline (rectangle, rounded, arch), windowType and panes (columns × rows, or a style); what they cannot express (glass strips, leaded lites, a feature frame) is written as a script in code, never left as not possible. Not available in run_batch: the host opening executor prepares scripted creation and rebuilds, which a batch does not prepare.",
|
|
203
203
|
input: {
|
|
204
204
|
wallId: NodeId.optional().describe('The wall to add the window to.'),
|
|
205
205
|
nodeId: NodeId.optional().describe('Rebuild this window instead of adding one: new code and/or params (get_source provides current code when needed). Its native fields change with update_node.'),
|
|
@@ -499,6 +499,7 @@ export declare function openingScene(): {
|
|
|
499
499
|
} | undefined;
|
|
500
500
|
justification?: "a" | "b" | undefined;
|
|
501
501
|
height?: number | undefined;
|
|
502
|
+
endHeightOffset?: number | undefined;
|
|
502
503
|
curveOffset?: number | undefined;
|
|
503
504
|
supportSlabId?: string | undefined;
|
|
504
505
|
supportOffset?: number | undefined;
|
|
@@ -1023,12 +1024,12 @@ export declare function openingScene(): {
|
|
|
1023
1024
|
fromIds: string[];
|
|
1024
1025
|
} | undefined;
|
|
1025
1026
|
} | undefined;
|
|
1026
|
-
id: `
|
|
1027
|
-
type: "
|
|
1028
|
-
children: (`
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1027
|
+
id: `building_${string}`;
|
|
1028
|
+
type: "building";
|
|
1029
|
+
children: (`elevator_${string}` | `level_${string}` | `unit_${string}`)[];
|
|
1030
|
+
position: [number, number, number];
|
|
1031
|
+
rotation: [number, number, number];
|
|
1032
|
+
groundLevelId?: `level_${string}` | undefined;
|
|
1032
1033
|
} | {
|
|
1033
1034
|
object: "node";
|
|
1034
1035
|
name?: string | undefined;
|
|
@@ -1053,12 +1054,12 @@ export declare function openingScene(): {
|
|
|
1053
1054
|
fromIds: string[];
|
|
1054
1055
|
} | undefined;
|
|
1055
1056
|
} | undefined;
|
|
1056
|
-
id: `
|
|
1057
|
-
type: "
|
|
1058
|
-
children: (`
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1057
|
+
id: `level_${string}`;
|
|
1058
|
+
type: "level";
|
|
1059
|
+
children: (`beam_${string}` | `block_${string}` | `ceiling_${string}` | `column_${string}` | `construction-dimension_${string}` | `duct-fitting_${string}` | `duct-segment_${string}` | `duct-terminal_${string}` | `fence_${string}` | `floor-opening_${string}` | `guide_${string}` | `hvac-equipment_${string}` | `imesh_${string}` | `item_${string}` | `lineset_${string}` | `liquid-line_${string}` | `measurement_${string}` | `pipe-fitting_${string}` | `pipe-segment_${string}` | `pipe-trap_${string}` | `procedural-item_${string}` | `roof_${string}` | `scan_${string}` | `separator_${string}` | `shelf_${string}` | `slab_${string}` | `spawn_${string}` | `stair_${string}` | `structural-grid_${string}` | `wall_${string}` | `zone_${string}`)[];
|
|
1060
|
+
level: number;
|
|
1061
|
+
baseElevation: number;
|
|
1062
|
+
height?: number | undefined;
|
|
1062
1063
|
};
|
|
1063
1064
|
};
|
|
1064
1065
|
rootNodeIds: `building_${string}`[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wall-opening-cases.d.ts","sourceRoot":"","sources":["../../../src/building/__fixtures__/wall-opening-cases.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,eAAO,MAAM,aAAa;aACxB,UAAU,EAAE,mBAAmB;aAC/B,OAAO,EAAE,gBAAgB;IACzB,qCAAqC;aACrC,IAAI,EAAE,WAAW;IACjB,0CAA0C;aAC1C,KAAK,EAAE,YAAY;IACnB,qCAAqC;aACrC,KAAK,EAAE,YAAY;IACnB,yEAAyE;aACzE,IAAI,EAAE,WAAW;aACjB,YAAY,EAAE,eAAe;IAC7B,4BAA4B;aAC5B,MAAM,EAAE,aAAa;IACrB,oEAAoE;aACpE,MAAM,EAAE,aAAa;IACrB,iGAAiG;aACjG,OAAO,EAAE,cAAc;aACvB,SAAS,EAAE,iBAAiB;IAC5B,4DAA4D;aAC5D,QAAQ,EAAE,gBAAgB;IAC1B,8FAA8F;aAC9F,OAAO,EAAE,eAAe;CAChB,CAAA;AAaV,sFAAsF;AACtF,wBAAgB,YAAY
|
|
1
|
+
{"version":3,"file":"wall-opening-cases.d.ts","sourceRoot":"","sources":["../../../src/building/__fixtures__/wall-opening-cases.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AAEH,eAAO,MAAM,aAAa;aACxB,UAAU,EAAE,mBAAmB;aAC/B,OAAO,EAAE,gBAAgB;IACzB,qCAAqC;aACrC,IAAI,EAAE,WAAW;IACjB,0CAA0C;aAC1C,KAAK,EAAE,YAAY;IACnB,qCAAqC;aACrC,KAAK,EAAE,YAAY;IACnB,yEAAyE;aACzE,IAAI,EAAE,WAAW;aACjB,YAAY,EAAE,eAAe;IAC7B,4BAA4B;aAC5B,MAAM,EAAE,aAAa;IACrB,oEAAoE;aACpE,MAAM,EAAE,aAAa;IACrB,iGAAiG;aACjG,OAAO,EAAE,cAAc;aACvB,SAAS,EAAE,iBAAiB;IAC5B,4DAA4D;aAC5D,QAAQ,EAAE,gBAAgB;IAC1B,8FAA8F;aAC9F,OAAO,EAAE,eAAe;CAChB,CAAA;AAaV,sFAAsF;AACtF,wBAAgB,YAAY;;;;;;;;;;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