|
|
@@ -4,29 +4,74 @@ import fs from 'fs';
|
|
|
|
import path from 'path';
|
|
|
|
import path from 'path';
|
|
|
|
import prompts from 'prompts';
|
|
|
|
import prompts from 'prompts';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const VALID_CATEGORIES = ['aviation', 'maritime', 'space', 'weather', 'custom'];
|
|
|
|
|
|
|
|
const VALID_ARCHITECTURES = ['polling', 'websocket'];
|
|
|
|
|
|
|
|
const VALID_SEEDER_TIERS = ['community', 'private'];
|
|
|
|
|
|
|
|
const VALID_RENDER_STYLES = ['billboard', 'model', 'point'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface CreateOptions {
|
|
|
|
|
|
|
|
core?: boolean;
|
|
|
|
|
|
|
|
displayName?: string;
|
|
|
|
|
|
|
|
description?: string;
|
|
|
|
|
|
|
|
category?: string;
|
|
|
|
|
|
|
|
architecture?: string;
|
|
|
|
|
|
|
|
seederTier?: string;
|
|
|
|
|
|
|
|
renderStyle?: string;
|
|
|
|
|
|
|
|
yes?: boolean;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function assertChoice(label: string, value: string | undefined, valid: string[]): void {
|
|
|
|
|
|
|
|
if (value !== undefined && !valid.includes(value)) {
|
|
|
|
|
|
|
|
console.error(`Error: invalid --${label} "${value}". Valid values: ${valid.join(', ')}`);
|
|
|
|
|
|
|
|
process.exit(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export const createCommand = new Command('create')
|
|
|
|
export const createCommand = new Command('create')
|
|
|
|
.description('Interactively scaffold a new WorldWideView plugin')
|
|
|
|
.description('Scaffold a new WorldWideView plugin (flags skip the matching prompt; omit them for interactive mode)')
|
|
|
|
|
|
|
|
.argument('[pluginId]', 'Unique kebab-case plugin ID (e.g. my-tracker)')
|
|
|
|
.option('-c, --core', 'Create inside packages instead of local-plugins (for core contributors)')
|
|
|
|
.option('-c, --core', 'Create inside packages instead of local-plugins (for core contributors)')
|
|
|
|
.action(async (options) => {
|
|
|
|
.option('-n, --display-name <name>', 'Display name (e.g. "My Live Tracker")')
|
|
|
|
const response = await prompts([
|
|
|
|
.option('-d, --description <text>', 'Short description')
|
|
|
|
{
|
|
|
|
.option('--category <category>', `One of: ${VALID_CATEGORIES.join(', ')}`)
|
|
|
|
|
|
|
|
.option('--architecture <architecture>', `One of: ${VALID_ARCHITECTURES.join(', ')}`)
|
|
|
|
|
|
|
|
.option('--seeder-tier <tier>', `One of: ${VALID_SEEDER_TIERS.join(', ')} (websocket only)`)
|
|
|
|
|
|
|
|
.option('--render-style <style>', `One of: ${VALID_RENDER_STYLES.join(', ')}`)
|
|
|
|
|
|
|
|
.option('-y, --yes', 'Non-interactive: fail instead of prompting for missing values')
|
|
|
|
|
|
|
|
.action(async (pluginIdArg: string | undefined, options: CreateOptions) => {
|
|
|
|
|
|
|
|
// Validate any flags supplied up front so we fail fast and consistently.
|
|
|
|
|
|
|
|
assertChoice('category', options.category, VALID_CATEGORIES);
|
|
|
|
|
|
|
|
assertChoice('architecture', options.architecture, VALID_ARCHITECTURES);
|
|
|
|
|
|
|
|
assertChoice('seeder-tier', options.seederTier, VALID_SEEDER_TIERS);
|
|
|
|
|
|
|
|
assertChoice('render-style', options.renderStyle, VALID_RENDER_STYLES);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Build the prompt list, skipping any value already supplied via flag/arg.
|
|
|
|
|
|
|
|
// In --yes mode we never prompt; missing required values are an error.
|
|
|
|
|
|
|
|
const promptList: prompts.PromptObject[] = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!pluginIdArg) {
|
|
|
|
|
|
|
|
promptList.push({
|
|
|
|
type: 'text',
|
|
|
|
type: 'text',
|
|
|
|
name: 'pluginId',
|
|
|
|
name: 'pluginId',
|
|
|
|
message: 'What is the unique ID for your plugin? (e.g. my-tracker)',
|
|
|
|
message: 'What is the unique ID for your plugin? (e.g. my-tracker)',
|
|
|
|
validate: value => value.length > 0 ? true : 'Plugin ID is required'
|
|
|
|
validate: value => value.length > 0 ? true : 'Plugin ID is required',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
if (options.displayName === undefined) {
|
|
|
|
|
|
|
|
promptList.push({
|
|
|
|
type: 'text',
|
|
|
|
type: 'text',
|
|
|
|
name: 'displayName',
|
|
|
|
name: 'displayName',
|
|
|
|
message: 'What is the display name? (e.g. My Live Tracker)',
|
|
|
|
message: 'What is the display name? (e.g. My Live Tracker)',
|
|
|
|
initial: (prev: string) => prev.replace(/-/g, ' ').replace(/\b\w/g, (l: string) => l.toUpperCase())
|
|
|
|
initial: pluginIdArg
|
|
|
|
},
|
|
|
|
? pluginIdArg.replace(/-/g, ' ').replace(/\b\w/g, (l: string) => l.toUpperCase())
|
|
|
|
{
|
|
|
|
: undefined,
|
|
|
|
type: 'text',
|
|
|
|
});
|
|
|
|
name: 'description',
|
|
|
|
}
|
|
|
|
message: 'Enter a short description:'
|
|
|
|
if (options.description === undefined) {
|
|
|
|
},
|
|
|
|
promptList.push({ type: 'text', name: 'description', message: 'Enter a short description:' });
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
if (options.category === undefined) {
|
|
|
|
|
|
|
|
promptList.push({
|
|
|
|
type: 'select',
|
|
|
|
type: 'select',
|
|
|
|
name: 'category',
|
|
|
|
name: 'category',
|
|
|
|
message: 'Which category does this plugin belong to?',
|
|
|
|
message: 'Which category does this plugin belong to?',
|
|
|
@@ -35,46 +80,71 @@ export const createCommand = new Command('create')
|
|
|
|
{ title: 'Maritime (Ship icon)', value: 'maritime' },
|
|
|
|
{ title: 'Maritime (Ship icon)', value: 'maritime' },
|
|
|
|
{ title: 'Space (Satellite icon)', value: 'space' },
|
|
|
|
{ title: 'Space (Satellite icon)', value: 'space' },
|
|
|
|
{ title: 'Weather (Cloud icon)', value: 'weather' },
|
|
|
|
{ title: 'Weather (Cloud icon)', value: 'weather' },
|
|
|
|
{ title: 'Custom (Box icon)', value: 'custom' }
|
|
|
|
{ title: 'Custom (Box icon)', value: 'custom' },
|
|
|
|
]
|
|
|
|
],
|
|
|
|
},
|
|
|
|
});
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
if (options.architecture === undefined) {
|
|
|
|
|
|
|
|
promptList.push({
|
|
|
|
type: 'select',
|
|
|
|
type: 'select',
|
|
|
|
name: 'architecture',
|
|
|
|
name: 'architecture',
|
|
|
|
message: 'How will your plugin receive data?',
|
|
|
|
message: 'How will your plugin receive data?',
|
|
|
|
choices: [
|
|
|
|
choices: [
|
|
|
|
{ title: 'REST Polling / Static Data (Frontend only)', value: 'polling' },
|
|
|
|
{ title: 'REST Polling / Static Data (Frontend only)', value: 'polling' },
|
|
|
|
{ title: 'Real-Time WebSockets (Generates backend seeder)', value: 'websocket' }
|
|
|
|
{ title: 'Real-Time WebSockets (Generates backend seeder)', value: 'websocket' },
|
|
|
|
]
|
|
|
|
],
|
|
|
|
},
|
|
|
|
});
|
|
|
|
{
|
|
|
|
}
|
|
|
|
type: (prev: string) => prev === 'websocket' ? 'select' : null,
|
|
|
|
if (options.seederTier === undefined) {
|
|
|
|
|
|
|
|
promptList.push({
|
|
|
|
|
|
|
|
// Only ask about seeder tier when architecture resolves to websocket.
|
|
|
|
|
|
|
|
type: (_prev, values) => {
|
|
|
|
|
|
|
|
const arch = options.architecture ?? values.architecture;
|
|
|
|
|
|
|
|
return arch === 'websocket' ? 'select' : null;
|
|
|
|
|
|
|
|
},
|
|
|
|
name: 'seederTier',
|
|
|
|
name: 'seederTier',
|
|
|
|
message: 'Which tier should your backend seeder belong to?',
|
|
|
|
message: 'Which tier should your backend seeder belong to?',
|
|
|
|
choices: [
|
|
|
|
choices: [
|
|
|
|
{ title: 'Community (Open data, shared)', value: 'community' },
|
|
|
|
{ title: 'Community (Open data, shared)', value: 'community' },
|
|
|
|
{ title: 'Private (Requires API keys, restricted)', value: 'private' }
|
|
|
|
{ title: 'Private (Requires API keys, restricted)', value: 'private' },
|
|
|
|
]
|
|
|
|
],
|
|
|
|
},
|
|
|
|
});
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
if (options.renderStyle === undefined) {
|
|
|
|
|
|
|
|
promptList.push({
|
|
|
|
type: 'select',
|
|
|
|
type: 'select',
|
|
|
|
name: 'renderStyle',
|
|
|
|
name: 'renderStyle',
|
|
|
|
message: 'How should entities be rendered on the 3D globe?',
|
|
|
|
message: 'How should entities be rendered on the 3D globe?',
|
|
|
|
choices: [
|
|
|
|
choices: [
|
|
|
|
{ title: '2D Billboard (Great for static icons)', value: 'billboard' },
|
|
|
|
{ title: '2D Billboard (Great for static icons)', value: 'billboard' },
|
|
|
|
{ title: '3D Model with LOD (Transitions 2D to 3D)', value: 'model' },
|
|
|
|
{ title: '3D Model with LOD (Transitions 2D to 3D)', value: 'model' },
|
|
|
|
{ title: 'Simple Point (High performance dots)', value: 'point' }
|
|
|
|
{ title: 'Simple Point (High performance dots)', value: 'point' },
|
|
|
|
]
|
|
|
|
],
|
|
|
|
}
|
|
|
|
});
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!response.pluginId) {
|
|
|
|
if (options.yes && promptList.length > 0) {
|
|
|
|
|
|
|
|
const missing = promptList.map(p => p.name).join(', ');
|
|
|
|
|
|
|
|
console.error(`Error: --yes given but these required values are missing: ${missing}`);
|
|
|
|
|
|
|
|
process.exit(1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const answers = promptList.length > 0 ? await prompts(promptList) : {};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Merge flags/args (authoritative) over interactive answers.
|
|
|
|
|
|
|
|
const pluginId: string | undefined = pluginIdArg ?? answers.pluginId;
|
|
|
|
|
|
|
|
const displayName: string = options.displayName ?? answers.displayName ?? '';
|
|
|
|
|
|
|
|
const description: string = options.description ?? answers.description ?? '';
|
|
|
|
|
|
|
|
const category: string = options.category ?? answers.category;
|
|
|
|
|
|
|
|
const architecture: string = options.architecture ?? answers.architecture;
|
|
|
|
|
|
|
|
const seederTier: string | undefined = options.seederTier ?? answers.seederTier;
|
|
|
|
|
|
|
|
const renderStyle: string = options.renderStyle ?? answers.renderStyle;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!pluginId) {
|
|
|
|
console.log('Plugin creation cancelled.');
|
|
|
|
console.log('Plugin creation cancelled.');
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const { pluginId, displayName, description, category, architecture, seederTier, renderStyle } = response;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const targetBaseDir = options.core ? 'packages' : 'local-plugins';
|
|
|
|
const targetBaseDir = options.core ? 'packages' : 'local-plugins';
|
|
|
|
const pluginDir = path.join(process.cwd(), targetBaseDir, `wwv-plugin-${pluginId}`);
|
|
|
|
const pluginDir = path.join(process.cwd(), targetBaseDir, `wwv-plugin-${pluginId}`);
|
|
|
|
|
|
|
|
|
|
|
@@ -85,21 +155,19 @@ export const createCommand = new Command('create')
|
|
|
|
|
|
|
|
|
|
|
|
fs.mkdirSync(pluginDir, { recursive: true });
|
|
|
|
fs.mkdirSync(pluginDir, { recursive: true });
|
|
|
|
|
|
|
|
|
|
|
|
// Determine category icon
|
|
|
|
|
|
|
|
const iconMap: Record<string, string> = {
|
|
|
|
const iconMap: Record<string, string> = {
|
|
|
|
aviation: 'Plane',
|
|
|
|
aviation: 'Plane',
|
|
|
|
maritime: 'Ship',
|
|
|
|
maritime: 'Ship',
|
|
|
|
space: 'Satellite',
|
|
|
|
space: 'Satellite',
|
|
|
|
weather: 'Cloud',
|
|
|
|
weather: 'Cloud',
|
|
|
|
custom: 'Box'
|
|
|
|
custom: 'Box',
|
|
|
|
};
|
|
|
|
};
|
|
|
|
const defaultIcon = iconMap[category] || 'Box';
|
|
|
|
const defaultIcon = iconMap[category] || 'Box';
|
|
|
|
|
|
|
|
|
|
|
|
// Package.json boilerplate
|
|
|
|
const streamUrlField = architecture === 'websocket'
|
|
|
|
const streamUrlField = architecture === 'websocket'
|
|
|
|
? `\n "streamUrl": "wss://dataenginev2.worldwideview.dev/stream",`
|
|
|
|
? `\n "streamUrl": "wss://dataenginev2.worldwideview.dev/stream",`
|
|
|
|
|
|
|
|
: '';
|
|
|
|
: '';
|
|
|
|
|
|
|
|
|
|
|
|
const packageJsonContent = `{
|
|
|
|
const packageJsonContent = `{
|
|
|
|
"name": "@worldwideview/wwv-plugin-${pluginId}",
|
|
|
|
"name": "@worldwideview/wwv-plugin-${pluginId}",
|
|
|
|
"version": "1.0.0",
|
|
|
|
"version": "1.0.0",
|
|
|
@@ -131,7 +199,6 @@ export const createCommand = new Command('create')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
// index.ts boilerplate
|
|
|
|
|
|
|
|
const renderBoilerplate = {
|
|
|
|
const renderBoilerplate = {
|
|
|
|
billboard: `return {
|
|
|
|
billboard: `return {
|
|
|
|
type: 'billboard',
|
|
|
|
type: 'billboard',
|
|
|
@@ -152,14 +219,14 @@ export const createCommand = new Command('create')
|
|
|
|
size: 8,
|
|
|
|
size: 8,
|
|
|
|
outlineColor: '#ffffff',
|
|
|
|
outlineColor: '#ffffff',
|
|
|
|
outlineWidth: 2
|
|
|
|
outlineWidth: 2
|
|
|
|
};`
|
|
|
|
};`,
|
|
|
|
}[renderStyle as string] || `return {};`;
|
|
|
|
}[renderStyle as string] || `return {};`;
|
|
|
|
|
|
|
|
|
|
|
|
const fetchBoilerplate = architecture === 'polling'
|
|
|
|
const fetchBoilerplate = architecture === 'polling'
|
|
|
|
? `\n async fetch(): Promise<GeoEntity[]> {
|
|
|
|
? `\n async fetch(): Promise<GeoEntity[]> {
|
|
|
|
// Implement REST polling logic here
|
|
|
|
// Implement REST polling logic here
|
|
|
|
return [];
|
|
|
|
return [];
|
|
|
|
}\n`
|
|
|
|
}\n`
|
|
|
|
: '';
|
|
|
|
: '';
|
|
|
|
|
|
|
|
|
|
|
|
const indexTsContent = `import { WorldPlugin, GeoEntity, CesiumEntityOptions } from '@worldwideview/wwv-plugin-sdk';
|
|
|
|
const indexTsContent = `import { WorldPlugin, GeoEntity, CesiumEntityOptions } from '@worldwideview/wwv-plugin-sdk';
|
|
|
@@ -195,41 +262,75 @@ ${fetchBoilerplate}
|
|
|
|
|
|
|
|
|
|
|
|
console.log(`\n✅ Successfully created plugin frontend at ${pluginDir}`);
|
|
|
|
console.log(`\n✅ Successfully created plugin frontend at ${pluginDir}`);
|
|
|
|
|
|
|
|
|
|
|
|
// Generate seeder backend if requested
|
|
|
|
// Generate seeder backend if requested. Matches the real community/private
|
|
|
|
|
|
|
|
// seeder layout: local-seeders/<tier>/packages/<pluginId>/ with a tsup build
|
|
|
|
|
|
|
|
// and a src/index.ts that exports the canonical { name, cron, fn } shape.
|
|
|
|
if (architecture === 'websocket' && seederTier) {
|
|
|
|
if (architecture === 'websocket' && seederTier) {
|
|
|
|
const seederDir = path.join(process.cwd(), 'local-seeders', seederTier, pluginId);
|
|
|
|
const seederDir = path.join(process.cwd(), 'local-seeders', seederTier, 'packages', pluginId);
|
|
|
|
|
|
|
|
|
|
|
|
if (!fs.existsSync(seederDir)) {
|
|
|
|
if (fs.existsSync(seederDir)) {
|
|
|
|
fs.mkdirSync(seederDir, { recursive: true });
|
|
|
|
console.error(`Warning: Seeder directory ${seederDir} already exists. Skipping seeder scaffold.`);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
const seederContent = `// WWV Data Engine Seeder for ${pluginId}
|
|
|
|
fs.mkdirSync(path.join(seederDir, 'src'), { recursive: true });
|
|
|
|
export default async function run(context) {
|
|
|
|
|
|
|
|
console.log('Starting ${displayName} seeder...');
|
|
|
|
const seederPackageJson = `{
|
|
|
|
|
|
|
|
"name": "@wwv-seeders/${pluginId}",
|
|
|
|
// Example: Emit a mock entity to the engine
|
|
|
|
"version": "1.0.0",
|
|
|
|
setInterval(() => {
|
|
|
|
"main": "dist/index.mjs",
|
|
|
|
context.emit({
|
|
|
|
"scripts": {
|
|
|
|
id: '${pluginId}-mock-1',
|
|
|
|
"build": "tsup"
|
|
|
|
lat: 0,
|
|
|
|
},
|
|
|
|
lng: 0,
|
|
|
|
"dependencies": {
|
|
|
|
alt: 10000,
|
|
|
|
"@worldwideview/seeder-sdk": "^1.0.0"
|
|
|
|
heading: 0,
|
|
|
|
}
|
|
|
|
velocity: 250,
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
status: 'active'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
`;
|
|
|
|
fs.writeFileSync(path.join(seederDir, 'seeder.mjs'), seederContent);
|
|
|
|
|
|
|
|
|
|
|
|
const tsupConfig = `import { defineConfig } from 'tsup';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
|
|
|
|
entry: ['src/index.ts'],
|
|
|
|
|
|
|
|
format: ['esm'],
|
|
|
|
|
|
|
|
clean: true,
|
|
|
|
|
|
|
|
shims: true,
|
|
|
|
|
|
|
|
noExternal: [/@wwv-seeders\\/.*/],
|
|
|
|
|
|
|
|
external: [/^(?!@wwv-seeders)[a-z@].*/],
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// The seeder's exported `name` MUST equal the frontend plugin id
|
|
|
|
|
|
|
|
// (kebab-case). See ADR-0002 / data-engine-architecture.md section 6.
|
|
|
|
|
|
|
|
const seederIndexTs = `import { setLiveSnapshot, fetchWithTimeout, withRetry } from '@worldwideview/seeder-sdk';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async function seed${pluginId.replace(/-/g, '')}() {
|
|
|
|
|
|
|
|
// TODO: fetch from the real data source and map into GeoEntity-shaped items.
|
|
|
|
|
|
|
|
const items: Array<{ id: string; lat: number; lon: number; name: string }> = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await setLiveSnapshot('${pluginId}', {
|
|
|
|
|
|
|
|
source: '${pluginId}',
|
|
|
|
|
|
|
|
fetchedAt: new Date().toISOString(),
|
|
|
|
|
|
|
|
items,
|
|
|
|
|
|
|
|
totalCount: items.length,
|
|
|
|
|
|
|
|
}, 3600);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
|
|
|
name: '${pluginId}', // MUST match the frontend plugin id exactly (kebab-case)
|
|
|
|
|
|
|
|
cron: '*/15 * * * *',
|
|
|
|
|
|
|
|
fn: seed${pluginId.replace(/-/g, '')},
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fs.writeFileSync(path.join(seederDir, 'package.json'), seederPackageJson);
|
|
|
|
|
|
|
|
fs.writeFileSync(path.join(seederDir, 'tsup.config.ts'), tsupConfig);
|
|
|
|
|
|
|
|
fs.writeFileSync(path.join(seederDir, 'src', 'index.ts'), seederIndexTs);
|
|
|
|
console.log(`✅ Successfully created plugin seeder at ${seederDir}`);
|
|
|
|
console.log(`✅ Successfully created plugin seeder at ${seederDir}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
console.log(`\nNext steps:
|
|
|
|
console.log(`\nNext steps:
|
|
|
|
1. Run \`pnpm install\` from the project root.
|
|
|
|
1. Run \`pnpm install\` from the project root.
|
|
|
|
2. Edit \`index.ts\` in your plugin directory.
|
|
|
|
2. Edit \`src/index.ts\` in your plugin directory.
|
|
|
|
${architecture === 'websocket' ? '3. Edit `seeder.mjs` in your local-seeders directory.' : ''}
|
|
|
|
${architecture === 'websocket' && seederTier ? `3. Edit \`src/index.ts\` in local-seeders/${seederTier}/packages/${pluginId}/, then \`pnpm build\` it.` : ''}
|
|
|
|
`);
|
|
|
|
`);
|
|
|
|
});
|
|
|
|
});
|