@warlock.js/devtools 5.61.0 → 5.63.0

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/cjs/{extract-8kaX_cUV.cjs → ai-source-CeHZDYG1.cjs} +449 -408
  3. package/cjs/ai-source-CeHZDYG1.cjs.map +1 -0
  4. package/cjs/{attach-D5aMqUnA.cjs → attach-D9gWc6lU.cjs} +19 -19
  5. package/cjs/attach-D9gWc6lU.cjs.map +1 -0
  6. package/cjs/{boot-D0nF-7w3.cjs → boot-Guumt-du.cjs} +10 -8
  7. package/cjs/boot-Guumt-du.cjs.map +1 -0
  8. package/cjs/{http-1nnpAoI7.cjs → http-CPbhLN61.cjs} +5 -5
  9. package/cjs/{http-1nnpAoI7.cjs.map → http-CPbhLN61.cjs.map} +1 -1
  10. package/cjs/index.cjs +1 -1
  11. package/cjs/{process-panel-D3D9Y_dc.cjs → process-panel-Dev6eg_f.cjs} +2 -2
  12. package/cjs/{process-panel-D3D9Y_dc.cjs.map → process-panel-Dev6eg_f.cjs.map} +1 -1
  13. package/cjs/{runs-DECWPGnq.cjs → runs-DXTf_o5P.cjs} +10 -11
  14. package/cjs/runs-DXTf_o5P.cjs.map +1 -0
  15. package/cjs/{server-DLT3uPef.cjs → server-Dc0YdP6Y.cjs} +6 -6
  16. package/cjs/{server-DLT3uPef.cjs.map → server-Dc0YdP6Y.cjs.map} +1 -1
  17. package/cjs/{src-BZiSv8A1.cjs → src-Ca1gNdZj.cjs} +15 -15
  18. package/cjs/{src-BZiSv8A1.cjs.map → src-Ca1gNdZj.cjs.map} +1 -1
  19. package/cjs/{stream-route-B6WAjbPG.cjs → stream-route-qEHoPVth.cjs} +21 -15
  20. package/cjs/stream-route-qEHoPVth.cjs.map +1 -0
  21. package/esm/ai/reports/runs.mjs +5 -6
  22. package/esm/ai/reports/runs.mjs.map +1 -1
  23. package/esm/ai/rollup/extract.mjs +21 -4
  24. package/esm/ai/rollup/extract.mjs.map +1 -1
  25. package/esm/panels.mjs +14 -1
  26. package/esm/panels.mjs.map +1 -1
  27. package/esm/production/boot.mjs +4 -2
  28. package/esm/production/boot.mjs.map +1 -1
  29. package/esm/production/options.d.mts +5 -0
  30. package/esm/production/options.d.mts.map +1 -1
  31. package/esm/production/options.mjs.map +1 -1
  32. package/esm/server/ai-routes.mjs +11 -5
  33. package/esm/server/ai-routes.mjs.map +1 -1
  34. package/esm/sources/ai-source.d.mts.map +1 -1
  35. package/esm/sources/ai-source.mjs +3 -3
  36. package/esm/sources/ai-source.mjs.map +1 -1
  37. package/esm/types.d.mts +5 -2
  38. package/esm/types.d.mts.map +1 -1
  39. package/llms-full.txt +5 -2
  40. package/package.json +8 -8
  41. package/skills/SKILL.md +5 -2
  42. package/cjs/attach-D5aMqUnA.cjs.map +0 -1
  43. package/cjs/boot-D0nF-7w3.cjs.map +0 -1
  44. package/cjs/extract-8kaX_cUV.cjs.map +0 -1
  45. package/cjs/runs-DECWPGnq.cjs.map +0 -1
  46. package/cjs/stream-route-B6WAjbPG.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  const require_errors = require("./errors-DNQ-g49I.cjs");
