Compare commits

...
Sign in to create a new pull request.
Author SHA1 Message Date
unimatrixgit
3f1582e634 Classify resale stock as player goods rather than official publication
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m39s
2026-12-06 19:26:32 +01:00
unimatrixgit
6e56432344 Add shared Exchange sorting, categories and atomic buy-and-relist 2026-12-06 19:23:55 +01:00
unimatrixgit
6783cd9034 Publish the immutable hydration HUD pack download route
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m30s
2026-12-06 16:59:18 +01:00
unimatrixgit
f07e3e8c31 Filter web cookbook recipes by production world
All checks were successful
DuneRealms Web CI / web (push) Successful in 6m43s
2026-12-06 16:18:25 +01:00
unimatrixgit
26145f2154 Preserve canonical LF release source formatting 2026-12-06 16:14:22 +01:00
unimatrixgit
339026fe2e Publish Cooking & Baking news and advance Beta to 1.0.4.0 2026-12-06 16:14:04 +01:00
unimatrixgit
b70b274982 Publish the immutable Cooking Beta network pack route
All checks were successful
DuneRealms Web CI / web (push) Successful in 6m17s
2026-12-06 15:42:40 +01:00
unimatrixgit
c5560fe0ff Keep bottled recipes and the canonical native cookbook in sync 2026-12-06 15:01:38 +01:00
unimatrixgit
abaa1f41e0 Pin the shared cooking catalogue to its actual native source path 2026-12-06 14:50:53 +01:00
unimatrixgit
c319bb476f Keep original cookbook byte checks separate from new regional recipes 2026-12-06 14:45:07 +01:00
unimatrixgit
28ebc5e043 Publish regional food and drink recipes with authored icons and lore 2026-12-06 14:44:09 +01:00
unimatrixgit
6c525f8a64 Use an authorised shared lock for Exchange delivery reads
All checks were successful
DuneRealms Web CI / web (push) Successful in 6m38s
2026-12-06 13:50:23 +01:00
unimatrixgit
577d975787 Keep company labels under political ownership
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m20s
2026-12-05 23:32:24 +01:00
unimatrixgit
03b7332653 Cover mixed journal actions and unavailable feeds
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m14s
2026-12-05 21:56:12 +01:00
unimatrixgit
188f8fcd21 Show personal and reputation arcs in one quest journal 2026-12-05 21:54:03 +01:00
unimatrixgit
091720f9e4 Merge commit 'a61b9ec93f' into fix/reputation-journal-navigation-20261205
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m19s
2026-12-05 21:25:43 +01:00
unimatrixgit
4254a96b42 Expose Reputation missions and lay out story arcs in tables 2026-12-05 21:25:42 +01:00
unimatrixgit
a61b9ec93f Allow the immutable Golden Path resource pack download
Some checks failed
DuneRealms Web CI / web (push) Has been cancelled
2026-12-05 20:54:42 +01:00
unimatrixgit
fe67c7820f Give players the Tabr entrance and reward delivery instructions
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m26s
2026-12-05 19:35:24 +01:00
unimatrixgit
96c3f601bc Merge commit 'afa1feb' into feat/golden-path-finish-web-20261205 2026-12-05 19:23:09 +01:00
unimatrixgit
79cd02f99e Verify first bank deposit from settled ATM voucher redemption
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m35s
2026-12-05 16:49:49 +01:00
unimatrixgit
afa1feb366 Pay approved Golden Path rewards through P&O 2026-12-05 15:33:59 +01:00
unimatrixgit
6d0f15082a Keep the Golden Path outside the original Reputation policy 2026-12-05 15:02:45 +01:00
unimatrixgit
1a011deb2b Bind Golden Path deliveries to exact Reputation quest claims 2026-12-05 15:01:24 +01:00
unimatrixgit
9641d1e855 Wire the Golden Path into the gated Reputation quest runtime 2026-12-05 14:55:02 +01:00
unimatrixgit
93489c6119 Prepare the Golden Path quest catalogue and evidence contract 2026-12-05 14:09:53 +01:00
unimatrixgit
633cb376e9 Keep Guild routes selectable before scheduled boarding
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m6s
2026-12-05 14:07:55 +01:00
unimatrixgit
e5845b120c Keep requested story arc selected while journal loads
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m24s
2026-12-05 08:41:24 +01:00
unimatrixgit
1fdf4dc720 Serve story artwork and replace letter branches with named arcs 2026-12-05 08:31:16 +01:00
unimatrixgit
d9f374defb Group the current mission journal into illustrated story arcs
All checks were successful
DuneRealms Web CI / web (push) Successful in 4m48s
2026-12-05 07:36:47 +01:00
unimatrixgit
0caf096fde Refresh the registered flight merge policy catalogue
All checks were successful
DuneRealms Web CI / web (push) Successful in 8m23s
2026-12-05 01:38:36 +01:00
unimatrixgit
9854418920 Record physical chestplate and elytra merges in the flight quest 2026-12-05 01:35:27 +01:00
unimatrixgit
490a4c95b2 Publish The Wild Update Beta 1.0.3.0 release and player news
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m1s
2026-12-04 00:20:30 +01:00
unimatrixgit
f2c72a6fd7 Preserve original Cookbook contract alongside seven new recipes
All checks were successful
DuneRealms Web CI / web (push) Successful in 5m47s
2026-12-03 23:00:33 +01:00
unimatrixgit
f8d8c9e206 Add source-bound spice cooker and rail Cookbook recipes and grades 2026-12-03 22:36:28 +01:00
unimatrixgit
6e27d69a09 Register explicit DuneStaff permissions and audited staff policy activation 2026-12-03 21:51:49 +01:00
unimatrixgit
8404c61329 Add Wild Update quest journal and verified open Guild travel 2026-12-03 21:44:51 +01:00
unimatrixgit
8cb398e06f Point web CI deployment to the dedicated host
All checks were successful
DuneRealms Web CI / web (push) Successful in 6m58s
2026-12-03 08:38:16 +01:00
unimatrixgit
791a6408ca Center the shared homepage navigation row
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m44s
2026-12-02 13:24:28 +01:00
unimatrixgit
985e37e5eb Center desktop navigation and account controls
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m50s
2026-12-02 13:10:29 +01:00
unimatrixgit
8c25f491f4 Queue ordinary native permission projection with first-join account links
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m37s
2026-12-02 12:06:42 +01:00
unimatrixgit
44c82e767a Give newly provisioned Lobby players a once-only 1000 DM starting budget
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m48s
2026-12-02 11:53:31 +01:00
unimatrixgit
33507e7be7 Ship verified private Lobby configuration in the canonical operations artifact
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m20s
2026-12-02 11:43:02 +01:00
unimatrixgit
d88d96e87c Provision linked Lobby accounts with private credential delivery and basic banking 2026-12-02 11:40:15 +01:00
unimatrixgit
4fd67cb42f Allow audited free Owner Home Block releases for owned companies
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m40s
2026-12-02 07:05:15 +01:00
260 changed files with 7703 additions and 579 deletions

