@camstack/server 1.2.71 → 1.2.73

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.
@@ -11,6 +11,7 @@ exports.createLogsRouter = createLogsRouter;
11
11
  */
12
12
  const zod_1 = require("zod");
13
13
  const trpc_middleware_js_1 = require("../trpc/trpc.middleware.js");
14
+ const types_1 = require("@camstack/types");
14
15
  const LogLevelSchema = zod_1.z.enum(['debug', 'info', 'warn', 'error']);
15
16
  const LogTagsSchema = zod_1.z.object({
16
17
  agentId: zod_1.z.string().optional(),
@@ -84,7 +85,7 @@ function createLogsRouter(logging) {
84
85
  if (typeof addonId !== 'string')
85
86
  return false;
86
87
  return allowed.some((p) => {
87
- const bare = p.startsWith('addon:') ? p.slice('addon:'.length) : p;
88
+ const bare = (0, types_1.bareAddonId)(p);
88
89
  return addonId === bare || addonId.startsWith(bare);
89
90
  });
90
91
  });
@@ -2,7 +2,7 @@
2
2
  // AUTO-GENERATED by scripts/generate-cap-mounts.ts — DO NOT EDIT
3
3
  // Re-run: npx tsx scripts/generate-cap-mounts.ts
4
4
  //
5
- // Mounted: 143 Skipped (legacy): 3
5
+ // Mounted: 144 Skipped (legacy): 3
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.LEGACY_SHAPE_SKIP = void 0;
8
8
  exports.mountAllCaps = mountAllCaps;
@@ -350,6 +350,7 @@ function mountAllCaps(services) {
350
350
  return entries[0]?.[1] ?? null;
351
351
  }, remoteCapProxy),
352
352
  osd: (0, generated_cap_routers_js_1.createCapRouter_osd)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'osd'), remoteCapProxy),
353
+ osdManager: (0, generated_cap_routers_js_1.createCapRouter_osdManager)((_ctx) => reg?.getSingleton('osd-manager') ?? null, remoteCapProxy),
353
354
  petFeeder: (0, generated_cap_routers_js_1.createCapRouter_petFeeder)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'pet-feeder'), remoteCapProxy),
354
355
  pipelineAnalytics: (0, generated_cap_routers_js_1.createCapRouter_pipelineAnalytics)((_ctx) => reg?.getSingleton('pipeline-analytics') ?? null, remoteCapProxy),
355
356
  pipelineExecutor: (0, generated_cap_routers_js_1.createCapRouter_pipelineExecutor)((_ctx) => reg?.getSingleton('pipeline-executor') ??