dwelldelta-mcp 0.5.0 → 0.8.0
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/LICENSE +9 -2
- package/README.md +58 -10
- package/area-rents-tool.mjs +434 -0
- package/package.json +4 -2
- package/sale-prices-tool.mjs +187 -0
- package/server.mjs +68 -4
- package/tools.mjs +1 -1
- package/vendor/indicators.json +95 -5
- package/vendor/nsw-rents.json +7609 -0
- package/vendor/nsw-sales.json +17888 -0
- package/vendor/qld-rents.json +5926 -0
- package/vendor/vic-rents.json +1 -1
- package/vendor/wa-rents.json +5310 -0
package/LICENSE
CHANGED
|
@@ -20,8 +20,15 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
22
|
|
|
23
|
-
The data files in vendor/ (rents-index.json, indicators.json, nsw-suburbs.json, vic-rents.json
|
|
23
|
+
The data files in vendor/ (rents-index.json, indicators.json, nsw-suburbs.json, vic-rents.json,
|
|
24
|
+
nsw-rents.json, qld-rents.json, wa-rents.json, nsw-sales.json) are
|
|
24
25
|
not covered by this licence. Each figure keeps its source's own licence and
|
|
25
26
|
attribution, which the data files and every answer state (for example, ABS data:
|
|
26
27
|
CC BY 4.0, "Based on Australian Bureau of Statistics data"; the NSW suburb list:
|
|
27
|
-
CC BY 3.0 AU, NSW Spatial Services; Victorian rents: CC BY 4.0, Homes Victoria
|
|
28
|
+
CC BY 3.0 AU, NSW Spatial Services; Victorian rents: CC BY 4.0, Homes Victoria;
|
|
29
|
+
NSW rents: CC BY 4.0, State of New South Wales (Department of Communities and
|
|
30
|
+
Justice); Queensland rents: CC BY 4.0, The State of Queensland (Residential
|
|
31
|
+
Tenancies Authority); WA rents: based on WA Rental Bonds Data, CC BY 4.0,
|
|
32
|
+
Government of Western Australia, with medians calculated by DwellDelta;
|
|
33
|
+
NSW sale prices: CC BY 4.0, State of New South Wales (Department of
|
|
34
|
+
Communities and Justice)).
|
package/README.md
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
# dwelldelta-mcp - is an Australian rent fair?
|
|
2
2
|
|
|
3
|
-
An MCP server that lets an AI assistant check a weekly rent against the ABS rents index,
|
|
4
|
-
Australian property and lending indicators. From
|
|
5
|
-
Xcelerent Pty Ltd, built on public data.
|
|
3
|
+
An MCP server that lets an AI assistant check a weekly rent against the ABS rents index, look up median rents
|
|
4
|
+
by area in four states and NSW median sale prices, and quote sourced Australian property and lending indicators. From
|
|
5
|
+
[DwellDelta](https://dwelldelta.com.au/), a service of Xcelerent Pty Ltd, built on public data.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Six read-only tools, and one that adds the user's own rent when they ask:
|
|
8
8
|
|
|
9
9
|
| Tool | What it answers |
|
|
10
10
|
|---|---|
|
|
11
11
|
| `rent_check` | a weekly rent, and any proposed new rent, against the ABS rents index for the capital city since the lease began (the same arithmetic as the rent check at tools.dwelldelta.com.au) |
|
|
12
12
|
| `market_indicators` | the latest RBA cash rate, unemployment, wage growth, rents for all eight capitals, NSW lending, lending standards and arrears, approvals and completions - each with period, source, licence and limits; filter by `geography` |
|
|
13
13
|
| `vic_rents` | Victorian rents by suburb group from Homes Victoria's Rental Report: the median weekly rent of new leases, the lease count and the change on a year before, for 146 suburb groups and 13 regions; filter by `suburb_group` or `region` (from 0.5.0) |
|
|
14
|
+
| `area_rents` | median weekly rent of new bonds, all dwellings together, with the bond count and the change on a year before, for one state per call: NSW by postcode or council (NSW Department of Communities and Justice), Queensland by suburb or council (Residential Tenancies Authority), WA by locality (calculated by DwellDelta from the Government of Western Australia's bond records); each CC BY 4.0 (from 0.6.0) |
|
|
15
|
+
| `nsw_sale_prices` | NSW median sale prices by postcode or council from the NSW Department of Communities and Justice's Rent and Sales Report (CC BY 4.0): the median, the quartiles, the number of sales and the change on a year before, each for all dwellings, houses (non-strata) and units and town houses (strata). Medians of homes sold - never what any one home sold for; a line a few very large sales have set is marked UNUSUAL (from 0.7.0) |
|
|
14
16
|
| `data_sources` | the sources, their licences, and what DwellDelta cannot answer |
|
|
15
17
|
| `contribute_rent` | adds the user's own rent, anonymously, to DwellDelta's suburb benchmarks - only when the user asks, and only after they have read and agreed to the consent wording (from 0.5.0) |
|
|
16
18
|
|
|
17
19
|
It runs on your own machine over stdio. It records nothing and sends nothing about you unless you choose to add
|
|
18
|
-
your rent. At start it fetches
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
your rent. At start it fetches DwellDelta's published files from tools.dwelldelta.com.au - the week's indicators,
|
|
21
|
+
the rents and sale prices it answers from, eight public files in all, the same for everyone; nothing about you or
|
|
22
|
+
your questions is sent - and otherwise uses the copies it ships with. Set `DWELLDELTA_OFFLINE=1` and none of those
|
|
23
|
+
eight files is fetched; adding a rent with `contribute_rent` still sends it, as you asked. Nothing it says is a
|
|
24
|
+
forecast, a valuation or advice.
|
|
21
25
|
|
|
22
26
|
## Adding a rent (from 0.5.0)
|
|
23
27
|
|
|
@@ -30,6 +34,19 @@ property you own - never an address, name or email. You get a deletion code; ema
|
|
|
30
34
|
and the record is deleted. Only your own rent may be added: an assistant must not add a figure it read on a
|
|
31
35
|
website or a listing.
|
|
32
36
|
|
|
37
|
+
## NSW sale prices (from 0.7.0)
|
|
38
|
+
|
|
39
|
+
`nsw_sale_prices` gives DCJ's medians for the dwellings sold in a quarter - not asking prices, not valuations,
|
|
40
|
+
and never the price or value of any one home; no individual sale is in the data. Every answer names the dwelling
|
|
41
|
+
type, because a sale price without it answers nobody's question, and carries the quarter, DCJ's source line and
|
|
42
|
+
its limits. DCJ reports a quarter when about 80% of its sales have been notified, so the counts are incomplete
|
|
43
|
+
and the sales quarter runs behind the rents quarter. DCJ's own table has rows that a few very large sales, or
|
|
44
|
+
many sales at one identical price, have set: the answer marks those lines UNUSUAL and says not to quote them as
|
|
45
|
+
a going price. Where the published file notes that a total is mostly the sales of such a row (its
|
|
46
|
+
`unusual_part` field), releases from 0.8.0 say so on that total's line, and say only that its median and its
|
|
47
|
+
change may be moved by that row's sales. Prices in the structured result stay in DCJ's unit, thousands of dollars, and `unit` says so.
|
|
48
|
+
The feed is public at <https://tools.dwelldelta.com.au/market/nsw-sales.json>.
|
|
49
|
+
|
|
33
50
|
## Use it
|
|
34
51
|
|
|
35
52
|
Claude Desktop - add to `claude_desktop_config.json`:
|
|
@@ -48,8 +65,39 @@ Claude Desktop - add to `claude_desktop_config.json`:
|
|
|
48
65
|
Claude Code: `claude mcp add dwelldelta -- npx -y dwelldelta-mcp`. Any other MCP client: run `npx -y dwelldelta-mcp`
|
|
49
66
|
as a stdio server. Node 18 or later.
|
|
50
67
|
|
|
51
|
-
Then ask: "Is a rise from $700 to $770 a week in Sydney since July 2025 in line with rents?"
|
|
52
|
-
unemployment doing?"
|
|
68
|
+
Then ask: "Is a rise from $700 to $770 a week in Sydney since July 2025 in line with rents?", "What is the
|
|
69
|
+
median rent of new leases in postcode 2148?" or "What is NSW unemployment doing?"
|
|
70
|
+
|
|
71
|
+
## Rents by area (from 0.6.0)
|
|
72
|
+
|
|
73
|
+
`area_rents` answers for one state at a time, because the three publishers measure in their own ways and the WA
|
|
74
|
+
medians are DwellDelta's own calculation from the Government's one-record-per-bond data. They must not be added
|
|
75
|
+
or ranked as one series. Every answer carries that state's quarter, its source line, what DwellDelta selected or
|
|
76
|
+
calculated, and its limits. These are medians of new bonds, all dwellings together - not advertised rents, not
|
|
77
|
+
what sitting tenants pay, and not the rent of a home of a given size. Where a publisher reports nothing for a
|
|
78
|
+
small area the answer says so; it never shows a zero. The feeds are public at
|
|
79
|
+
https://tools.dwelldelta.com.au/market/nsw-rents.json, `qld-rents.json` and `wa-rents.json`; the server reads them
|
|
80
|
+
at start the way it reads the indicators, and `DWELLDELTA_STATE_RENTS_DIR` points it at a folder of copies.
|
|
81
|
+
Victoria, measured differently again, stays in `vic_rents`.
|
|
82
|
+
|
|
83
|
+
### By dwelling type and bedrooms (from 0.8.0)
|
|
84
|
+
|
|
85
|
+
Give `area_rents` a `dwelling_type`, a number of `bedrooms`, or both, and for NSW and Queensland it answers with
|
|
86
|
+
the publisher's own figure for that kind of home - a two-bedroom unit, a three-bedroom house - under the
|
|
87
|
+
publisher's own label. One of the two is enough: a type gives every size the publisher reports for it, a size
|
|
88
|
+
every type. A combination with no published median is said to have none; it is never filled from the
|
|
89
|
+
all-dwellings figure, a neighbouring area or a wider group. Many of these figures rest on few bonds, and each
|
|
90
|
+
small sample is marked. The Residential Tenancies Authority does not define its labels: reading "Flat 2" as a
|
|
91
|
+
two-bedroom flat is DwellDelta's reading, and every Queensland answer says so. WA's bond records carry neither
|
|
92
|
+
dwelling type nor bedrooms, so WA has no such figures. DCJ's largest size is "4 or more Bedrooms": a number above
|
|
93
|
+
four is answered under that label, and the answer says it is not for that number alone. A number followed by a
|
|
94
|
+
plus means "or more", which only that one size has; anything else with a plus is refused, not answered as exactly
|
|
95
|
+
that many.
|
|
96
|
+
|
|
97
|
+
The two files (https://tools.dwelldelta.com.au/market/nsw-rents-by-type.json and `qld-rents-by-type.json`) are
|
|
98
|
+
large and are not bundled. The server asks for them once at start, without waiting for them, and never in
|
|
99
|
+
response to a question. Offline, put copies in the folder `DWELLDELTA_STATE_RENTS_DIR` names; without them a
|
|
100
|
+
by-type question fails with the next step, and every other answer is unaffected.
|
|
53
101
|
|
|
54
102
|
It is listed in the MCP registry as `au.com.dwelldelta/dwelldelta`.
|
|
55
103
|
|
|
@@ -74,6 +122,6 @@ answer states - for example ABS data is CC BY 4.0, "Based on Australian Bureau o
|
|
|
74
122
|
|
|
75
123
|
## Development
|
|
76
124
|
|
|
77
|
-
`npm test` here starts the server and calls the
|
|
125
|
+
`npm test` here starts the server and calls the six read-only tools, and the first (consent) call of
|
|
78
126
|
`contribute_rent`, over MCP; the repository's root `npm test` holds the
|
|
79
127
|
tool answers themselves and checks that `vendor/` matches its sources. `npm pack` runs `scripts/vendor.mjs` first.
|
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* area_rents (0.6.0, 2026-10-10): rents by area for NSW (postcodes and councils, NSW Department of Communities and
|
|
3
|
+
* Justice), Queensland (suburbs and councils, Residential Tenancies Authority) and Western Australia (localities,
|
|
4
|
+
* calculated by DwellDelta from the Government's bond records), as published at
|
|
5
|
+
* tools.dwelldelta.com.au/market/{nsw,qld,wa}-rents.json - each CC BY 4.0, republishable with attribution.
|
|
6
|
+
*
|
|
7
|
+
* One state per call, never pooled: each publisher measures in its own way, and the WA medians are our own
|
|
8
|
+
* calculation, so every answer carries that state's own source line, what was changed, and its limits.
|
|
9
|
+
*
|
|
10
|
+
* Loaded like vic_rents: DWELLDELTA_STATE_RENTS_DIR (a folder holding the three files), else the owner's live store,
|
|
11
|
+
* else the published file (fetched once at start - one public file each; nothing about the user or their questions is
|
|
12
|
+
* sent - and used if well formed, for the right state, and not older than the bundled copy), else the copy bundled at
|
|
13
|
+
* pack time. DWELLDELTA_OFFLINE=1 never fetches. The data changes once a quarter, so every answer states its quarter.
|
|
14
|
+
*
|
|
15
|
+
* With dwelling_type or bedrooms (from 0.8.0) NSW and Queensland answer from their by-type
|
|
16
|
+
* files instead - see "by dwelling type and bedrooms" at the end of this file.
|
|
17
|
+
*/
|
|
18
|
+
import { existsSync } from "node:fs";
|
|
19
|
+
import { fileURLToPath } from "node:url";
|
|
20
|
+
import { dirname, join } from "node:path";
|
|
21
|
+
import { loadJson, envelope, ToolError, FOOTER, FETCH_TIMEOUT_MS } from "./tools.mjs";
|
|
22
|
+
import { quarterKey } from "./vic-rents-tool.mjs";
|
|
23
|
+
|
|
24
|
+
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
25
|
+
const LIVE_DIR = join(HERE, "..", "..", "dwelldelta-data", "market");
|
|
26
|
+
export const BUNDLED_DIR = join(HERE, "vendor");
|
|
27
|
+
export const PUBLISHED_BASE = "https://tools.dwelldelta.com.au/market/";
|
|
28
|
+
export const STATES = {
|
|
29
|
+
NSW: { file: "nsw-rents.json", name: "New South Wales",
|
|
30
|
+
hint: "NSW rents are by four-digit postcode (area: \"2148\") or by council (council: \"Blacktown\")." },
|
|
31
|
+
QLD: { file: "qld-rents.json", name: "Queensland",
|
|
32
|
+
hint: "Queensland rents are by suburb, as the RTA names it (area: \"Acacia Ridge\"; part of a name works), " +
|
|
33
|
+
"or by council (council: \"Brisbane\")." },
|
|
34
|
+
WA: { file: "wa-rents.json", name: "Western Australia",
|
|
35
|
+
hint: "WA rents are by locality (area: \"Fremantle\"; part of a name works). There are no councils in the " +
|
|
36
|
+
"bond records." },
|
|
37
|
+
};
|
|
38
|
+
/** Rows shown in one answer; a wider match says how many more there are instead of dropping them silently. */
|
|
39
|
+
export const MAX_ROWS = 25;
|
|
40
|
+
|
|
41
|
+
const wellFormed = (f, state) => f && f.state === state && quarterKey(f.quarter) > 0
|
|
42
|
+
&& Array.isArray(f.areas) && f.areas.length > 0 && Array.isArray(f.councils) && Array.isArray(f.regions)
|
|
43
|
+
&& f.state_total && Array.isArray(f.limits) && f.licence && f.attribution && f.changes_made;
|
|
44
|
+
|
|
45
|
+
/** One state's feed and where it came from ("env", "live", "published" or "bundled"); { feed: null } if none. */
|
|
46
|
+
export async function loadAreaRents(state, { env = process.env, fetchImpl = globalThis.fetch, liveDir = LIVE_DIR,
|
|
47
|
+
bundledDir = BUNDLED_DIR } = {}) {
|
|
48
|
+
const { file } = STATES[state];
|
|
49
|
+
// A copy that is not this state's feed is no copy: the wrong file under the right name must never answer.
|
|
50
|
+
const read = (path) => loadJson(path).then((f) => (wellFormed(f, state) ? f : null)).catch(() => null);
|
|
51
|
+
if (env.DWELLDELTA_STATE_RENTS_DIR) return { feed: await read(join(env.DWELLDELTA_STATE_RENTS_DIR, file)), origin: "env" };
|
|
52
|
+
if (existsSync(join(liveDir, file))) return { feed: await read(join(liveDir, file)), origin: "live" };
|
|
53
|
+
const shipped = await read(join(bundledDir, file));
|
|
54
|
+
if (env.DWELLDELTA_OFFLINE !== "1" && typeof fetchImpl === "function") {
|
|
55
|
+
try {
|
|
56
|
+
const res = await fetchImpl(PUBLISHED_BASE + file, { signal: AbortSignal.timeout(FETCH_TIMEOUT_MS) });
|
|
57
|
+
const got = res.ok ? await res.json() : null;
|
|
58
|
+
if (wellFormed(got, state) && (!shipped || quarterKey(got.quarter) >= quarterKey(shipped.quarter))) {
|
|
59
|
+
return { feed: got, origin: "published" };
|
|
60
|
+
}
|
|
61
|
+
} catch {
|
|
62
|
+
// Offline, blocked or slow: the bundled copy answers, and its quarter says how current it is.
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return { feed: shipped, origin: shipped ? "bundled" : null };
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** Every state's feed, loaded together at start: { NSW: feed-with-origin | null, QLD: ..., WA: ... }. */
|
|
69
|
+
export async function loadAllAreaRents(opts) {
|
|
70
|
+
const loaded = await Promise.all(Object.keys(STATES).map((s) => loadAreaRents(s, opts)));
|
|
71
|
+
return Object.fromEntries(Object.keys(STATES).map((s, i) =>
|
|
72
|
+
[s, loaded[i].feed ? { ...loaded[i].feed, origin: loaded[i].origin } : null]));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Exported for sale-prices-tool.mjs (0.7.0), which matches names and words figures the same way.
|
|
76
|
+
export const norm = (s) => String(s).trim().toLowerCase();
|
|
77
|
+
// Cents as two digits ($872.50, a WA median between two bonds), whole dollars as $650 - as the site prints them
|
|
78
|
+
// since tools #27 (2026-10-17).
|
|
79
|
+
export const dollars = (v) => { const n = Number(v); return `$${n.toLocaleString("en-AU", Number.isInteger(n) ? {} : { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`; };
|
|
80
|
+
export const signed = (v) => `${v >= 0 ? "+" : ""}${v}%`;
|
|
81
|
+
|
|
82
|
+
function line(r, name) {
|
|
83
|
+
if (r.median_weekly_rent_aud == null) {
|
|
84
|
+
const why = r.withheld ?? (r.new_bonds == null ? "too few bonds"
|
|
85
|
+
: `${r.new_bonds} new bond${r.new_bonds === 1 ? "" : "s"} - too few for a median`);
|
|
86
|
+
return `${name}: no median (${why}).`;
|
|
87
|
+
}
|
|
88
|
+
const bonds = r.new_bonds_band ? ` from ${r.new_bonds_band} new bonds (the publisher withholds the count)`
|
|
89
|
+
: r.new_bonds == null ? "" : ` from ${r.new_bonds.toLocaleString("en-AU")} new bonds`;
|
|
90
|
+
const change = r.change_pct == null ? ""
|
|
91
|
+
: r.year_ago_median_aud == null ? `, ${signed(r.change_pct)} on a year before`
|
|
92
|
+
: `, ${signed(r.change_pct)} on ${dollars(r.year_ago_median_aud)} a year before`;
|
|
93
|
+
const spread = r.first_quartile_aud == null || r.third_quartile_aud == null ? ""
|
|
94
|
+
: `; half of new bonds between ${dollars(r.first_quartile_aud)} and ${dollars(r.third_quartile_aud)}`;
|
|
95
|
+
return `${name}: ${dollars(r.median_weekly_rent_aud)} a week${bonds}${change}${spread}` +
|
|
96
|
+
`${r.small_sample ? " (small sample: treat with caution)" : ""}.`;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/** Exact name first, so "Brighton" does not drag in "Brighton East"; otherwise every name containing the words. */
|
|
100
|
+
export function match(rows, key, wanted) {
|
|
101
|
+
const exact = rows.filter((r) => norm(r[key]) === norm(wanted));
|
|
102
|
+
return exact.length ? exact : rows.filter((r) => norm(r[key]).includes(norm(wanted)));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* People ask NSW by suburb, and DCJ reports by postcode. For a name that matched no postcode: the suburbs of that name
|
|
107
|
+
* in the NSW suburb list ("Parramatta (2150)", already shipped for contribute_rent), with the postcodes this feed
|
|
108
|
+
* holds - offered as the next step, never answered silently, because a postcode's median is not a suburb's.
|
|
109
|
+
*/
|
|
110
|
+
export function nswPostcodes(wanted, suburbs, feed) {
|
|
111
|
+
const held = new Set(feed.areas.map((r) => r.area));
|
|
112
|
+
const named = suburbs.map((s) => /^(.*) \((\d{4})\)$/.exec(s)).filter((m) => m && held.has(m[2]));
|
|
113
|
+
const exact = named.filter((m) => norm(m[1]) === norm(wanted));
|
|
114
|
+
const found = exact.length ? exact : named.filter((m) => norm(m[1]).includes(norm(wanted)));
|
|
115
|
+
return found.slice(0, 5).map((m) => `${m[1]} is in postcode ${m[2]}`);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* area_rents: one state; an area (postcode, suburb or locality), a council, or neither for the state's own row.
|
|
120
|
+
* With dwelling_type or bedrooms the answer comes from that state's by-type file instead (byType[state], loaded at
|
|
121
|
+
* start by loadAllRentsByType) - see byTypeResult below.
|
|
122
|
+
*/
|
|
123
|
+
export function areaRentsResult({ state, area, council, dwelling_type, bedrooms } = {}, feeds, now = new Date(),
|
|
124
|
+
{ nswSuburbs = [], byType = {} } = {}) {
|
|
125
|
+
const info = STATES[state];
|
|
126
|
+
if (!info) {
|
|
127
|
+
throw new ToolError(`No area rents for ${JSON.stringify(state)}.`,
|
|
128
|
+
`Call area_rents with state NSW, QLD or WA. Victoria is in vic_rents; South Australia, Tasmania, the ACT and ` +
|
|
129
|
+
`the Northern Territory are not covered.`);
|
|
130
|
+
}
|
|
131
|
+
const feed = feeds[state];
|
|
132
|
+
if (!feed) {
|
|
133
|
+
throw new ToolError(`The ${info.name} rents feed is not on this machine.`,
|
|
134
|
+
`Point DWELLDELTA_STATE_RENTS_DIR at a folder holding a copy of ${PUBLISHED_BASE}${info.file}.`);
|
|
135
|
+
}
|
|
136
|
+
const kind = feed.area_kind;
|
|
137
|
+
let areas = [], councils = [], regions = [];
|
|
138
|
+
if (area != null && String(area).trim()) {
|
|
139
|
+
areas = match(feed.areas, "area", area);
|
|
140
|
+
if (!areas.length) {
|
|
141
|
+
const named = state === "NSW" ? nswPostcodes(area, nswSuburbs, feed) : [];
|
|
142
|
+
throw new ToolError(`No ${info.name} ${kind} matches ${JSON.stringify(area)}.`,
|
|
143
|
+
`${info.hint} ${feed.areas.length.toLocaleString("en-AU")} ${kind} rows are held.` +
|
|
144
|
+
(named.length ? ` In the NSW suburb list (NSW Spatial Services, CC BY 3.0 AU): ${named.join("; ")}. Call ` +
|
|
145
|
+
"again with that postcode, and say the figure is for the whole postcode, not the suburb alone." : ""));
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (council != null && String(council).trim()) {
|
|
149
|
+
councils = match(feed.councils, "council", council);
|
|
150
|
+
if (!councils.length) {
|
|
151
|
+
throw new ToolError(`No ${info.name} council matches ${JSON.stringify(council)}.`,
|
|
152
|
+
feed.councils.length ? `Try part of a council's name; ${feed.councils.length} councils are held. ${info.hint}` : info.hint);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const whole = !areas.length && !councils.length;
|
|
156
|
+
if (wantsByType({ dwelling_type, bedrooms })) {
|
|
157
|
+
return byTypeResult({ state, info, feed, dwelling_type, bedrooms, whole, areas, councils, file: byType[state] }, now);
|
|
158
|
+
}
|
|
159
|
+
if (whole) regions = feed.regions;
|
|
160
|
+
const dropped = [];
|
|
161
|
+
for (const [label, rows] of [[kind, areas], ["council", councils]]) {
|
|
162
|
+
if (rows.length > MAX_ROWS) dropped.push(`${rows.length - MAX_ROWS} more ${label} rows match: narrow the name.`);
|
|
163
|
+
}
|
|
164
|
+
areas = areas.slice(0, MAX_ROWS);
|
|
165
|
+
councils = councils.slice(0, MAX_ROWS);
|
|
166
|
+
const env = envelope({ sources: [{ source: feed.source, licence: feed.licence, attribution: feed.attribution }],
|
|
167
|
+
dataAsOf: feed.quarter, origin: feed.origin ?? null }, now);
|
|
168
|
+
const text = [
|
|
169
|
+
`${feed.what}. Quarter: ${feed.quarter}, against ${feed.compared_with}.`,
|
|
170
|
+
"",
|
|
171
|
+
...(whole ? [line(feed.state_total, `${info.name} (whole state)`)] : []),
|
|
172
|
+
...regions.map((r) => line(r, `${r.region} (region)`)),
|
|
173
|
+
...councils.map((r) => line(r, `${r.council} (council)`)),
|
|
174
|
+
...areas.map((r) => line(r, `${r.area} (${kind})`)),
|
|
175
|
+
...dropped,
|
|
176
|
+
...(whole ? ["", `${feed.areas.length.toLocaleString("en-AU")} ${kind} rows` +
|
|
177
|
+
`${feed.councils.length ? ` and ${feed.councils.length} councils` : ""} are available: call again with area` +
|
|
178
|
+
`${feed.councils.length ? " or council" : ""}.`] : []),
|
|
179
|
+
"",
|
|
180
|
+
"Limits:",
|
|
181
|
+
...feed.limits.map((l) => "- " + l),
|
|
182
|
+
"",
|
|
183
|
+
`Source: ${feed.attribution}`,
|
|
184
|
+
`What DwellDelta changed: ${feed.changes_made}`,
|
|
185
|
+
FOOTER,
|
|
186
|
+
].join("\n");
|
|
187
|
+
return { text, structured: { ...env, state, state_name: info.name, area_kind: kind, quarter: feed.quarter,
|
|
188
|
+
compared_with: feed.compared_with, derived: feed.derived === true,
|
|
189
|
+
state_total: whole ? feed.state_total : null, regions, councils, areas,
|
|
190
|
+
truncated: dropped.length > 0, limits: feed.limits, changes_made: feed.changes_made } };
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// --- by dwelling type and bedrooms --------------------------------------------------------------------------------
|
|
194
|
+
// Prepared 2026-10-10; NOT in 0.7.0, the version on npm. "What does a two-bedroom unit rent for there?" is the
|
|
195
|
+
// question people ask, and the feeds above answer only for all dwellings together. NSW and Queensland publish a
|
|
196
|
+
// companion file each (market/{nsw,qld}-rents-by-type.json); WA's bond records carry neither dwelling type nor
|
|
197
|
+
// bedrooms, so WA has none.
|
|
198
|
+
//
|
|
199
|
+
// The files are large (1.3 MB and 0.4 MB) and are not bundled: they load from DWELLDELTA_STATE_RENTS_DIR, the
|
|
200
|
+
// owner's live store, or the published address - asked for once, at start, like every other file and never in
|
|
201
|
+
// response to a question, so a request still says nothing about the user or what they asked. The server does not
|
|
202
|
+
// wait for them: the first by-type question does. Offline, with no folder of copies, a by-type question fails with
|
|
203
|
+
// the next step, and the all-dwellings answer is unaffected.
|
|
204
|
+
//
|
|
205
|
+
// Every figure is the publisher's cell under the publisher's own label. A combination the file does not list has NO
|
|
206
|
+
// published median - it is said, with the file's own words for what that means, and never filled from a
|
|
207
|
+
// neighbouring area, a wider group or the all-dwellings figure. The RTA does not define "Flat 2": reading it as a
|
|
208
|
+
// two-bedroom flat is DwellDelta's reading, and the answer carries the file's sentence saying so.
|
|
209
|
+
export const BY_TYPE = { NSW: "nsw-rents-by-type.json", QLD: "qld-rents-by-type.json" };
|
|
210
|
+
export const BY_TYPE_TIMEOUT_MS = 20000;
|
|
211
|
+
/** Places answered by type in one call: each can run to a dozen lines. */
|
|
212
|
+
export const MAX_TYPE_PLACES = 5;
|
|
213
|
+
|
|
214
|
+
export const wantsByType = ({ dwelling_type, bedrooms } = {}) =>
|
|
215
|
+
[dwelling_type, bedrooms].some((v) => v != null && String(v).trim() !== "");
|
|
216
|
+
|
|
217
|
+
const wellFormedByType = (f, state) => f && f.state === state && f.detail === "dwelling_type_and_bedrooms"
|
|
218
|
+
&& quarterKey(f.quarter) > 0 && Array.isArray(f.areas) && f.areas.length > 0 && Array.isArray(f.councils)
|
|
219
|
+
&& f.state_total && f.state_total.breakdown && Array.isArray(f.limits) && f.licence && f.attribution
|
|
220
|
+
&& f.changes_made && f.absent_means && f.labels;
|
|
221
|
+
|
|
222
|
+
/** One state's by-type file and where it came from ("env", "live" or "published"); { feed: null } if none. */
|
|
223
|
+
export async function loadRentsByType(state, { env = process.env, fetchImpl = globalThis.fetch, liveDir = LIVE_DIR } = {}) {
|
|
224
|
+
const file = BY_TYPE[state];
|
|
225
|
+
const read = (path) => loadJson(path).then((f) => (wellFormedByType(f, state) ? f : null)).catch(() => null);
|
|
226
|
+
if (env.DWELLDELTA_STATE_RENTS_DIR) return { feed: await read(join(env.DWELLDELTA_STATE_RENTS_DIR, file)), origin: "env" };
|
|
227
|
+
if (existsSync(join(liveDir, file))) return { feed: await read(join(liveDir, file)), origin: "live" };
|
|
228
|
+
if (env.DWELLDELTA_OFFLINE !== "1" && typeof fetchImpl === "function") {
|
|
229
|
+
try {
|
|
230
|
+
const res = await fetchImpl(PUBLISHED_BASE + file, { signal: AbortSignal.timeout(BY_TYPE_TIMEOUT_MS) });
|
|
231
|
+
const got = res.ok ? await res.json() : null;
|
|
232
|
+
if (wellFormedByType(got, state)) return { feed: got, origin: "published" };
|
|
233
|
+
} catch {
|
|
234
|
+
// Offline, blocked or slow: there is no bundled copy, and a by-type question will say what to do.
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return { feed: null, origin: null };
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/** Both states' by-type files: { NSW: file-with-origin | null, QLD: ... }. It never rejects. */
|
|
241
|
+
export async function loadAllRentsByType(opts) {
|
|
242
|
+
const states = Object.keys(BY_TYPE);
|
|
243
|
+
const loaded = await Promise.all(states.map((s) => loadRentsByType(s, opts).catch(() => ({ feed: null }))));
|
|
244
|
+
return Object.fromEntries(states.map((s, i) => [s, loaded[i].feed ? { ...loaded[i].feed, origin: loaded[i].origin } : null]));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const NSW_TYPES = ["House", "Townhouse", "Flat/Unit", "Other", "Total"];
|
|
248
|
+
const NSW_SIZES = ["Bedsitter", "1 Bedroom", "2 Bedrooms", "3 Bedrooms", "4 or more Bedrooms", "Not Specified", "Total"];
|
|
249
|
+
// Words people use for the publishers' labels. Each maps to ONE label, and the answer always prints the label itself.
|
|
250
|
+
const TYPE_WORDS = { unit: "Flat/Unit", units: "Flat/Unit", flat: "Flat/Unit", flats: "Flat/Unit", apartment: "Flat/Unit",
|
|
251
|
+
apartments: "Flat/Unit", houses: "House", "town house": "Townhouse", townhouses: "Townhouse",
|
|
252
|
+
all: "Total", any: "Total", "all dwellings": "Total" };
|
|
253
|
+
const QLD_KINDS = { unit: "Flat", units: "Flat", flats: "Flat", apartment: "Flat", apartments: "Flat", houses: "House",
|
|
254
|
+
"town house": "Townhouse", townhouses: "Townhouse" };
|
|
255
|
+
const known = (present, order) => [...order.filter((l) => present.has(l)), ...[...present].filter((l) => !order.includes(l))];
|
|
256
|
+
|
|
257
|
+
/** The one label a word names: the label itself, a known word for it, or the only label containing it. */
|
|
258
|
+
function label(wanted, labels, words, what, state) {
|
|
259
|
+
const w = norm(wanted).replace(/\s+/g, " ");
|
|
260
|
+
const found = labels.find((l) => norm(l) === w) ?? (labels.includes(words[w]) ? words[w] : null);
|
|
261
|
+
if (found) return found;
|
|
262
|
+
const part = labels.filter((l) => norm(l).includes(w));
|
|
263
|
+
if (part.length === 1) return part[0];
|
|
264
|
+
throw new ToolError(`No ${STATES[state].name} ${what} matches ${JSON.stringify(wanted)}.`,
|
|
265
|
+
`The publisher's ${what} labels are: ${labels.join(", ")}. Call again with one of them.`);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* A number of bedrooms as someone writes it - "2", "2 bed", "2br", "4+", "studio" - or null if it is not one.
|
|
270
|
+
* orMore is the plus: "that many or more" is a different question from "exactly that many", and is answered only
|
|
271
|
+
* where the publisher has a label that means it. (It used to be dropped, so "3+" was answered as three.)
|
|
272
|
+
*/
|
|
273
|
+
function bedroomsAsked(wanted) {
|
|
274
|
+
const w = norm(wanted).replace(/\s+/g, " ");
|
|
275
|
+
if (["studio", "bedsit", "bedsitter"].includes(w)) return { n: 0, orMore: false };
|
|
276
|
+
const m = /^(\d{1,2})\s*(\+)?\s*(?:bed(?:room)?s?|br)?$/.exec(w);
|
|
277
|
+
return m ? { n: Number(m[1]), orMore: Boolean(m[2]) } : null;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/** NSW: which of DCJ's dwelling types and sizes were asked for (null = every one), as DCJ labels them. */
|
|
281
|
+
function nswAsked(file, dwelling_type, bedrooms) {
|
|
282
|
+
const cells = file.state_total.breakdown;
|
|
283
|
+
const types = known(new Set(Object.keys(cells)), NSW_TYPES);
|
|
284
|
+
const sizes = known(new Set(Object.values(cells).flatMap((c) => Object.keys(c))), NSW_SIZES);
|
|
285
|
+
const type = wantsByType({ dwelling_type }) ? label(dwelling_type, types, TYPE_WORDS, "dwelling type", "NSW") : null;
|
|
286
|
+
let size = null;
|
|
287
|
+
const notes = [];
|
|
288
|
+
if (wantsByType({ bedrooms })) {
|
|
289
|
+
const b = bedroomsAsked(bedrooms);
|
|
290
|
+
// DCJ's one "or more" size is "4 or more Bedrooms". Below that, "N or more" has no figure of its own.
|
|
291
|
+
if (b && b.orMore && b.n < 4) {
|
|
292
|
+
throw new ToolError(`DCJ reports no figure for ${b.n} or more bedrooms.`,
|
|
293
|
+
`Its sizes are: ${sizes.join(", ")}. Call again with bedrooms "${b.n}" for exactly that many, or "4+" for DCJ's ` +
|
|
294
|
+
`"4 or more Bedrooms".`);
|
|
295
|
+
}
|
|
296
|
+
const n = b ? b.n : null;
|
|
297
|
+
const counted = n === null ? null
|
|
298
|
+
: n === 0 ? "Bedsitter" : n >= 4 ? "4 or more Bedrooms" : sizes.find((s) => s.startsWith(`${n} Bedroom`));
|
|
299
|
+
size = counted && sizes.includes(counted) ? counted
|
|
300
|
+
: label(bedrooms, sizes, { all: "Total", any: "Total", "all sizes": "Total" }, "bedrooms", "NSW");
|
|
301
|
+
// Five, six or "5+" lie inside "4 or more Bedrooms", the only figure DCJ has for them - but it is the figure for
|
|
302
|
+
// every home of four or more, which is not what was asked. Answered, and said. (It used to be answered and not said.)
|
|
303
|
+
if (b && b.n > 4 && size === "4 or more Bedrooms") {
|
|
304
|
+
notes.push(`You asked for ${b.n}${b.orMore ? " or more" : ""} bedrooms. DCJ's largest size is "4 or more Bedrooms": the figures ` +
|
|
305
|
+
"here are for every home of four bedrooms or more together, and DCJ reports nothing narrower. Say so when you give them.");
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
const wanted = [];
|
|
309
|
+
for (const t of type ? [type] : types) {
|
|
310
|
+
for (const s of size ? [size] : sizes) {
|
|
311
|
+
// Total and Total is the all-dwellings figure: shown only when both were asked for by name.
|
|
312
|
+
if (t === "Total" && s === "Total" && !(type && size)) continue;
|
|
313
|
+
wanted.push({ dwelling_type: t, bedrooms: s, words: `${t === "Total" ? "All dwellings" : t}, ${s === "Total" ? "all sizes" : s}`,
|
|
314
|
+
cell: (group) => group?.breakdown?.[t]?.[s] ?? null });
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return { wanted, asked: { dwelling_type: type, bedrooms: size }, notes };
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/** Queensland: which of the RTA's labels ("Flat 2", "House 3") were asked for. */
|
|
321
|
+
function qldAsked(file, dwelling_type, bedrooms) {
|
|
322
|
+
const labels = Object.keys(file.state_total.breakdown).filter((l) => l !== "All dwellings");
|
|
323
|
+
const parsed = labels.map((l) => ({ l, m: /^([A-Za-z ]+?) (\d)$/.exec(l) })).filter((x) => x.m)
|
|
324
|
+
.map((x) => ({ label: x.l, kind: x.m[1], n: Number(x.m[2]) }));
|
|
325
|
+
const kinds = [...new Set(parsed.map((p) => p.kind))];
|
|
326
|
+
let chosen = parsed, kind = null, n = null, full = null;
|
|
327
|
+
if (wantsByType({ dwelling_type })) {
|
|
328
|
+
const whole = labels.find((l) => norm(l) === norm(dwelling_type)); // a label given in full: "Flat 2"
|
|
329
|
+
if (whole) {
|
|
330
|
+
// With its own number, where it has one: "Flat 2" and bedrooms "2" agree. (It used to carry none, so any
|
|
331
|
+
// bedrooms at all emptied the answer and the refusal said the RTA publishes no label for 2 bedrooms.)
|
|
332
|
+
full = parsed.find((p) => p.label === whole) ?? { label: whole, kind: whole, n: null };
|
|
333
|
+
chosen = [full];
|
|
334
|
+
} else {
|
|
335
|
+
kind = label(dwelling_type, kinds, QLD_KINDS, "dwelling type", "QLD");
|
|
336
|
+
chosen = chosen.filter((p) => p.kind === kind);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
if (wantsByType({ bedrooms })) {
|
|
340
|
+
const b = bedroomsAsked(bedrooms);
|
|
341
|
+
if (b === null) {
|
|
342
|
+
throw new ToolError(`${JSON.stringify(bedrooms)} is not a number of bedrooms.`,
|
|
343
|
+
`The RTA's labels are: ${labels.join(", ")}. Give bedrooms as a number, or dwelling_type as one of the labels.`);
|
|
344
|
+
}
|
|
345
|
+
if (b.orMore) {
|
|
346
|
+
throw new ToolError(`The RTA publishes no "${b.n} or more" figure.`,
|
|
347
|
+
`Each of these labels carries one number, which DwellDelta reads as that many bedrooms: ` +
|
|
348
|
+
`${parsed.map((p) => p.label).join(", ")}. Call again with bedrooms as a plain number.`);
|
|
349
|
+
}
|
|
350
|
+
n = b.n;
|
|
351
|
+
if (full && full.n === null) {
|
|
352
|
+
throw new ToolError(`The RTA's label ${JSON.stringify(full.label)} carries no number of bedrooms.`,
|
|
353
|
+
`Call again without bedrooms: dwelling_type ${JSON.stringify(full.label)} is one figure.`);
|
|
354
|
+
}
|
|
355
|
+
if (full && full.n !== n) {
|
|
356
|
+
throw new ToolError(`${JSON.stringify(full.label)} is the label DwellDelta reads as ${full.n} bedroom${full.n === 1 ? "" : "s"}, ` +
|
|
357
|
+
`and bedrooms was given as ${n}.`,
|
|
358
|
+
`Give dwelling_type ${JSON.stringify(full.label)} on its own, or a dwelling type and bedrooms that agree. The RTA's ` +
|
|
359
|
+
`labels are: ${labels.join(", ")}.`);
|
|
360
|
+
}
|
|
361
|
+
chosen = chosen.filter((p) => p.n === n);
|
|
362
|
+
}
|
|
363
|
+
if (!chosen.length) {
|
|
364
|
+
const what = [kind, n === null ? null : `${n} bedroom${n === 1 ? "" : "s"}`].filter(Boolean).join(", ");
|
|
365
|
+
throw new ToolError(`The RTA publishes no label for ${what}.`, `Its labels are: ${labels.join(", ")}.`);
|
|
366
|
+
}
|
|
367
|
+
return { wanted: chosen.map((p) => ({ label: p.label, words: p.label, cell: (group) => group?.breakdown?.[p.label] ?? null })),
|
|
368
|
+
asked: { dwelling_type: kind, bedrooms: n, labels: chosen.map((p) => p.label) } };
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/** area_rents with dwelling_type or bedrooms: the publisher's own cells for the places matched, and no others. */
|
|
372
|
+
function byTypeResult({ state, info, feed, dwelling_type, bedrooms, whole, areas, councils, file }, now) {
|
|
373
|
+
if (!BY_TYPE[state]) {
|
|
374
|
+
throw new ToolError(`${info.name} rents are not published by dwelling type or bedrooms.`,
|
|
375
|
+
"WA's bond records carry neither. Call area_rents for WA without dwelling_type and bedrooms: every WA figure " +
|
|
376
|
+
"is all dwellings together.");
|
|
377
|
+
}
|
|
378
|
+
if (!file) {
|
|
379
|
+
throw new ToolError(`The ${info.name} rents by dwelling type file is not on this machine.`,
|
|
380
|
+
`It is read once at start from ${PUBLISHED_BASE}${BY_TYPE[state]}. Offline, point DWELLDELTA_STATE_RENTS_DIR at ` +
|
|
381
|
+
"a folder holding a copy. Without dwelling_type and bedrooms, area_rents still answers for all dwellings together.");
|
|
382
|
+
}
|
|
383
|
+
if (file.quarter !== feed.quarter) {
|
|
384
|
+
throw new ToolError(`The ${info.name} by-type file is for ${file.quarter} and the rents feed for ${feed.quarter}.`,
|
|
385
|
+
"They are published together and must be the same quarter. Call area_rents without dwelling_type and bedrooms " +
|
|
386
|
+
"for the all-dwellings figure, and restart the server to read both again.");
|
|
387
|
+
}
|
|
388
|
+
const { wanted, asked, notes = [] } = state === "NSW" ? nswAsked(file, dwelling_type, bedrooms) : qldAsked(file, dwelling_type, bedrooms);
|
|
389
|
+
const kind = feed.area_kind;
|
|
390
|
+
const places = whole ? [{ name: `${info.name} (whole state)`, place: info.name, place_kind: "state", group: file.state_total }]
|
|
391
|
+
: [...councils.map((r) => ({ name: `${r.council} (council)`, place: r.council, place_kind: "council",
|
|
392
|
+
group: file.councils.find((g) => g.council === r.council) })),
|
|
393
|
+
...areas.map((r) => ({ name: `${r.area} (${kind})`, place: r.area, place_kind: kind,
|
|
394
|
+
group: file.areas.find((g) => g.area === r.area) }))];
|
|
395
|
+
const shown = places.slice(0, MAX_TYPE_PLACES);
|
|
396
|
+
const lines = [], rows = [];
|
|
397
|
+
for (const p of shown) {
|
|
398
|
+
const absent = [];
|
|
399
|
+
for (const w of wanted) {
|
|
400
|
+
const cell = w.cell(p.group);
|
|
401
|
+
rows.push({ place: p.place, place_kind: p.place_kind,
|
|
402
|
+
...(state === "NSW" ? { dwelling_type: w.dwelling_type, bedrooms: w.bedrooms } : { label: w.label }), figure: cell });
|
|
403
|
+
if (cell) lines.push(line(cell, `${p.name}, ${w.words}`));
|
|
404
|
+
else absent.push(w.words);
|
|
405
|
+
}
|
|
406
|
+
if (absent.length) lines.push(`${p.name}: no published median for ${absent.join("; ")}.`);
|
|
407
|
+
}
|
|
408
|
+
const truncated = places.length > shown.length;
|
|
409
|
+
if (truncated) lines.push(`${places.length - shown.length} more places match: narrow the name.`);
|
|
410
|
+
const env = envelope({ sources: [{ source: file.source, licence: file.licence, attribution: file.attribution }],
|
|
411
|
+
dataAsOf: file.quarter, origin: file.origin ?? null }, now);
|
|
412
|
+
const text = [
|
|
413
|
+
`${file.what}. Quarter: ${file.quarter}, against ${file.compared_with}.`,
|
|
414
|
+
"",
|
|
415
|
+
...notes.flatMap((n) => [n, ""]),
|
|
416
|
+
...lines,
|
|
417
|
+
"",
|
|
418
|
+
...(rows.some((r) => !r.figure) ? [`Where there is no published median: ${file.absent_means}`,
|
|
419
|
+
"Do not fill a gap from a neighbouring area, a wider group, an earlier quarter or the all-dwellings figure " +
|
|
420
|
+
"without saying that you have.", ""] : []),
|
|
421
|
+
`Labels: ${file.labels}`,
|
|
422
|
+
"",
|
|
423
|
+
"Limits:",
|
|
424
|
+
...file.limits.map((l) => "- " + l),
|
|
425
|
+
"",
|
|
426
|
+
`Source: ${file.attribution}`,
|
|
427
|
+
`What DwellDelta changed: ${file.changes_made}`,
|
|
428
|
+
FOOTER,
|
|
429
|
+
].join("\n");
|
|
430
|
+
return { text, structured: { ...env, state, state_name: info.name, area_kind: kind, quarter: file.quarter,
|
|
431
|
+
compared_with: file.compared_with, detail: file.detail, asked, notes, rows, truncated,
|
|
432
|
+
absent_means: file.absent_means, labels: file.labels, limits: file.limits,
|
|
433
|
+
changes_made: file.changes_made } };
|
|
434
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dwelldelta-mcp",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Is an Australian rent fair? A rent check on the ABS rents index,
|
|
3
|
+
"version": "0.8.0",
|
|
4
|
+
"description": "Is an Australian rent fair? A rent check on the ABS rents index, rents by area for four states, NSW median sale prices, and sourced property and lending indicators, for AI agents.",
|
|
5
5
|
"mcpName": "au.com.dwelldelta/dwelldelta",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://dwelldelta.com.au/",
|
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
"tools.mjs",
|
|
24
24
|
"contribute-tool.mjs",
|
|
25
25
|
"vic-rents-tool.mjs",
|
|
26
|
+
"area-rents-tool.mjs",
|
|
27
|
+
"sale-prices-tool.mjs",
|
|
26
28
|
"vendor/",
|
|
27
29
|
"LICENSE",
|
|
28
30
|
"README.md"
|