@dudousxd/nestjs-agent-dashboard 0.15.2 → 0.15.4

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.
@@ -681,8 +681,7 @@ declare const DASHBOARD_API_PATH: unique symbol;
681
681
  * `undefined` when the host didn't set one — the controller then falls back to
682
682
  * {@link AGENT_ACTOR_RESOLVER} for decider attribution). Threaded to `AgentApiModule` (where the API
683
683
  * controller actually lives) same as the pattern above — `useValue` even when `undefined`, so
684
- * injecting it needs no `@Optional()` (mirrors `AGENT_QUOTA_STORE`'s factory in
685
- * `@dudousxd/nestjs-agent`).
684
+ * injecting it needs no `@Optional()`.
686
685
  */
687
686
  declare const DASHBOARD_APPROVAL_ACTOR_REF: unique symbol;
688
687
  /**
@@ -681,8 +681,7 @@ declare const DASHBOARD_API_PATH: unique symbol;
681
681
  * `undefined` when the host didn't set one — the controller then falls back to
682
682
  * {@link AGENT_ACTOR_RESOLVER} for decider attribution). Threaded to `AgentApiModule` (where the API
683
683
  * controller actually lives) same as the pattern above — `useValue` even when `undefined`, so
684
- * injecting it needs no `@Optional()` (mirrors `AGENT_QUOTA_STORE`'s factory in
685
- * `@dudousxd/nestjs-agent`).
684
+ * injecting it needs no `@Optional()`.
686
685
  */
687
686
  declare const DASHBOARD_APPROVAL_ACTOR_REF: unique symbol;
688
687
  /**
@@ -8,15 +8,15 @@ import { Body, Controller, Get, HttpCode, Inject as Inject3, Optional as Optiona
8
8
  import { Inject, Injectable, Optional, UnauthorizedException } from "@nestjs/common";
9
9
 
10
10
  // src/server/tokens.ts
11
- var AGENT_GOVERNANCE_QUERIES = Symbol.for("@dudousxd/nestjs-agent:governance-queries");
12
- var AGENT_ACTOR_DIRECTORY = Symbol.for("@dudousxd/nestjs-agent:actor-directory");
13
- var AGENT_PRICING_STORE = Symbol.for("@dudousxd/nestjs-agent:pricing-store");
14
- var AGENT_APPROVAL_PORT = Symbol.for("@dudousxd/nestjs-agent:approval-port");
15
- var AGENT_ACTOR_RESOLVER = Symbol.for("@dudousxd/nestjs-agent:actor-resolver");
16
- var DASHBOARD_BASE_PATH = Symbol.for("@dudousxd/nestjs-agent-dashboard:base-path");
17
- var DASHBOARD_API_PATH = Symbol.for("@dudousxd/nestjs-agent-dashboard:api-path");
18
- var DASHBOARD_APPROVAL_ACTOR_REF = Symbol.for("@dudousxd/nestjs-agent-dashboard:approval-actor-ref");
19
- var DASHBOARD_AUTH = Symbol.for("@dudousxd/nestjs-agent-dashboard:dashboard-auth");
11
+ var AGENT_GOVERNANCE_QUERIES = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent:governance-queries");
12
+ var AGENT_ACTOR_DIRECTORY = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent:actor-directory");
13
+ var AGENT_PRICING_STORE = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent:pricing-store");
14
+ var AGENT_APPROVAL_PORT = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent:approval-port");
15
+ var AGENT_ACTOR_RESOLVER = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent:actor-resolver");
16
+ var DASHBOARD_BASE_PATH = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent-dashboard:base-path");
17
+ var DASHBOARD_API_PATH = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent-dashboard:api-path");
18
+ var DASHBOARD_APPROVAL_ACTOR_REF = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent-dashboard:approval-actor-ref");
19
+ var DASHBOARD_AUTH = /* @__PURE__ */ Symbol.for("@dudousxd/nestjs-agent-dashboard:dashboard-auth");
20
20
 
21
21
  // src/server/auth/cookie-header.ts
22
22
  function parseCookieHeader(header) {
@@ -171,7 +171,7 @@ function sendRedirect(response, status, location) {
171
171
  __name(sendRedirect, "sendRedirect");
172
172
 
173
173
  // src/server/auth/session-cookie.ts
174
- import { createHmac, timingSafeEqual } from "node:crypto";
174
+ import { createHmac, timingSafeEqual } from "crypto";
175
175
  var EXP_GRACE_MS = 3e4;
176
176
  function base64urlEncode(value) {
177
177
  return Buffer.from(value, "utf8").toString("base64url");
@@ -394,7 +394,7 @@ DashboardAuthGuard = _ts_decorate([
394
394
  ], DashboardAuthGuard);
395
395
 
396
396
  // src/server/dashboard.service.ts
397
- import { subscribe, unsubscribe } from "node:diagnostics_channel";
397
+ import { subscribe, unsubscribe } from "diagnostics_channel";
398
398
  import { channelName } from "@dudousxd/nestjs-diagnostics";
399
399
  import { Inject as Inject2, Injectable as Injectable2, NotFoundException, NotImplementedException, Optional as Optional2 } from "@nestjs/common";
400
400
  import { Observable as Observable2 } from "rxjs";
@@ -1784,9 +1784,9 @@ import { Module } from "@nestjs/common";
1784
1784
  import { RouterModule } from "@nestjs/core";
1785
1785
 
1786
1786
  // src/server/agent-ui.controller.ts
1787
- import { existsSync, readFileSync } from "node:fs";
1788
- import { basename, extname, join, resolve, sep } from "node:path";
1789
- import { fileURLToPath } from "node:url";
1787
+ import { existsSync, readFileSync } from "fs";
1788
+ import { basename, extname, join, resolve, sep } from "path";
1789
+ import { fileURLToPath } from "url";
1790
1790
  import { Controller as Controller3, Get as Get3, Header as Header2, Inject as Inject6, NotFoundException as NotFoundException3, Param as Param2, Req as Req3, Res as Res2, StreamableFile, UseFilters, UseGuards as UseGuards2 } from "@nestjs/common";
1791
1791
 
1792
1792
  // src/server/auth/dashboard-auth-page.guard.ts
@@ -2187,7 +2187,7 @@ var AgentApiModule = class _AgentApiModule {
2187
2187
  options.dashboardAuth,
2188
2188
  ...(options.guards ?? []).filter(isGuardClass),
2189
2189
  // `useValue` even when `options.approvalActorRef` is `undefined` — AgentApiController
2190
- // injects this WITHOUT `@Optional()` (same pattern as `AGENT_QUOTA_STORE`'s factory).
2190
+ // injects this WITHOUT `@Optional()`.
2191
2191
  {
2192
2192
  provide: DASHBOARD_APPROVAL_ACTOR_REF,
2193
2193
  useValue: options.approvalActorRef