2
- const require_extract = require("./extract-8kaX_cUV.cjs");
3
- const require_attach = require("./attach-D5aMqUnA.cjs");
2
+ const require_ai_source = require("./ai-source-CeHZDYG1.cjs");
3
+ const require_attach = require("./attach-D9gWc6lU.cjs");
4
4
 
5
5
  //#region ../../packages/devtools/src/production/boot.ts
6
6
  const AI_REPORT_TABS = [
@@ -46,7 +46,7 @@ async function attachProductionAi(options, warn) {
46
46
  return {
47
47
  feedAvailable: true,
48
48
  reports: {
49
- ...require_extract.toAiUnavailableView(require_extract.describeAiUnavailable("reports-off")),
49
+ ...require_ai_source.toAiUnavailableView(require_ai_source.describeAiUnavailable("reports-off")),
50
50
  async dispose() {}
51
51
  }
52
52
  };
@@ -83,7 +83,7 @@ async function bootProductionDevtools(input) {
83
83
  Promise.resolve().then(() => require("./auth-ChHh5E7j.cjs")),
84
84
  Promise.resolve().then(() => require("./capture-D2k0GnBN.cjs")),
85
85
  Promise.resolve().then(() => require("./insights-COA3u37q.cjs")),
86
- Promise.resolve().then(() => require("./http-1nnpAoI7.cjs"))
86
+ Promise.resolve().then(() => require("./http-CPbhLN61.cjs"))
87
87
  ]);
88
88
  const store = await createCascadeStore({ shares: production.share.enabled });
89
89
  await store.verify();
@@ -144,11 +144,13 @@ async function bootProductionDevtools(input) {
144
144
  });
145
145
  input.onInsights?.(insights);
146
146
  const state = httpModule.createDashboardState(store, production.path);
147
- const { builtIn: shownTabs, panels } = require_extract.productionPanels(input.panels, production.panels);
147
+ const { builtIn: requestedTabs, panels } = require_ai_source.productionPanels(input.panels, production.panels);
148
+ const { builtIn: shownTabs, ignored: ignoredAiTabs } = require_ai_source.withoutDevelopmentAiTabs(requestedTabs, production.panels);
149
+ if (ignoredAiTabs.length > 0) warn("The Runs and Agents tabs are development tabs, so production.panels.ai and production.panels.agents are ignored. Production shows AI totals in Reports, Models and Errors.");
148
150
  const aiWiring = shownTabs.some((tab) => AI_REPORT_TABS.includes(tab)) ? await attachProductionAi(options, warn) : {
149
151
  feedAvailable: false,
150
152
  reports: {
151
- ...require_extract.toAiUnavailableView(require_extract.describeAiUnavailable("reports-off")),
153
+ ...require_ai_source.toAiUnavailableView(require_ai_source.describeAiUnavailable("reports-off")),
152
154
  async dispose() {}
153
155
  }
154
156
  };