View file

@ -44,3 +44,11 @@ test('publication comparison, artifact upload and deployment require canonical m
if (name !== 'Trigger deployment after successful CI') assert.doesNotMatch(body, /DUNEREALMS_DEPLOY_KEY|ssh .*dunedeploy@/);
}
});
test('deployment uses the verified dedicated host and its pinned SSH key', () => {
const deploy = step('Trigger deployment after successful CI');
assert.ok(deploy.includes('95.216.100.187 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICdHgR/5lVFKbOpAYR2+/Bi5LSg+8nDCSm77mJOmJKRg'));
assert.ok(deploy.includes('dunedeploy@95.216.100.187'));
assert.ok(!deploy.includes('91.107.196.242'));
});

View file

@ -87,7 +87,7 @@ jobs:
printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
trap 'rm -f ~/.ssh/deploy_key' EXIT
printf '%s\n' '91.107.196.242 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC8x/XocsIz41fWHGty0DbZhSvafSQFt9jaHHgzdr55W root@ubuntu-4gb-fsn1-1' >> ~/.ssh/known_hosts
ssh -p 22 -i ~/.ssh/deploy_key -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=yes dunedeploy@91.107.196.242 "$GITHUB_SHA"
printf '%s\n' '95.216.100.187 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICdHgR/5lVFKbOpAYR2+/Bi5LSg+8nDCSm77mJOmJKRg' >> ~/.ssh/known_hosts
ssh -p 22 -i ~/.ssh/deploy_key -o IdentitiesOnly=yes -o BatchMode=yes -o StrictHostKeyChecking=yes dunedeploy@95.216.100.187 "$GITHUB_SHA"
rm -f ~/.ssh/deploy_key

