geospec 0.1.0-beta.6 → 0.1.0-beta.7
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/agent/doctrine.md +17 -2
- package/agent/geospec-authoring/SKILL.md +45 -45
- package/agent/geospec-authoring/api-index.md +88 -84
- package/agent/geospec-authoring/api-types.md +30 -2
- package/agent/geospec-authoring/public-api-index.md +225 -220
- package/agent/geospec-authoring/public-api-types-2.md +35 -68
- package/agent/geospec-authoring/public-api-types-3.md +65 -1
- package/agent/resources.js +9 -9
- package/agent/skills.json +2 -2
- package/dist/assertion-client/client.d.mts +1 -1
- package/dist/assertion-client/client.mjs +1 -1
- package/dist/engine/client.mjs +1 -1
- package/dist/model/native-model-loader.d.mts +2 -0
- package/dist/model/native-model-loader.mjs +1 -1
- package/dist/model/region-scope.mjs +1 -1
- package/dist/model/types.d.mts +17 -1
- package/dist/runner/collector.mjs +1 -1
- package/dist/runner/worker/index.d.mts +3 -1
- package/dist/runner/worker/index.mjs +1 -1
- package/package.json +4 -4
|
@@ -1540,6 +1540,8 @@ LoadModelCodeOptions: {
|
|
|
1540
1540
|
code: Code;
|
|
1541
1541
|
/** Entry path to render from {@link code}. */
|
|
1542
1542
|
file: keyof Code & string;
|
|
1543
|
+
/** Not accepted: inline code has no project folder to resolve in, and a load naming one is refused. */
|
|
1544
|
+
rootDir?: never;
|
|
1543
1545
|
/** Geometry format to export. Defaults to `glb`. */
|
|
1544
1546
|
format?: GeoSpecModelFormat;
|
|
1545
1547
|
/** Explicit parameters passed to the runtime. */
|
|
@@ -1581,6 +1583,9 @@ LoadModelCodeOptions: {
|
|
|
1581
1583
|
// Entry path to render from {@link code }
|
|
1582
1584
|
file: keyof Code & string
|
|
1583
1585
|
|
|
1586
|
+
// Not accepted
|
|
1587
|
+
rootDir?: never
|
|
1588
|
+
|
|
1584
1589
|
// Geometry format to export
|
|
1585
1590
|
format?: GeoSpecModelFormat
|
|
1586
1591
|
|
|
@@ -1616,8 +1621,17 @@ LoadModelCodeOptions: {
|
|
|
1616
1621
|
|
|
1617
1622
|
// Filesystem-backed model load options
|
|
1618
1623
|
LoadModelFileOptions: {
|
|
1619
|
-
/**
|
|
1624
|
+
/**
|
|
1625
|
+
* Model file to render, as a path from the project root: the same root every tool's `targetFile` resolves
|
|
1626
|
+
* against, which the result names as `projectRoot` where the host reports it, as `tau mcp` does.
|
|
1627
|
+
*/
|
|
1620
1628
|
file: string;
|
|
1629
|
+
/**
|
|
1630
|
+
* Project-relative folder `file` resolves in, for a suite that loads from somewhere other than the project root:
|
|
1631
|
+
* `loadModel({ file: 'main.ts', rootDir: 'parts/gear' })` loads `parts/gear/main.ts`. Recorded in the load
|
|
1632
|
+
* evidence.
|
|
1633
|
+
*/
|
|
1634
|
+
rootDir?: string;
|
|
1621
1635
|
/** Project root used by runtime integrations. */
|
|
1622
1636
|
projectPath?: string;
|
|
1623
1637
|
/** Geometry format to export. Defaults to `glb`. */
|
|
@@ -1653,9 +1667,12 @@ LoadModelFileOptions: {
|
|
|
1653
1667
|
region?: GeoSpecLoadRegion;
|
|
1654
1668
|
}
|
|
1655
1669
|
|
|
1656
|
-
//
|
|
1670
|
+
// Model file to render, as a path from the project root
|
|
1657
1671
|
file: string
|
|
1658
1672
|
|
|
1673
|
+
// Project-relative folder `file` resolves in, for a suite that loads from somewhere other than the project root
|
|
1674
|
+
rootDir?: string
|
|
1675
|
+
|
|
1659
1676
|
// Project root used by runtime integrations
|
|
1660
1677
|
projectPath?: string
|
|
1661
1678
|
|
|
@@ -1692,6 +1709,9 @@ LoadModelFileOptions: {
|
|
|
1692
1709
|
// Options accepted by {@link import ('./load-model.js').loadModel}
|
|
1693
1710
|
LoadModelOptions: LoadModelSourceOptions | LoadModelCodeOptions<Code> | LoadModelFileOptions
|
|
1694
1711
|
|
|
1712
|
+
// Project-relative folder `file` resolves in, for a suite that loads from somewhere other than the project root
|
|
1713
|
+
rootDir?: string
|
|
1714
|
+
|
|
1695
1715
|
// Geometry format to export
|
|
1696
1716
|
format?: GeoSpecModelFormat
|
|
1697
1717
|
|
|
@@ -1722,6 +1742,11 @@ LoadModelSourceOptions: {
|
|
|
1722
1742
|
readonly name: string;
|
|
1723
1743
|
readonly source: MeshSource | StepSource;
|
|
1724
1744
|
}>;
|
|
1745
|
+
/**
|
|
1746
|
+
* Project-relative folder a path `source` and each resource path resolve in. Omitted, they resolve against the
|
|
1747
|
+
* project root. Recorded in the load evidence.
|
|
1748
|
+
*/
|
|
1749
|
+
rootDir?: string;
|
|
1725
1750
|
/** Source geometry format. Defaults to `glb`. */
|
|
1726
1751
|
format?: GeoSpecModelFormat;
|
|
1727
1752
|
/** Source path recorded in provenance. */
|
|
@@ -1757,6 +1782,9 @@ LoadModelSourceOptions: {
|
|
|
1757
1782
|
readonly source: MeshSource | StepSource;
|
|
1758
1783
|
}>
|
|
1759
1784
|
|
|
1785
|
+
// Project-relative folder a path `source` and each resource path resolve in
|
|
1786
|
+
rootDir?: string
|
|
1787
|
+
|
|
1760
1788
|
// Source geometry format
|
|
1761
1789
|
format?: GeoSpecModelFormat
|
|
1762
1790
|
|