@rubytech/taskmaster 1.22.2 → 1.22.3
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/build-info.json +3 -3
- package/dist/gateway/server.impl.js +32 -0
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
|
@@ -28,6 +28,8 @@ import { setGatewaySigusr1RestartPolicy } from "../infra/restart.js";
|
|
|
28
28
|
import { startDiagnosticHeartbeat, stopDiagnosticHeartbeat } from "../logging/diagnostic.js";
|
|
29
29
|
import { createSubsystemLogger, runtimeForLogger } from "../logging/subsystem.js";
|
|
30
30
|
import { getMemorySearchManager } from "../memory/index.js";
|
|
31
|
+
import { resolveBundledPluginsDirDetailed } from "../plugins/bundled-dir.js";
|
|
32
|
+
import { loadPluginManifestRegistry } from "../plugins/manifest-registry.js";
|
|
31
33
|
import { runOnboardingWizard } from "../wizard/onboarding.js";
|
|
32
34
|
import { startGatewayConfigReloader } from "./config-reload.js";
|
|
33
35
|
import { getHealthCache, getHealthVersion, getPresenceVersion, incrementPresenceVersion, refreshGatewayHealthSnapshot, } from "./server/health-state.js";
|
|
@@ -131,6 +133,36 @@ export async function startGatewayServer(port = 18789, opts = {}) {
|
|
|
131
133
|
: "Unknown validation issue.";
|
|
132
134
|
throw new Error(`Invalid config at ${configSnapshot.path}.\n${issues}\nRun "${formatCliCommand("taskmaster doctor")}" to repair, then retry.`);
|
|
133
135
|
}
|
|
136
|
+
// Log plugin discovery results at startup for diagnostics.
|
|
137
|
+
{
|
|
138
|
+
const pluginRegistry = loadPluginManifestRegistry({
|
|
139
|
+
config: configSnapshot.config,
|
|
140
|
+
workspaceDir: resolveAgentWorkspaceDir(configSnapshot.config, resolveDefaultAgentId(configSnapshot.config)) ?? undefined,
|
|
141
|
+
});
|
|
142
|
+
const bundled = resolveBundledPluginsDirDetailed();
|
|
143
|
+
if (bundled.dir) {
|
|
144
|
+
logPlugins.info(`bundled extensions: ${bundled.dir} (${bundled.source})`);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
logPlugins.warn(`bundled extensions dir not found (resolved: ${bundled.resolvedPath ?? "unknown"}, source: ${bundled.source ?? "package-relative"})`);
|
|
148
|
+
}
|
|
149
|
+
const pluginIds = pluginRegistry.plugins.map((p) => p.id);
|
|
150
|
+
if (pluginIds.length > 0) {
|
|
151
|
+
logPlugins.info(`discovered plugins: ${pluginIds.join(", ")}`);
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
logPlugins.warn("no plugins discovered");
|
|
155
|
+
}
|
|
156
|
+
for (const diag of pluginRegistry.diagnostics) {
|
|
157
|
+
const msg = `plugin discovery: ${diag.message}`;
|
|
158
|
+
if (diag.level === "error")
|
|
159
|
+
logPlugins.error(msg);
|
|
160
|
+
else if (diag.level === "warn")
|
|
161
|
+
logPlugins.warn(msg);
|
|
162
|
+
else
|
|
163
|
+
logPlugins.info(msg);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
134
166
|
const autoEnable = applyPluginAutoEnable({ config: configSnapshot.config, env: process.env });
|
|
135
167
|
if (autoEnable.changes.length > 0) {
|
|
136
168
|
try {
|