View file

@ -18,3 +18,6 @@ EXCHANGE_READ_TOKEN=
# Optional private read-only PostgreSQL role for CP inventory/sales.
# Never use the game writer role or publish this URL to browser code.
DUNE_INVENTORY_DATABASE_URL=
# Enable only after the paired native Guild travel release is installed.
GUILD_OPEN_TRAVEL=false

View file

@ -0,0 +1,16 @@
import {identity} from '../node/auth.mjs';
import {validUuid} from '../node/game-link.mjs';
import {BankError} from '../node/postbank-service.mjs';
/** Browser authentication never substitutes a client-supplied game identity. */
export function createExchangePurchase(db,runtime,{origin='https://cp.dunerealms.com',identify=identity}={}){return async request=>{
const reply=(body,status=200)=>Response.json(body,{status,headers:{'Cache-Control':'private, no-store'}});
if(request.method!=='POST')return reply({message:'Method not allowed.'},405);
if(request.headers.get('origin')!==new URL(origin).origin)return reply({message:'Invalid request origin.'},403);
if(!/^application\/json(?:;|$)/i.test(request.headers.get('content-type')||''))return reply({message:'JSON required.'},415);
const user=await identify(request,db);if(!user)return reply({message:'Sign in first.'},401);
let input;try{const text=await request.text();if(Buffer.byteLength(text)>4096)return reply({message:'Purchase request too large.'},413);input=JSON.parse(text);}catch{return reply({message:'Invalid purchase request.'},400);}
const fields=['action','requestId','listingId','amount','priceMinor','confirmed',...(input?.action==='buy_resell'?['resalePriceMinor']:[])];
const price=v=>Number.isSafeInteger(v)&&v>=1&&v<=100000000;
if(!input||typeof input!=='object'||Array.isArray(input)||Object.keys(input).length!==fields.length||!fields.every(k=>Object.hasOwn(input,k))||!['buy','buy_resell'].includes(input.action)||!validUuid(input.requestId)||!/^[1-9]\d{0,17}$/.test(input.listingId)||!Number.isInteger(input.amount)||input.amount<1||input.amount>64||!price(input.priceMinor)||input.confirmed!==true||input.action==='buy_resell'&&(!price(input.resalePriceMinor)||input.resalePriceMinor<=input.priceMinor))return reply({message:'Review the item, quantity, purchase price and resale price.'},400);
try{return reply({ok:true,...await runtime.purchaseFor(user,input)});}catch(error){return reply({message:error instanceof BankError?error.message:'Purchase could not be confirmed. Retry with the same purchase reference.'},error instanceof BankError?error.status||409:503);}
};}

View file

