@astrofoundry/pi-astro 0.40.30 → 0.40.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrofoundry/pi-astro",
3
- "version": "0.40.30",
3
+ "version": "0.40.31",
4
4
  "description": "Personal pi customizations (extensions, subagents, skills, prompts, themes) for the pi coding agent.",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -8,7 +8,7 @@ description: How the network specialist reads and changes the UniFi consoles of
8
8
  Two UniFi sites, each with its own console:
9
9
 
10
10
  - `37` (Madrid, console `10.0.10.1`): the homelab. Nine VLANs, inter-zone traffic denied unless a policy allows it, Wi-Fi `Ardilla-37` (EAP-TLS via FreeRADIUS on LXC 108), `Ardilla-IoT`, `Ardilla-GUEST`. LXC 105 runs the Tailscale subnet router for remote administration.
11
- - `mira` (Cortex reaches its console at `10.1.60.1` over Site Magic): the second location, `10.1.0.0/16`, with the same zone model as 37 (Management 10, Services 40, Trusted 60, IoT 70, Guest 80). 37 and Mira are run as one network.
11
+ - `mira` (Cortex reaches its console at `10.1.60.1` over Site Magic): the second location, `10.1.0.0/16`, with the same zone model as 37 (Management 10, Services 40, Storage 50, Trusted 60, IoT 70, Guest 80). 37 and Mira are run as one network.
12
12
 
13
13
  The consoles are joined by Site Magic (SD-WAN). Never call either site "home". The `network` tool has three families.
14
14
 
@@ -83,12 +83,13 @@ The cloud connector forwards any path under `/proxy/` of a console, and the acco
83
83
  Behavior learned on the live consoles:
84
84
 
85
85
  - A GET omits an optional field that is unset. A missing field is not proof that the API lacks it: `ipv4Configuration.dhcpConfiguration.dnsServerIpAddressesOverride` (the DHCP DNS servers) appears only once set. Check the schema.
86
+ - Creating a network needs its `zoneId`: create a new zone first with `networkIds: []`, then the network in it (Mira Storage, 2026-11-01).
86
87
  - PUT replaces the whole object: send the full GET body without `id`, `metadata`, `default`, and `index`. To set DHCP DNS on a network, PUT it with `dnsServerIpAddressesOverride: ["<dns1>", "<dns2>"]`; remove the field to return to automatic.
87
88
  - `like` uses `*` for any characters and `.` for one character; escape them with `\`. SQL `%` matches nothing and still returns `totalCount: 0` without an error.
88
89
  - Lists return 25 items by default. 37 has about 390 firewall policies, mostly `SYSTEM_DEFINED` zone defaults and `DERIVED` return rules: page with `--offset`, or filter `metadata.origin.eq('USER_DEFINED')` (69 on 37 on 2026-10-31).
89
90
  - Protocol filters: one protocol is `{"type":"NAMED_PROTOCOL","protocol":{"name":"TCP"},"matchOpposite":false}`; TCP and UDP together is `{"type":"PRESET","preset":{"name":"TCP_UDP"}}` with no `matchOpposite`. Omit `protocolFilter` to match every protocol.
90
91
  - A policy has exactly one source zone and one destination zone; several destination zones need one policy each. The `SYSTEM_DEFINED` policies show each zone pair's default (on 37: Vpn to Dmz allows, Vpn to Services blocks).
91
- - Traffic between 37 and Mira crosses two firewalls: `<zone> to Vpn` on the sending site and `Vpn to <zone>` on the receiving site. A subnet routes only if Site Magic shares it: `unifi cloud /v1/sd-wan-configs/<id>` lists the shared networks per site. 37 shares Services, Management, Trusted, DMZ, and Storage; Mira shares Trusted, IoT, Services, and Management.
92
+ - Traffic between 37 and Mira crosses two firewalls: `<zone> to Vpn` on the sending site and `Vpn to <zone>` on the receiving site. A subnet routes only if Site Magic shares it: `unifi cloud /v1/sd-wan-configs/<id>` lists the shared networks per site. 37 shares Services, Management, Trusted, DMZ, and Storage; Mira shares Trusted, IoT, Services, Management, and Storage.
92
93
 
93
94
  ## `unifi <37|mira> app-get <path>` and `unifi <37|mira> device-network <deviceId> <json>`
94
95