// SHiREVault storage adapter.
// Final LimbForge projects must use the SHiREVault network drive at /SHiRELimbs.
// During the Base44 MVP, Base44-hosted files are temporary prototype storage only.

const verify = settings => ({
  mounted: settings?.shireVaultStatus === 'connected',
  writable: settings?.shireVaultWritable === true,
  pathValid: settings?.shireVaultPath === '/SHiRELimbs'
});

export const storageAdapter = {
  prototypeLabel: 'Temporary Base44 prototype storage — not SHiREVault',
  requiredRoot: '/SHiRELimbs',
  verifyFinalStorage: verify,
  canFinalize: settings => {
    const v = verify(settings);
    return v.mounted && v.writable && v.pathValid;
  }
};