@ -1,3 +1,4 @@
import {orderExchange,validExchangeSort,validExchangeCategory} from './public/exchange-order.mjs';
import {visibleTradeListings} from '../node/world-trade-listings.mjs';
import {identity} from '../node/auth.mjs';
export function createExchange(db,pool,settings={}){return async request=>{
@ -5,11 +6,12 @@ export function createExchange(db,pool,settings={}){return async request=>{
const user=await identity(request,db);if(!user)return reply({message:'Sign in first.'},401);
if(request.method!=='GET')return reply({message:'Method not allowed'},405);
const view=new URL(request.url).searchParams.get('view')||'all';if(!['all','mine'].includes(view))return reply({message:'Unknown listings view.'},400);
const params=new URL(request.url).searchParams,sort=params.get('sort')||'newest',category=params.get('category')||'all';if(!validExchangeSort(sort)||!validExchangeCategory(category))return reply({message:'Unknown Exchange sorting or category.'},400);
const paused=await db.prepare('SELECT setting_value FROM website_settings WHERE setting_key=?').bind('exchange_public_enabled').first();
if(paused?.setting_value==='false')return reply({message:'The exchange is temporarily paused.'},503);
try{
const link=await db.prepare('SELECT minecraft_uuid FROM site_game_links WHERE user_id=?').bind(user.id).first(),linked=!!link?.minecraft_uuid;
if(view==='mine'&&!linked)return reply({listings:[],view,linked:false,message:'Link your Minecraft account to view your listings.'});
const result=await pool.query({text:'SELECT id::text AS id,material,payload,display_name AS "displayName",category,origin,seller_name AS seller,quantity,price::text AS price FROM dune_exchange_listings'+(view==='mine'?' WHERE seller=$1':'')+' ORDER BY id DESC LIMIT 500',...(view==='mine'?{values:[link.minecraft_uuid]}:{}),query_timeout:5000});return reply({listings:await visibleTradeListings(db,result.rows,{mine:view==='mine',hqSecret:settings.GAME_LINK_SECRET}),view,linked});
const result=await pool.query({text:'SELECT id::text AS id,material,payload,display_name AS "displayName",category,origin,seller AS "sellerUuid",seller_name AS seller,quantity,price::text AS price FROM dune_exchange_listings'+(view==='mine'?' WHERE seller=$1':'')+' ORDER BY id DESC LIMIT 200001',...(view==='mine'?{values:[link.minecraft_uuid]}:{}),query_timeout:5000});if(result.rows.length>200000)return reply({message:'The Exchange register is too large to sort safely.'},503);return reply({listings:orderExchange(await visibleTradeListings(db,result.rows.map(({sellerUuid,...row})=>({...row,own:linked&&sellerUuid?.toLowerCase()===link.minecraft_uuid.toLowerCase()})),{mine:view==='mine',hqSecret:settings.GAME_LINK_SECRET}),{sort,category}),view,linked,sort,category});
}catch{return reply({message:'The exchange is temporarily unavailable.'},503);}
};}

View file

@ -12,7 +12,8 @@ export function createMarketBridge({pool,readToken,db=null,hqSecret=''}){
if(received.length!==expected.length||!timingSafeEqual(received,expected))return reply({error:'unauthorized'},401);
if(url.search)return reply({error:'invalid_request'},400);
try{
const result=await pool.query({text:'SELECT id::text AS id,material,payload,display_name AS "displayName",category,origin,seller_name AS seller,quantity,price::text AS price FROM dune_exchange_listings ORDER BY id DESC LIMIT 500',query_timeout:5000});
const result=await pool.query({text:'SELECT id::text AS id,material,payload,display_name AS "displayName",category,origin,seller_name AS seller,quantity,price::text AS price FROM dune_exchange_listings ORDER BY id DESC LIMIT 200001',query_timeout:5000});
if(result.rows.length>200000)return reply({error:'market_too_large'},503);
return reply({listings:await visibleTradeListings(db,result.rows,{hqSecret})});
}catch{return reply({error:'market_unavailable'},503);}
};

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 675 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 796 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 623 B

Some files were not shown because too many files have changed in this diff Show more