seedcord 0.17.2-next.0 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as SEEDCORD_CONFIG_FILENAMES, t as version } from "./src
|
|
1
|
+
import { n as SEEDCORD_CONFIG_FILENAMES, t as version } from "./src-QLkp6MNS.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { Command } from "@commander-js/extra-typings";
|
|
4
4
|
import { LEVEL_COLOR, Logger, LoggerChannelRegistry, paint } from "@seedcord/logger";
|
package/dist/index.mjs
CHANGED
|
@@ -12,8 +12,8 @@ function defineConfig(config) {
|
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/index.ts
|
|
15
|
-
const version = "0.17.2
|
|
15
|
+
const version = "0.17.2";
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
18
|
export { SEEDCORD_CONFIG_FILENAMES as n, defineConfig as r, version as t };
|
|
19
|
-
//# sourceMappingURL=src
|
|
19
|
+
//# sourceMappingURL=src-QLkp6MNS.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"src
|
|
1
|
+
{"version":3,"file":"src-QLkp6MNS.mjs","names":[],"sources":["../src/core/config/schema.ts","../src/index.ts"],"sourcesContent":["/**\n * Build configuration used by the Seedcord CLI.\n */\nexport interface SeedcordBuildConfig {\n /**\n * Directory where build artifacts should be emitted.\n *\n * @defaultValue `./dist` relative to the config directory\n */\n outDir?: string;\n /**\n * Optional tsconfig path to use for builds.\n *\n * @defaultValue the nearest `tsconfig.build.json` or `tsconfig.json`\n */\n tsconfig?: string;\n /**\n * File name (or relative path) for the bootstrap file emitted inside the build output.\n */\n bootstrap?: string;\n}\n\n/**\n * HMR configuration used by the Seedcord CLI.\n */\nexport interface SeedcordHmrConfig {\n /**\n * Glob patterns for files that should trigger a full restart when changed.\n */\n restart?: string[];\n\n /**\n * Whether a failed hot-reload rolls back to the last-good version of the file.\n *\n * @defaultValue `true`\n */\n rollback?: boolean;\n\n /**\n * Optional tsconfig path to use for type checking in dev mode.\n *\n * @defaultValue the nearest `tsconfig.json`\n */\n tsconfig?: string;\n}\n\n/**\n * Configuration used by the Seedcord CLI when running `seedcord dev` or `seedcord build`.\n */\nexport interface SeedcordDevConfig {\n /**\n * Root directory used for resolving relative paths.\n *\n * @defaultValue the config directory\n */\n root?: string;\n /**\n * Path to the module whose default export is a configured Seedcord instance.\n */\n instance: string;\n /**\n * Entry file that should be executed when starting the bot (and copied into the build output).\n */\n entry: string;\n /**\n * How `seedcord dev` exposes an http bot's interactions server. This has no effect on a gateway bot.\n *\n * `true` opens a cloudflared quick tunnel and writes the interactions endpoint on every run,\n * since the hostname changes each time. An https URL is one you already serve, through a named\n * cloudflared tunnel, a tailscale funnel, or any reverse proxy. The CLI checks that URL reaches\n * this process, writes the endpoint when the stored value differs, and leaves it in place.\n *\n * @defaultValue `true`\n */\n tunnel?: boolean | string;\n /**\n * Optional build configuration overrides.\n */\n build?: SeedcordBuildConfig;\n /**\n * Optional HMR configuration.\n */\n hmr?: SeedcordHmrConfig;\n}\n\nexport type ResolvedTunnel = { mode: 'off' } | { mode: 'quick' } | { mode: 'url'; url: string };\n\nexport interface ResolvedSeedcordBuildConfig {\n outDir: string;\n bootstrap: string;\n tsconfig?: string;\n}\n\n/**\n * Fully resolved configuration with absolute file system paths.\n */\nexport interface ResolvedSeedcordDevConfig extends Required<Omit<SeedcordDevConfig, 'build' | 'hmr' | 'tunnel'>> {\n tunnel: ResolvedTunnel;\n /**\n * Absolute path to the config file that produced this resolution.\n */\n configFile: string;\n /**\n * Resolved build options with absolute paths.\n */\n build: ResolvedSeedcordBuildConfig;\n /**\n * Resolved tsconfig path to use for type checking in dev mode.\n */\n tsconfig?: string | undefined;\n /**\n * HMR configuration carried through from the user config (restart globs are matched as-is).\n */\n hmr?: SeedcordHmrConfig | undefined;\n}\n\n/**\n * Supported configuration filenames discovered by the CLI.\n */\nexport const SEEDCORD_CONFIG_FILENAMES = ['seedcord.config.ts', 'seedcord.config.mts'] as const;\n\n/**\n * Helper so config files receive proper type inference.\n */\nexport function defineConfig(config: SeedcordDevConfig): SeedcordDevConfig {\n return config;\n}\n","export {\n defineConfig,\n SEEDCORD_CONFIG_FILENAMES,\n type SeedcordBuildConfig,\n type SeedcordDevConfig,\n type SeedcordHmrConfig\n} from '@core/config/schema';\n\nexport const version = process.env.PACKAGE_VERSION ?? '0.0.0';\n"],"mappings":";;;;AAuHA,MAAa,4BAA4B,CAAC,sBAAsB,qBAAqB;;;;AAKrF,SAAgB,aAAa,QAA8C;CACvE,OAAO;AACX;;;;ACtHA,MAAa"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seedcord",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.17.2
|
|
4
|
+
"version": "0.17.2",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24.11"
|
|
7
7
|
},
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"tsx": "^4.23.5",
|
|
55
55
|
"vite": "^8.2.0",
|
|
56
56
|
"wrap-ansi": "^10.0.0",
|
|
57
|
-
"@seedcord/core": "0.1.3
|
|
58
|
-
"@seedcord/errors": "0.3.3
|
|
57
|
+
"@seedcord/core": "0.1.3",
|
|
58
|
+
"@seedcord/errors": "0.3.3",
|
|
59
59
|
"@seedcord/event-emitter": "0.1.2",
|
|
60
|
-
"@seedcord/logger": "0.1.3
|
|
60
|
+
"@seedcord/logger": "0.1.3",
|
|
61
61
|
"@seedcord/types": "0.8.2",
|
|
62
|
-
"@seedcord/utils": "0.8.3
|
|
62
|
+
"@seedcord/utils": "0.8.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@eslint-react/eslint-plugin": "^5.18.1",
|