env-able 2.3.2__tar.gz → 2.3.3__tar.gz

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.
Files changed (74) hide show
  1. {env_able-2.3.2 → env_able-2.3.3}/CHANGELOG.md +24 -0
  2. {env_able-2.3.2 → env_able-2.3.3}/PKG-INFO +19 -2
  3. {env_able-2.3.2 → env_able-2.3.3}/README.md +18 -1
  4. {env_able-2.3.2 → env_able-2.3.3}/pyproject.toml +1 -1
  5. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/__init__.py +1 -1
  6. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/claude_bridge.py +6 -0
  7. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/docs/atlas-guide.md +3 -1
  8. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/eirstyle.py +8 -2
  9. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/env_layers.py +10 -6
  10. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/index.html +28597 -28561
  11. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/naming.py +67 -7
  12. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/server.py +16782 -16636
  13. {env_able-2.3.2 → env_able-2.3.3}/.gitignore +0 -0
  14. {env_able-2.3.2 → env_able-2.3.3}/LICENSE +0 -0
  15. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/_gdal_env.py +0 -0
  16. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/_gdal_utils.py +0 -0
  17. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/_pipeline.py +0 -0
  18. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/_result.py +0 -0
  19. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/aggregate.py +0 -0
  20. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/__init__.py +0 -0
  21. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/aix.py +0 -0
  22. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/brandmark.py +0 -0
  23. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/calc.py +0 -0
  24. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/client.py +0 -0
  25. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/compliance.html +0 -0
  26. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/databricks.py +0 -0
  27. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/debug.py +0 -0
  28. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/desktop.py +0 -0
  29. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/docs/atlas-layout-view.md +0 -0
  30. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/docs/cartographic-judgment.md +0 -0
  31. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/docs/env-able-library.md +0 -0
  32. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/edits.py +0 -0
  33. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/landing.html +0 -0
  34. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/ltv_api.py +0 -0
  35. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/palette.py +0 -0
  36. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/project.py +0 -0
  37. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/qaqc/ltv.css +0 -0
  38. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/qaqc/ltv.js +0 -0
  39. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/session.py +0 -0
  40. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/splash.html +0 -0
  41. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/templates/Summary A4 Landscape.pagx +0 -0
  42. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/templates/Summary A4 Portrait.pagx +0 -0
  43. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/templates/Title Bar A4 Landscape.pagx +0 -0
  44. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/templates/Title Bar A4 Portrait.pagx +0 -0
  45. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/HTML-TO-IMAGE-LICENSE.txt +0 -0
  46. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/MAPLIBRE-LICENSE.txt +0 -0
  47. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/MERRIWEATHER-LICENSE.txt +0 -0
  48. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/PROTOMAPS-LICENSE.txt +0 -0
  49. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/ROBOTO-LICENSE.txt +0 -0
  50. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/html-to-image.js +0 -0
  51. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/maplibre-gl.css +0 -0
  52. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/maplibre-gl.js +0 -0
  53. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/merriweather-latin-400-normal.woff +0 -0
  54. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/pmtiles.js +0 -0
  55. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/protomaps-basemaps.js +0 -0
  56. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/roboto-latin-400-italic.woff2 +0 -0
  57. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/roboto-latin-400-normal.woff2 +0 -0
  58. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/roboto-latin-500-normal.woff2 +0 -0
  59. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/atlas/vendor/roboto-latin-700-normal.woff2 +0 -0
  60. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/classify.py +0 -0
  61. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/editing.py +0 -0
  62. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/expression.py +0 -0
  63. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/features.py +0 -0
  64. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/fields.py +0 -0
  65. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/housestyle.py +0 -0
  66. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/layout.py +0 -0
  67. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/ltv.py +0 -0
  68. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/morph.py +0 -0
  69. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/pull.py +0 -0
  70. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/pwx.py +0 -0
  71. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/remote.py +0 -0
  72. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/selection.py +0 -0
  73. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/stream.py +0 -0
  74. {env_able-2.3.2 → env_able-2.3.3}/src/env_able/vector.py +0 -0
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.3.3] - 2026-11-30
4
+ ### Added
5
+ - **`GET /api/layers/in_view?bounds=w,s,e,n`**: how many features each layer draws inside a box, filter
6
+ applied, so a per-page legend can leave out a layer with nothing on the page.
7
+ - **`/api/state` reports `drawn_count`** beside `feature_count`: what a layer's filter leaves drawn.
8
+
9
+ ### Fixed
10
+ - **Other was ranked on features a filter hid**: DJ filtered to 3,412 Codell wells gave its nine colours to
11
+ the commonest operators of all 11,653.
12
+ - **Blank values drew grey with no legend row** (Utica's 188 wells with no type); they are keyed as
13
+ *No value*, or beside *Other*.
14
+ - **A value with a bracketed qualifier missed its commodity colour**: `OIL (40%+ WH LIQUIDS)` took a
15
+ palette colour.
16
+ - **A hydrocarbon window was read as water** (`HydroWindow` matched `hydro`); `Lakes` and `Rivers` now are.
17
+ - **Legend titles read the export's abbreviations**: `Hzs`, `Blocks Web`, `Well List Wips`, `Prdwelltyp`
18
+ are Horizontals, Blocks, WIP Wells, Production Well Type.
19
+ - **A fitted legend left a 2 mm empty band** under its last row.
20
+ - **A placed title could sit on a state line**; bare text now keeps off it, while the boxed legend still
21
+ treats it as empty ground.
22
+ - **When the palette ran out a layer took swatch 0**, the first layer's colour; it takes the Other grey.
23
+ - **`EV` (Economic Viability) was read as a version suffix**, so two viability layers split into unrelated
24
+ families; and **the same file in two folders** was offered twice, one copy marked superseded.
25
+ - **Claude's pane no longer offers the MCP resource tools**, a second route to the manuals.
26
+
3
27
  ## [2.3.2] - 2026-11-26
4
28
  ### Changed
5
29
  - **Atlas listens on this machine only** (127.0.0.1; it was every interface, with no authentication), and
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: env-able
3
- Version: 2.3.2
3
+ Version: 2.3.3
4
4
  Summary: AI-ready GIS toolkit for energy and subsurface workflows.
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -506,7 +506,24 @@ print(f"{rows:,} rows written")
506
506
  ---
507
507
 
508
508
  ## Changelog
509
- ### v2.3.2
509
+ ### v2.3.3 — 2026-11-30
510
+ **Added**
511
+ - **`GET /api/layers/in_view?bounds=w,s,e,n`**: how many features each layer draws inside a box, filter applied, so a per-page legend can leave out a layer with nothing on the page.
512
+ - **`/api/state` reports `drawn_count`** beside `feature_count`: what a layer's filter leaves drawn.
513
+
514
+ **Fixed**
515
+ - **Other was ranked on features a filter hid**: DJ filtered to 3,412 Codell wells gave its nine colours to the commonest operators of all 11,653.
516
+ - **Blank values drew grey with no legend row** (Utica's 188 wells with no type); they are keyed as *No value*, or beside *Other*.
517
+ - **A value with a bracketed qualifier missed its commodity colour**: `OIL (40%+ WH LIQUIDS)` took a palette colour.
518
+ - **A hydrocarbon window was read as water** (`HydroWindow` matched `hydro`); `Lakes` and `Rivers` now are.
519
+ - **Legend titles read the export's abbreviations**: `Hzs`, `Blocks Web`, `Well List Wips`, `Prdwelltyp` are Horizontals, Blocks, WIP Wells, Production Well Type.
520
+ - **A fitted legend left a 2 mm empty band** under its last row.
521
+ - **A placed title could sit on a state line**; bare text now keeps off it, while the boxed legend still treats it as empty ground.
522
+ - **When the palette ran out a layer took swatch 0**, the first layer's colour; it takes the Other grey.
523
+ - **`EV` (Economic Viability) was read as a version suffix**, so two viability layers split into unrelated families; and **the same file in two folders** was offered twice, one copy marked superseded.
524
+ - **Claude's pane no longer offers the MCP resource tools**, a second route to the manuals.
525
+
526
+ ### v2.3.2 — 2026-11-26
510
527
  **Changed**
511
528
  - **Atlas listens on this machine only** (127.0.0.1; it was every interface, with no authentication), and refuses state-changing requests from other web pages; `/mcp` takes JSON only. `ATLAS_HOST=0.0.0.0` shares a session on purpose.
512
529
  - **PNG, PDF, Map Series and Export Layout ask where to save** and Atlas writes the file. The desktop window cancels browser downloads, so these produced nothing while PDF said "saved".
@@ -479,7 +479,24 @@ print(f"{rows:,} rows written")
479
479
  ---
480
480
 
481
481
  ## Changelog
482
- ### v2.3.2
482
+ ### v2.3.3 — 2026-11-30
483
+ **Added**
484
+ - **`GET /api/layers/in_view?bounds=w,s,e,n`**: how many features each layer draws inside a box, filter applied, so a per-page legend can leave out a layer with nothing on the page.
485
+ - **`/api/state` reports `drawn_count`** beside `feature_count`: what a layer's filter leaves drawn.
486
+
487
+ **Fixed**
488
+ - **Other was ranked on features a filter hid**: DJ filtered to 3,412 Codell wells gave its nine colours to the commonest operators of all 11,653.
489
+ - **Blank values drew grey with no legend row** (Utica's 188 wells with no type); they are keyed as *No value*, or beside *Other*.
490
+ - **A value with a bracketed qualifier missed its commodity colour**: `OIL (40%+ WH LIQUIDS)` took a palette colour.
491
+ - **A hydrocarbon window was read as water** (`HydroWindow` matched `hydro`); `Lakes` and `Rivers` now are.
492
+ - **Legend titles read the export's abbreviations**: `Hzs`, `Blocks Web`, `Well List Wips`, `Prdwelltyp` are Horizontals, Blocks, WIP Wells, Production Well Type.
493
+ - **A fitted legend left a 2 mm empty band** under its last row.
494
+ - **A placed title could sit on a state line**; bare text now keeps off it, while the boxed legend still treats it as empty ground.
495
+ - **When the palette ran out a layer took swatch 0**, the first layer's colour; it takes the Other grey.
496
+ - **`EV` (Economic Viability) was read as a version suffix**, so two viability layers split into unrelated families; and **the same file in two folders** was offered twice, one copy marked superseded.
497
+ - **Claude's pane no longer offers the MCP resource tools**, a second route to the manuals.
498
+
499
+ ### v2.3.2 — 2026-11-26
483
500
  **Changed**
484
501
  - **Atlas listens on this machine only** (127.0.0.1; it was every interface, with no authentication), and refuses state-changing requests from other web pages; `/mcp` takes JSON only. `ATLAS_HOST=0.0.0.0` shares a session on purpose.
485
502
  - **PNG, PDF, Map Series and Export Layout ask where to save** and Atlas writes the file. The desktop window cancels browser downloads, so these produced nothing while PDF said "saved".
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "env-able"
7
- version = "2.3.2"
7
+ version = "2.3.3"
8
8
  description = "AI-ready GIS toolkit for energy and subsurface workflows."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -1,4 +1,4 @@
1
- __version__ = "2.3.2"
1
+ __version__ = "2.3.3"
2
2
 
3
3
  # Resolve GDAL_DATA / PROJ_LIB before anything imports osgeo. IDEs and bare
4
4
  # `python script.py` runs skip conda's activation scripts, which is where those
@@ -128,6 +128,12 @@ DENIED_TOOLS = [
128
128
  "TodoWrite", "DesignSync", "EnterWorktree", "ExitWorktree", "PushNotification",
129
129
  "ReportFindings", "ShareOnboardingGuide", "Skill", "Artifact", "AskUserQuestion",
130
130
  "EnterPlanMode", "ExitPlanMode", "SlashCommand", "EndConversation",
131
+ # MCP resource browsing. Caught by the runtime guard on 2026-11-26 (CLI 2.1.332): the CLI
132
+ # offers these once any connected server declares `resources`, and Atlas's own /mcp does, for
133
+ # the manuals. --strict-mcp-config keeps them pointed at Atlas alone, so they could only ever
134
+ # read those manuals -- which atlas_read_doc already does. Denied anyway: the pane's surface
135
+ # is the atlas_* tools, and a second route to the same pages is a second thing to reason about.
136
+ "ListMcpResourcesTool", "ReadMcpResourceTool", "ReadMcpResourceDirTool",
131
137
  ]
132
138
 
133
139
  #: What we expect to be live: our own MCP tools plus the schema lookup they are deferred behind.
@@ -734,7 +734,9 @@ coloured from the house library, `#ef509a #58b947 #f68d2e #93348f #58a7af #fdcf0
734
734
  #19602f #ffbee8`, in that order. An operator the team's maps colour consistently keeps that colour
735
735
  as it comes out in the reports; two colours that would read as one on the page (ΔE under 30)
736
736
  are not kept together — the later one moves to the next house swatch. **Ten classes at most**: past that the tail folds into **Other** in `#cccccc`, as the
737
- house does it. The legend lists them alphabetically, Other last.
737
+ house does it. The legend lists them alphabetically, Other last. Features with **no value** draw
738
+ in the same grey and are keyed **No value** (or "Other (n) and no value"), and a filtered layer is
739
+ ranked on the features its filter keeps.
738
740
 
739
741
  **Numbers are classed on round numbers** — Manual breaks, which is how 95% of the team's graduated
740
742
  line layers and 64% of its polygons are drawn. Atlas takes the natural breaks and moves each to the
@@ -117,7 +117,11 @@ _ROLE_PATTERNS = (
117
117
  (r"\bboundar|\boutline\b|\bextent\b", "outline", None),
118
118
  (r"\bgrid\b|\bgraticule\b", "outline", None),
119
119
 
120
- (r"\bwater(way|body|shed)?\b|\bhydro|\blake\b|\briver\b", "element", "water"),
120
+ # A hydrocarbon (phase) window is a filled region, not water: Vaca Muerta's
121
+ # "WellInv_VM_HydroWindow_0715" took water blue because `\bhydro` matched its first word.
122
+ (r"\bhydro[\s_-]?carbons?|\bhydro[\s_-]?windows?\b|\b(fluid|phase|hc)[\s_-]?windows?\b",
123
+ "region_fill", None),
124
+ (r"\bwater(way|body|shed)?s?\b|\bhydro|\blakes?\b|\brivers?\b", "element", "water"),
121
125
  (r"\bgas\b|\bngl\b|\bmethane\b", "element", "gas"),
122
126
  (r"\boil\b|\bcrude\b|\bliquids?\b", "element", "oil"),
123
127
  (r"\bsand\b|\bproppant\b|\bfrac[\s_-]?sand", "element", "sand"),
@@ -278,7 +282,9 @@ def assign_colors(names, geometries=None):
278
282
  # should vary marker, width or pattern, or split the map.
279
283
  out.append(dict(info, color=None,
280
284
  why=(info["why"] + "; palette exhausted at %d categorical "
281
- "colours - vary marker or width instead of hue" % len(MAP_ORDER))))
285
+ "colours, so it is drawn in the house Other grey rather than "
286
+ "repeating a hue - vary marker or width instead, or ask which "
287
+ "layers matter" % len(MAP_ORDER))))
282
288
  continue
283
289
  out.append(dict(info, color=colour))
284
290
  return out
@@ -33,7 +33,7 @@ def house_look(name, geometry=None, also=()):
33
33
  """
34
34
  The look a base layer arrives with, from the house style, shaped as a layer record merges it:
35
35
  ``{key, name, slot, color, outlineColor, symbology: {mode, size}, label, why}``, or None when
36
- the house has no rule for it (a DSU, an AOI, the subject of the map).
36
+ the house has no rule for it (an AOI, the subject of the map).
37
37
 
38
38
  Widths are the house's POINTS, stored as Atlas's `symbology.size`, which the thickness control
39
39
  shows as pt: a county reads 0.125 pt in Atlas exactly as it does in ArcGIS Pro.
@@ -76,9 +76,11 @@ def house_look(name, geometry=None, also=()):
76
76
  #:
77
77
  #: Adding one: append a dict. `tokens` are already-normalised lowercase words.
78
78
  STANDARD_TREATMENTS = [
79
- # A DSU grid. The brain finds no house look for one (seven measured DSU datasets, 21%
80
- # agreement at best), so it draws as a subject; it is still recognised, because atlas-ml
81
- # must never colour a DSU grid "by operator" when it was asked to colour the wells.
79
+ # A DSU grid. The brain has a house rule for the DSU kind (an outline only: its families
80
+ # agree on the line far more than on the whole symbol), so the look comes from the house
81
+ # style -- `style_for_standard` reads it, and the entry here carries no symbology of its
82
+ # own. Recognised by name as well, because atlas-ml frames on a DSU grid and must never
83
+ # colour one "by operator" when it was asked to colour the wells.
82
84
  {"key": "dsu", "name": "Drilling spacing units", "kind": "Reference grid",
83
85
  "tokens": ["dsu", "dsus", "spacing_unit", "spacing_units",
84
86
  "drilling_spacing_unit", "drilling_spacing_units"]},
@@ -366,8 +368,10 @@ def standard_for(name):
366
368
 
367
369
  def style_for_standard(entry):
368
370
  """
369
- The drawing properties for a STANDARD_TREATMENTS entry, shaped like `style_for`, or None when
370
- the house has no look for it (a DSU, an AOI).
371
+ The drawing properties for a STANDARD_TREATMENTS entry, shaped like `style_for`, read from
372
+ the house style; None when the house has no look for it (an AOI, which draws as a subject)
373
+ or when the team's rules are not installed (a bare PyPI env-able), where nothing measured is
374
+ claimed. A DSU and a subplay have one.
371
375
  """
372
376
  if not entry:
373
377
  return None