Compare commits

..
Author SHA1 Message Date
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
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
unimatrixgit
d347f7a3d7 Publish authoritative grades for every Cookbook output
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m26s
2026-11-30 23:48:13 +01:00
unimatrixgit
1e86aab3e5 Publish both approved NexusStorage promo images
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m12s
2026-11-30 21:32:15 +01:00
unimatrixgit
a4e2fc64eb Add the Ixian Powercore recipe and current device names to the Cookbook
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m21s
2026-11-30 19:49:58 +01:00
unimatrixgit
e99331a8e0 Provide the native organisation reader to the voice operator
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m48s
2026-11-30 18:55:05 +01:00
unimatrixgit
4e8d0bf49e Grant standard voice chat through the managed User rank
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m18s
2026-11-30 18:41:31 +01:00
unimatrixgit
507191ba3a Use promoted application routes for the complete Cookbook
Some checks failed
DuneRealms Web CI / web (push) Has been cancelled
2026-11-30 18:38:11 +01:00
unimatrixgit
279077a94d Serve current built cookbook instead of the stale legacy snapshot
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m25s
2026-11-30 18:24:30 +01:00
unimatrixgit
ea72de3eba Add DuneChest recipes and exact upgrade grids to the cookbook
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m47s
2026-11-30 18:06:38 +01:00
unimatrixgit
4c51624723 Retain organisation permission snapshots on the held Navigator reader
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m17s
2026-11-30 00:15:14 +01:00
unimatrixgit
51121e7b1d Lock route authority before opening its database snapshot
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m46s
2026-11-29 23:56:59 +01:00
unimatrixgit
ff0161117e Extend Navigator catalogs and owned Home Block smuggler travel 2026-11-29 23:54:36 +01:00
unimatrixgit
e94131d237 Project released Home Blocks as absent for native registration
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m31s
2026-11-29 23:06:28 +01:00
unimatrixgit
46d13ea03e Allow audited Owner Home Block release and one free registration 2026-11-29 23:04:00 +01:00
unimatrixgit
9e833a4db9 Restore scrolling for directly opened organisation control panels
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m26s
2026-11-29 21:05:16 +01:00
unimatrixgit
ebb1ac3586 Keep roster audits within the existing production column bound
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m37s
2026-11-29 20:37:20 +01:00
unimatrixgit
d9877dfd9c Add audited Owner roster operation using shared membership acceptance
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m11s
2026-11-29 20:24:54 +01:00
unimatrixgit
fb35577cfb Publish Beta 1.0.2.0 through existing release authority
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m49s
2026-11-29 17:13:56 +01:00
unimatrixgit
699c66f064 Provision scoped original-war access for the paid raid service
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m14s
2026-11-29 16:56:44 +01:00
unimatrixgit
491ad06e19 Match the production central database read interface
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m41s
2026-11-29 16:37:45 +01:00
unimatrixgit
4af783012b Reserve native raid delivery capacity before any debit 2026-11-29 16:33:17 +01:00
unimatrixgit
aa986ad962 Connect paid raids to original war and Reputation authority 2026-11-29 16:30:23 +01:00
unimatrixgit
23b1879de2 Bind raid orders and recovery to atomic Postbank receipts 2026-11-29 15:55:27 +01:00
unimatrixgit
525be204dd Define strict Imperial raid intent and acknowledgement contract 2026-11-29 15:36:17 +01:00
unimatrixgit
0097a856f7 Provision audited Rihla cash custody and persistent activation
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m38s
2026-11-29 13:56:34 +01:00
Dev
484f121fcc Restore CMS item publication and seal official treasury routing
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m6s
2026-11-29 13:12:31 +01:00
unimatrixgit
47fc12d449 Verify existing quest journeys after automatic successor starts 2026-11-29 09:09:32 +01:00
unimatrixgit
d142317b18 Rotate deferred quest successor retries without starving later players 2026-11-29 09:06:59 +01:00
unimatrixgit
ca5acc79b2 Start eligible quest-chain successors after committed claims 2026-11-29 08:55:43 +01:00
unimatrixgit
b406b337db Include Bank and right-side workspace menus in full-height layout 2026-11-29 08:30:58 +01:00
unimatrixgit
411324e4c0 Keep full Staff and User sidebar menus in normal page flow 2026-11-29 08:28:46 +01:00
unimatrixgit
c91a1a14f3 Publish shared styling from active website build instead of stale snapshot 2026-11-29 08:10:05 +01:00
235 changed files with 6119 additions and 190 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

