refactor: remove legacy container and non-discord remnants

This commit is contained in:
Eyejoker
2026-03-20 01:07:46 +09:00
parent ea09560128
commit bb0628e8f4
82 changed files with 2712 additions and 10523 deletions

View File

@@ -2,6 +2,7 @@ import path from 'path';
import { describe, expect, it } from 'vitest';
import { DATA_DIR, GROUPS_DIR } from './config.js';
import {
isValidGroupFolder,
resolveGroupFolderPath,
@@ -24,16 +25,12 @@ describe('group folder validation', () => {
it('resolves safe paths under groups directory', () => {
const resolved = resolveGroupFolderPath('family-chat');
expect(resolved.endsWith(`${path.sep}groups${path.sep}family-chat`)).toBe(
true,
);
expect(resolved).toBe(path.resolve(GROUPS_DIR, 'family-chat'));
});
it('resolves safe paths under data ipc directory', () => {
const resolved = resolveGroupIpcPath('family-chat');
expect(
resolved.endsWith(`${path.sep}data${path.sep}ipc${path.sep}family-chat`),
).toBe(true);
expect(resolved).toBe(path.resolve(DATA_DIR, 'ipc', 'family-chat'));
});
it('throws for unsafe folder names', () => {