@@ -156,7 +158,7 @@ async function bootProductionDevtools(input) {
156
158
  stops.push(() => aiWiring.reports.dispose());
157
159
  if (typeof core.excludeFromRequestLog === "function") stops.push(core.excludeFromRequestLog(production.path));
158
160
  if (builtIn.includes("mail")) {
159
- const { attachMailSource } = await Promise.resolve().then(() => require("./src-BZiSv8A1.cjs")).then((n) => n.mail_source_exports);
161
+ const { attachMailSource } = await Promise.resolve().then(() => require("./src-Ca1gNdZj.cjs")).then((n) => n.mail_source_exports);
160
162
  stops.push(await attachMailSource(capture.collector));
161
163
  }
162
164
  httpModule.mountProductionDevtools(server, {
@@ -202,4 +204,4 @@ async function bootProductionDevtools(input) {
202
204
 
203
205
  //#endregion
204
206
  exports.bootProductionDevtools = bootProductionDevtools;
205
- //# sourceMappingURL=boot-D0nF-7w3.cjs.map
207
+ //# sourceMappingURL=boot-Guumt-du.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boot-Guumt-du.cjs","names":["DEVTOOLS_MOUNTED_KEY","loadAiFeed","attachAiReports","resolveDevtoolsAiOptions","toAiUnavailableView","describeAiUnavailable","resolveProductionOptions","DevtoolsProductionConfigError","productionPanels","withoutDevelopmentAiTabs"],"sources":["../../../../../../../packages/devtools/src/production/boot.ts"],"sourcesContent":["import type { FastifyInstance } from \"fastify\";\nimport {\n attachAiReports,\n DEVTOOLS_MOUNTED_KEY,\n type DevtoolsAiReports,\n loadAiFeed,\n} from \"../ai/attach\";\nimport { resolveDevtoolsAiOptions } from \"../ai/options\";\nimport { type MountedDevtoolsPanel, productionPanels, withoutDevelopmentAiTabs } from \"../panels\";\nimport type { MountDevtoolsRoutesDeps } from \"../server/types\";\nimport type { ResolvedDevtoolsOptions } from \"../types\";\nimport { DevtoolsProductionConfigError } from \"./errors\";\nimport type { DevtoolsInsights } from \"./insights/types\";\nimport { resolveProductionOptions } from \"./options\";\nimport { describeAiUnavailable, toAiUnavailableView } from \"../sources/ai-source\";\n\n/** What the connector hands production boot. */\nexport type BootProductionDevtoolsInput = {\n options: ResolvedDevtoolsOptions;\n env: Readonly<Record<string, string | undefined>>;\n server: FastifyInstance;\n /** Package panels loaded with `mode: \"production\"` (not yet filtered). */\n panels: readonly MountedDevtoolsPanel[];\n /** The route deps the connector builds for development, reused (requestLog, listRoutes, ai, …). */\n routes: Omit<MountDevtoolsRoutesDeps, \"collector\" | \"options\" | \"isDevelopment\">;\n /** Reads one config value (`encryption.key`); defaults to core's `config.get`. */\n readConfig?: (key: string) => unknown;\n /** Called once the shared insights exist (panels read captured error counts through them). */\n onInsights?: (insights: DevtoolsInsights) => void;\n log: {\n info(module: string, action: string, message: string): unknown;\n warn(module: string, action: string, message: string): unknown;\n error(module: string, action: string, message: string): unknown;\n };\n};\n\nconst AI_REPORT_TABS: readonly string[] = [\"ai-reports\", \"ai-models\", \"ai-errors\"];\n\n/** Tells other packages (Panoptic) that devtools is mounted here and where. */\nfunction publishMounted(path: string): void {\n (globalThis as Record<symbol, unknown>)[DEVTOOLS_MOUNTED_KEY] = { path, mode: \"production\" };\n}\n\nfunction clearMounted(): void {\n delete (globalThis as Record<symbol, unknown>)[DEVTOOLS_MOUNTED_KEY];\n}\n\n/**\n * Loads the AI feed and starts this process's rollup writer (every process of\n * a deployment adds into the same table). Never throws: a failure leaves the\n * AI report tabs answering their unavailable view.\n */\nasync function attachProductionAi(\n options: ResolvedDevtoolsOptions,\n warn: (message: string) => void,\n): Promise<{ feedAvailable: boolean; reports: DevtoolsAiReports }> {\n const loaded = await loadAiFeed();\n\n if (\"unavailable\" in loaded) {\n return { feedAvailable: false, reports: { ...loaded.unavailable, async dispose() {} } };\n }\n\n try {\n return {\n feedAvailable: true,\n reports: await attachAiReports({\n feed: loaded.feed,\n options: resolveDevtoolsAiOptions(options.ai, \"production\"),\n warn,\n }),\n };\n } catch (error) {\n warn(`AI reports could not start: ${error instanceof Error ? error.message : String(error)}`);\n\n return {\n feedAvailable: true,\n reports: { ...toAiUnavailableView(describeAiUnavailable(\"reports-off\")), async dispose() {} },\n };\n }\n}\n\n/** `/ops-…`: the first part of the path, enough to recognise it and not enough to use it. */\nexport function maskDashboardPath(path: string): string {\n const match = /^\\/[A-Za-z]{1,8}-/.exec(path);\n\n return `${match ? match[0] : \"/\"}…`;\n}\n\n/** The key core encrypts with: 64 hex characters. */\nfunction hasEncryptionKey(value: unknown): boolean {\n return typeof value === \"string\" && /^[0-9a-fA-F]{64}$/.test(value);\n}\n\n/**\n * Starts the production monitor, in this order: resolve options (env) →\n * check `encryption.key` (DT006) → cascade store (DT005) → `store.verify()`\n * (DT008) → `ensureFirstAdmin()` (DT003/DT004) → instance info → capture\n * (attach hooks) → resource monitor, health history, jobs reader → local\n * reporter → report writer → shared insights → `excludeFromRequestLog(path)`\n * → mount. Logs one line with the path masked (`/ops-…`), never the full path.\n * Any `DevtoolsProductionConfigError` propagates: the app does not boot.\n *\n * Returns the disposer the connector calls at shutdown (flush samples, stop\n * timers, detach hooks).\n */\nexport async function bootProductionDevtools(\n input: BootProductionDevtoolsInput,\n): Promise<() => Promise<void>> {\n const { options, env, server, log } = input;\n const production = resolveProductionOptions(options.production, env);\n const core = await import(\"@warlock.js/core\");\n const readConfig = input.readConfig ?? ((key: string) => core.config.get(key));\n\n if (!hasEncryptionKey(readConfig(\"encryption.key\"))) {\n throw new DevtoolsProductionConfigError(\"DT006\");\n }\n\n const [{ createCascadeStore }, authModule, captureModule, insightsModule, httpModule] =\n await Promise.all([\n import(\"./store\"),\n import(\"./auth\"),\n import(\"./capture\"),\n import(\"./insights\"),\n import(\"./http\"),\n ]);\n\n const store = await createCascadeStore({ shares: production.share.enabled });\n\n await store.verify();\n\n const warn = (message: string): void => {\n log.warn(\"devtools\", \"production\", message);\n };\n if (production.twoFactor === \"off\") {\n warn(\n 'Two-factor sign-in is off for the dashboard (production.twoFactor is \"off\"): anyone with a password can sign in. Set it to \"admins\" or \"everyone\" to require an authenticator app or passkey.',\n );\n }\n\n const instance = insightsModule.createInstanceInfo();\n const [crypto, passkeys] = await Promise.all([\n authModule.defaultDevtoolsCrypto(),\n authModule.loadDevtoolsPasskeys(),\n ]);\n const auth = authModule.createDevtoolsAuth({\n store,\n options: production,\n instance,\n crypto,\n passkeys,\n warn,\n });\n\n await auth.ensureFirstAdmin();\n\n const isDashboardPath = (path: string): boolean =>\n path === production.path || path.startsWith(`${production.path}/`);\n const capture = captureModule.createProductionCapture({\n options,\n production,\n instance,\n store,\n isDashboardPath,\n warn,\n });\n const stops: (() => unknown)[] = [];\n\n try {\n stops.push(await capture.attach());\n\n const resources = insightsModule.createResourceMonitor();\n const health = insightsModule.createHealthHistory();\n\n resources.start();\n health.start();\n stops.push(\n () => resources.stop(),\n () => health.stop(),\n );\n\n const reporter = insightsModule.createLocalReporter({\n instance,\n resources,\n health,\n jobs: insightsModule.createJobsReader(),\n queries: capture.queries,\n routes: capture.routes,\n errors: capture.errors,\n logs: capture.logs,\n counters: () => capture.counters(),\n });\n const writer = insightsModule.startReportWriter({ reporter, store, production, warn });\n\n stops.push(() => writer.stop());\n\n const insights = insightsModule.createSharedInsights({\n store,\n reporter,\n sampleRate: production.sampleRate,\n });\n input.onInsights?.(insights);\n\n const state = httpModule.createDashboardState(store, production.path);\n const { builtIn: requestedTabs, panels } = productionPanels(input.panels, production.panels);\n\n // Runs and Agents read per-process run details, which production does not keep (it keeps hourly totals).\n const { builtIn: shownTabs, ignored: ignoredAiTabs } = withoutDevelopmentAiTabs(\n requestedTabs,\n production.panels,\n );\n\n if (ignoredAiTabs.length > 0) {\n warn(\n \"The Runs and Agents tabs are development tabs, so production.panels.ai and production.panels.agents are ignored. Production shows AI totals in Reports, Models and Errors.\",\n );\n }\n\n // The AI report tabs are listed only when the app has the AI feed (Panoptic), unless the project turned one on.\n // With every report tab turned off, no totals are written (and no missing-table warning is logged).\n const aiWiring = shownTabs.some((tab) => AI_REPORT_TABS.includes(tab))\n ? await attachProductionAi(options, warn)\n : {\n feedAvailable: false,\n reports: {\n ...toAiUnavailableView(describeAiUnavailable(\"reports-off\")),\n async dispose() {},\n },\n };\n const builtIn = aiWiring.feedAvailable\n ? shownTabs\n : shownTabs.filter((tab) => !AI_REPORT_TABS.includes(tab) || production.panels[tab] === true);\n\n stops.push(() => aiWiring.reports.dispose());\n\n // The dashboard's own requests are not worth a line in the request log, and its sign-in bodies must not reach it.\n if (typeof core.excludeFromRequestLog === \"function\") {\n stops.push(core.excludeFromRequestLog(production.path));\n }\n\n // Mail previews exist only when the project turned that tab on.\n if (builtIn.includes(\"mail\")) {\n const { attachMailSource } = await import(\"../sources/mail-source\");\n\n stops.push(await attachMailSource(capture.collector));\n }\n\n httpModule.mountProductionDevtools(server, {\n routes: {\n ...input.routes,\n aiReports: aiWiring.reports,\n collector: capture.collector,\n options,\n isDevelopment: () => false,\n },\n production,\n store,\n auth,\n capture,\n insights,\n instance,\n panels,\n builtInPanels: builtIn,\n state,\n warn,\n ...(typeof core.answerUnknownUrl === \"function\"\n ? { answerUnknownUrl: core.answerUnknownUrl }\n : {}),\n hmac: (value) => crypto.hmac(value),\n });\n\n publishMounted(production.path);\n stops.push(clearMounted);\n\n log.info(\n \"devtools\",\n \"ready\",\n `devtools production monitor mounted at ${maskDashboardPath(production.path)} (DEVTOOLS_PATH)`,\n );\n } catch (error) {\n for (const stop of stops.splice(0).reverse()) {\n try {\n void Promise.resolve(stop()).catch(() => undefined);\n } catch {\n // Cleanup after a failed boot must not hide the real error.\n }\n }\n\n void capture.dispose().catch(() => undefined);\n\n throw error;\n }\n\n // Returns the promise of the stops so the connector can wait for the final AI totals flush.\n return () => {\n const finished: Promise<unknown>[] = [];\n\n for (const stop of stops.splice(0).reverse()) {\n try {\n finished.push(Promise.resolve(stop()).catch(() => undefined));\n } catch {\n // Shutdown continues past a failing step.\n }\n }\n\n finished.push(capture.dispose().catch(() => undefined));\n\n return Promise.all(finished).then(() => undefined);\n };\n}\n"],"mappings":";;;;;AAoCA,MAAM,iBAAoC;CAAC;CAAc;CAAa;AAAW;;AAGjF,SAAS,eAAe,MAAoB;CAC1C,AAAC,WAAuCA,uCAAwB;EAAE;EAAM,MAAM;CAAa;AAC7F;AAEA,SAAS,eAAqB;CAC5B,OAAQ,WAAuCA;AACjD;;;;;;AAOA,eAAe,mBACb,SACA,MACiE;CACjE,MAAM,SAAS,MAAMC,0BAAW;CAEhC,IAAI,iBAAiB,QACnB,OAAO;EAAE,eAAe;EAAO,SAAS;GAAE,GAAG,OAAO;GAAa,MAAM,UAAU,CAAC;EAAE;CAAE;CAGxF,IAAI;EACF,OAAO;GACL,eAAe;GACf,SAAS,MAAMC,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CAAC,CAAC,QAAQ,GACzC,IAAI;GACF,SAAS,KAAK,QAAQ,QAAQ,KAAK,CAAC,CAAC,CAAC,YAAY,MAAS,CAAC;EAC9D,QAAQ,CAER;EAGF,SAAS,KAAK,QAAQ,QAAQ,CAAC,CAAC,YAAY,MAAS,CAAC;EAEtD,OAAO,QAAQ,IAAI,QAAQ,CAAC,CAAC,WAAW,MAAS;CACnD;AACF"}
@@ -1,8 +1,8 @@
1
1
  const require_errors = require("./errors-DNQ-g49I.cjs");
2
- const require_extract = require("./extract-8kaX_cUV.cjs");
2
+ const require_ai_source = require("./ai-source-CeHZDYG1.cjs");
3
3
  const require_ip = require("./ip-DbNhPOzi.cjs");
4
4
  const require_helpers = require("./helpers-BcMBFy9v.cjs");
5
- const require_stream_route = require("./stream-route-B6WAjbPG.cjs");
5
+ const require_stream_route = require("./stream-route-qEHoPVth.cjs");
6
6
  let node_crypto = require("node:crypto");
7
7
  let node_net = require("node:net");
8
8
 
@@ -923,7 +923,7 @@ function createDevtoolsShare(deps) {
923
923
  const name = request.params.name;
924
924
  const file = panel.share?.assets.includes(name) === true && Object.hasOwn(panel.assets, name) ? panel.assets[name] : void 0;
925
925
  if (file === void 0) return notFound(request, reply);
926
- require_stream_route.sendFile(reply, file, require_extract.panelContentType(name));
926
+ require_stream_route.sendFile(reply, file, require_ai_source.panelContentType(name));
927
927
  return reply;
928
928
  });
929
929
  server.get("/api/share/files/*", async (request, reply) => {
@@ -1302,7 +1302,7 @@ function mountProductionDevtools(server, deps) {
1302
1302
  });
1303
1303
  require_stream_route.registerUiAssets(instance, { notFound });
1304
1304
  registerAuthRoutes(instance, deps);
1305
- instance.get("/api/panels", async () => require_extract.listPanelInfos(deps.panels, deps.builtInPanels));
1305
+ instance.get("/api/panels", async () => require_ai_source.listPanelInfos(deps.panels, deps.builtInPanels));
1306
1306
  require_stream_route.registerRequestsRoutes(instance, routes);
1307
1307
  require_stream_route.registerRouteRoutes(instance, routes);
1308
1308
  require_stream_route.registerInsightsRoutes(instance, routes);
@@ -1379,4 +1379,4 @@ exports.mountProductionDevtools = mountProductionDevtools;
1379
1379
  exports.productionRouteAccess = productionRouteAccess;
1380
1380
  exports.resolveClient = resolveClient;
1381
1381
  exports.sessionCookie = sessionCookie;
1382
- //# sourceMappingURL=http-1nnpAoI7.cjs.map
1382
+ //# sourceMappingURL=http-CPbhLN61.cjs.map