@ -37,6 +37,9 @@
- Preserve the accepted DuneRealms design and reuse existing navigation, services and domain permissions.
- DuneForge is the existing `#forge/git-workspace` workspace; the root DuneGit register is `/git/`.
- Item cards display authoritative metadata from native Bukkit items or a verified signed HQ design. Do not invent quality, marks, lore, enchantments or stats from material names.
- Official CMS Exchange publications use the existing item-definition key and an immutable `cms.item` binding to the exact In-game Bank Treasury account. Player resales of custom items pay the player. Preserve the recovered HQ publisher, recipient-bound `/redeem` gift flow and atomic publication/payment/delivery receipts; do not replace them with placeholders or infer an official payee from an item's name or origin alone.
- Preserve real voting, banking and item-issuance boundaries. Public presentation must not expose serialized items, signatures or service credentials.
- Describe what is coded, tested, merged and deployed separately. Mark unavailable features honestly.
- The owner requires one shared header and footer across portal, CP and other website surfaces. Use one canonical source and publication path; aligning labels on separate implementations is insufficient. Verify signed-in rendering as well as emitted HTML.
- Workspace menus (Staff, User CP and Bank) must display every menu item in the normal page flow. Never add a viewport height cap, sticky scrolling container or independent scrollbar to `#sidebar` or `#sidebar-right`. Scroll the main page; do not hide overflow to conceal unreachable links. Verify this after shared stylesheet publication.

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

@ -1 +1 @@
export function clanCPDocument(source){return source.replace('<title>DuneRealms · Account Centre</title>','<title>DuneRealms · Clan CP</title>').replace(/<header class="dune-site-header"[^>]*>[\s\S]*?<\/header>/,'').replace(/<footer class="site-footer"><\/footer>/,'').replace(/<script src="https:\/\/www\.dunerealms\.com\/portal-navigation\.js" defer><\/script>/,'').replace(/<link rel="stylesheet" href="https:\/\/www\.dunerealms\.com\/portal-navigation\.css">/,'').replace(/<body\b[^>]*>/,'<body data-cp-mode="clan" class="clan-cp-shell">').replace(/<section class="command-banner">[\s\S]*?<\/section>/,'').replace('</head>','<link rel="stylesheet" href="/v2/cp-v2-clan-shell.css?v=single-scroll-2"><link rel="stylesheet" href="/v2/cp-v2-claims.css"></head>').replace('</body>','<script type="module" src="/v2/cp-v2-clan-size.mjs"></script></body>');}
export function clanCPDocument(source){return source.replace('<title>DuneRealms · Account Centre</title>','<title>DuneRealms · Clan CP</title>').replace(/<header class="dune-site-header"[^>]*>[\s\S]*?<\/header>/,'').replace(/<footer class="site-footer"><\/footer>/,'').replace(/<script src="https:\/\/www\.dunerealms\.com\/portal-navigation\.js" defer><\/script>/,'').replace(/<link rel="stylesheet" href="https:\/\/www\.dunerealms\.com\/portal-navigation\.css">/,'').replace(/<body\b[^>]*>/,'<body data-cp-mode="clan" class="clan-cp-shell">').replace(/<section class="command-banner">[\s\S]*?<\/section>/,'').replace('</head>','<link rel="stylesheet" href="/v2/cp-v2-clan-shell.css?v=single-scroll-3"><link rel="stylesheet" href="/v2/cp-v2-claims.css"></head>').replace('</body>','<script type="module" src="/v2/cp-v2-clan-size.mjs"></script></body>');}

View file

@ -1,5 +1,5 @@
import {isClandestineInstitution} from '../node/clandestine-identity.mjs';
import {membershipRequest,membershipReview,MembershipError} from '../node/membership-recruitment.mjs';
import {membershipRequest,membershipReview,MembershipError,clanAcceptanceStatements} from '../node/membership-recruitment.mjs';
import {JarvisError} from '../node/jarvis-listings.mjs';
import {JARVIS_CLAN_REQUEST_SCHEMA} from '../node/jarvis-clan-requests.mjs';
import {clanRecruitmentQuote} from '../node/jarvis-recruitment-policy.mjs';
@ -104,9 +104,7 @@ export function createClans(db,{origin='https://cp.dunerealms.com',authenticate=
if(role==='owner')return json({message:'Transfer ownership or archive the clan before leaving.'},409);
await db.batch([lock(),checked(db.prepare('DELETE FROM site_clan_members WHERE clan_id=? AND user_id=?').bind(record.id,user.id)),audit(record.id,{})]);
}else if(action==='review'){
await db.batch(await membershipReview({db,kind:'clan',user,record,body,now,canReview:['owner','officer'].includes(role)||deedRights.canManage,lock,audit:details=>audit(record.id,details),integration:requestIntegration,access,accept:async({target,link})=>{
return [{async run(connection){const sql="SELECT c.active,COALESCE(ch.charter_kind,'basic') charter_kind,(SELECT COUNT(*) FROM site_clan_members m WHERE m.clan_id=c.id) member_count FROM site_clans c LEFT JOIN site_clan_charters ch ON ch.clan_id=c.id WHERE c.id=?";const current=connection?(await connection.execute(sql,[record.id]))[0][0]:await db.prepare(sql).bind(record.id).first();if(!current||!current.active)throw new Conflict('The clan is unavailable.');const limit=clanMemberLimit(current.charter_kind);if(Number(current.member_count)>=limit)throw new Conflict(`This clan has at most ${limit} members, including the owner. An outside Consort remains a member of their own clan.`);return {success:true,meta:{changes:0}};}} ,db.prepare("INSERT INTO site_clan_members(user_id,minecraft_uuid,clan_id,clan_role,joined_at) VALUES(?,?,?,'member',?)").bind(target.user_id,link.minecraft_uuid,record.id,now),db.prepare("UPDATE site_clan_requests SET status='withdrawn',updated_at=? WHERE user_id=? AND status='pending' AND clan_id<>?").bind(now,target.user_id,record.id)];
}}));await requestIntegration?.afterReview?.().catch(()=>console.error('Recruitment completion pending reconciliation'));
await db.batch(await membershipReview({db,kind:'clan',user,record,body,now,canReview:['owner','officer'].includes(role)||deedRights.canManage,lock,audit:details=>audit(record.id,details),integration:requestIntegration,access,accept:async({target,link})=>clanAcceptanceStatements({db,record,target,link,now})}));await requestIntegration?.afterReview?.().catch(()=>console.error('Recruitment completion pending reconciliation'));
}else{
if(!deedRights.canManage)return json({message:'Only this clan’s owner can perform that action.'},403);
if(action==='motd'){

View file

@ -1,6 +1,9 @@
import {identity} from '../node/auth.mjs';
import {can} from '../node/permissions.mjs';
import {createItemDesigns} from '../node/item-designs.mjs';
import {issueItemGift} from '../node/item-gifts.mjs';
import {postHQOffer} from '../node/hq-exchange.mjs';
import {createCMSItemPublications} from '../node/cms-item-publication.mjs';
export function createItemDesignAPI(db,keys,settings={},dependencies={}){
const authenticate=dependencies.authenticate||(request=>identity(request,db));
@ -9,6 +12,7 @@ export function createItemDesignAPI(db,keys,settings={},dependencies={}){
return !!fresh&&await can(db,fresh,'web.items.manage');
});
const service=keys?createItemDesigns(db,keys,{authorize:allowed}):null;
const publications=dependencies.publications||(keys&&settings.DUNE_INVENTORY_DATABASE_URL?.startsWith('mysql:')?createCMSItemPublications(db,keys,{secret:settings.GAME_LINK_SECRET,gameSchema:new URL(settings.DUNE_INVENTORY_DATABASE_URL).pathname.slice(1),centralSchema:settings.DB_NAME,bank:dependencies.bank||db,authorize:allowed}):null);
const reply=(body,status=200)=>Response.json(body,{status,headers:{'Cache-Control':'private, no-store',Vary:'Cookie','X-Content-Type-Options':'nosniff'}});
return async request=>{
const url=new URL(request.url);if(url.pathname!=='/api/items/designs'||url.search)return reply({message:'Use the item definition register without identity overrides.'},400);
@ -16,14 +20,28 @@ export function createItemDesignAPI(db,keys,settings={},dependencies={}){
const actor=await authenticate(request);if(!actor)return reply({message:'Sign in first.'},401);
if(!await allowed(actor,db))return reply({message:'Item definition management required.'},403);
if(!service)return reply({message:'The item definition key service is unavailable.'},503);
if(request.method==='GET')return reply({definitions:await service.list(actor)});
if(request.method==='GET'){const definitions=await service.list(actor),candidates=publications?await publications.candidates(actor):[];return reply({definitions:definitions.map(row=>({...row,publication:candidates.find(p=>p.keyId===row.keyId)||row.publication||null}))});}
if(request.headers.get('origin')!==new URL(settings.CP_ORIGIN||'https://cp.dunerealms.com').origin)return reply({message:'Origin rejected.'},403);
if(!/^application\/json(?:;|$)/i.test(request.headers.get('content-type')||''))return reply({message:'JSON required.'},415);
const reader=request.body?.getReader();if(!reader)return reply({message:'Item definition required.'},400);
let input;try{const chunks=[];let length=0;while(true){const {value,done}=await reader.read();if(done)break;length+=value.byteLength;if(length>16384){await reader.cancel();return reply({message:'Item definition exceeds its bound.'},413);}chunks.push(value);}input=JSON.parse(Buffer.concat(chunks).toString('utf8'));}
catch{return reply({message:'Invalid item definition.'},400);}finally{reader.releaseLock();}
if(['seal-publication','withdraw-publication'].includes(input?.action)){
if(Object.keys(input).sort().join(',')!=='action,confirmed,keyId,listingId'||input.confirmed!==true)return reply({message:'Confirm the existing item publication and key.'},400);
if(!publications)return reply({message:'Official item publication is unavailable.'},503);
if(!await (dependencies.canGift||((user)=>can(db,user,'dune.items.give')))(actor))return reply({message:'Item issuance permission required.'},403);
try{return reply(await publications[input.action==='seal-publication'?'seal':'withdraw'](actor,input));}catch(error){return reply({message:error.status||error instanceof TypeError?error.message:'The publication was not confirmed.'},error.status||(error instanceof TypeError?400:503));}
}
if(input?.action==='gift'||input?.action==='publish'){
const gift=input.action==='gift';
const fields=gift?['action','id','revision','recipient','quantity']:['action','id','revision','requestId','quantity','priceMinor','confirmed'];
if(Object.keys(input).length!==fields.length||!fields.every(key=>Object.hasOwn(input,key)))return reply({message:'Review the item revision and publication details.'},400);
if(!await (dependencies.canGift||((user)=>can(db,user,'dune.items.give')))(actor))return reply({message:'Item issuance permission required.'},403);
try{return reply(await (gift?issueItemGift(db,service,actor,input):postHQOffer(dependencies.bank,service,actor,input,settings,{sealPublication:(tx,fields)=>publications.seal(actor,fields,{transactionStore:tx})})),201);}
catch(error){return reply({message:error instanceof TypeError?error.message:gift?'This gift could not be issued from the selected revision.':'Publication could not be confirmed. Retry the same request.'},error instanceof TypeError?400:409);}
}
if(!input||typeof input!=='object'||Array.isArray(input)||Object.keys(input).length!==4||!['action','id','revision','design'].every(key=>Object.hasOwn(input,key))||input.action!=='save')return reply({message:'Use the selected item, current revision and complete design.'},400);
try{const saved=await service.save(actor,input);return reply(saved,saved.revision===1&&!saved.replayed?201:200);}
catch(error){if(error instanceof TypeError)return reply({message:error.message},400);if(error.message==='Item definition management required.')return reply({message:error.message},403);if(/^Item definition (?:changed|revision conflict)/.test(error.message))return reply({message:error.message},409);throw error;}
catch(error){if(error instanceof TypeError)return reply({message:error.message},400);if(error.message==='Item definition management required.')return reply({message:error.message},403);if(/^Item definition (?:changed|revision conflict)/.test(error.message)||error.message.startsWith('Published item definition is sealed.'))return reply({message:error.message},409);throw error;}
};
}

View file

@ -1,11 +1,11 @@
import {readFile} from 'node:fs/promises';
import {identity} from '../node/auth.mjs';
import {can} from '../node/permissions.mjs';
export function createItemRegister(db,{authenticate=request=>identity(request,db),allowed=user=>can(db,user,'web.menu.items'),readCatalogue=()=>readFile(new URL('../web/assets/items/catalogue-v1.json',import.meta.url),'utf8')}={}){
export function createItemRegister(db,{authenticate=request=>identity(request,db),allowed=user=>can(db,user,'web.menu.items'),readCatalogue=()=>readFile(new URL('../web/assets/items/catalogue-v1.json',import.meta.url),'utf8'),publishedDesigns=async()=>[]}={}){
return async request=>{
const reply=(body,status=200)=>Response.json(body,{status,headers:{'Cache-Control':'private, no-store',Vary:'Cookie'}});
if(request.method!=='GET')return reply({message:'Method not allowed'},405);
const user=await authenticate(request);if(!user)return reply({message:'Sign in first.'},401);if(!await allowed(user))return reply({message:'Item registry access required.'},403);
try{const data=JSON.parse(await readCatalogue());if(data.schemaVersion!==1||!Array.isArray(data.items)||data.items.length>1000||!Array.isArray(data.qualityTiers))throw Error();return reply(data);}catch{return reply({message:'The published item catalogue is temporarily unavailable.'},503);}
try{const data=JSON.parse(await readCatalogue());if(data.schemaVersion!==1||!Array.isArray(data.items)||data.items.length>1000||!Array.isArray(data.qualityTiers))throw Error();const hq=(await publishedDesigns()).map(({keyId,design,template})=>({id:keyId,name:design.name,quality:design.quality,equipmentMark:design.equipmentMark,baseMaterial:template.material.toUpperCase(),image:template.image,lore:design.lore.map(line=>line.text),enchantments:design.enchantments,kind:'hq'}));const items=new Map([...hq,...data.items].map(item=>[item.id,item]));for(const tier of [{key:'mythic',label:'Mythic',color:'#e69b70'},{key:'relic',label:'Relic',color:'#efb231'}])if(hq.some(item=>item.quality===tier.key)&&!data.qualityTiers.some(t=>t.key===tier.key))data.qualityTiers.push(tier);return reply({...data,items:[...items.values()].slice(0,1000)});}catch{return reply({message:'The published item catalogue is temporarily 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

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