@camstack/server 1.2.616 → 1.2.618

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.
@@ -3029,6 +3029,26 @@ function createCapRouter_deviceHistory(getProvider, createRemoteProxy) {
3029
3029
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
3030
3030
  return p.getStatus(methodInput);
3031
3031
  }),
3032
+ listOrphanSeries: trpc_middleware_js_1.adminProcedure
3033
+ .input(types_50.deviceHistoryCapability.methods.listOrphanSeries.input.loose())
3034
+ .output(types_50.deviceHistoryCapability.methods.listOrphanSeries.output)
3035
+ .query(async ({ input, ctx }) => {
3036
+ const parsedInput = ctx.req !== undefined ? (0, types_3.withoutCallerStamp)(input) : input;
3037
+ const { nodeId, ...methodInput } = parsedInput;
3038
+ const p = resolveProvider('device-history', nodeId, () => getProvider(ctx), createRemoteProxy);
3039
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
3040
+ return p.listOrphanSeries(methodInput);
3041
+ }),
3042
+ deleteOrphanSeries: trpc_middleware_js_1.adminProcedure
3043
+ .input(types_50.deviceHistoryCapability.methods.deleteOrphanSeries.input.loose())
3044
+ .output(types_50.deviceHistoryCapability.methods.deleteOrphanSeries.output)
3045
+ .mutation(async ({ input, ctx }) => {
3046
+ const parsedInput = ctx.req !== undefined ? (0, types_3.withoutCallerStamp)(input) : input;
3047
+ const { nodeId, ...methodInput } = parsedInput;
3048
+ const p = resolveProvider('device-history', nodeId, () => getProvider(ctx), createRemoteProxy);
3049
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
3050
+ return p.deleteOrphanSeries(methodInput);
3051
+ }),
3032
3052
  });
3033
3053
  }
3034
3054
  function createCapRouter_deviceManager(getProvider, createRemoteProxy) {
@@ -157,11 +157,18 @@ class LoggingService extends system_1.LogManager {
157
157
  let logger = this.createLogger(entry.scope);
158
158
  const nodeId = entry.nodeId;
159
159
  const agentId = nodeId?.includes('/') ? nodeId.split('/')[0] : nodeId;
160
+ // `agentId` is always the EMITTER's slot. `nodeId` is the emitter's only
161
+ // as a default: a caller that logs ABOUT another node
162
+ // (`tags: { nodeId: target }`) keeps its tag, exactly as an in-process
163
+ // logger does — stamping the emitter over it made every
164
+ // `inference device selection` / `auto benchmark:*` line of a forked
165
+ // addon read as `hub/pipeline-orchestrator`.
160
166
  const mergedTags = {
161
167
  ...entry.tags,
162
168
  addonId: entry.addonId,
163
169
  ...(nodeId !== undefined ? { nodeId } : {}),
164
170
  ...(agentId !== undefined ? { agentId } : {}),
171
+ ...(typeof entry.tags?.nodeId === 'string' ? { nodeId: entry.tags.nodeId } : {}),
165
172
  };
166
173
  logger = logger.withTags(mergedTags);
167
174
  const level = entry.level;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.616",
3
+ "version": "1.2.618",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "files": [
@@ -38,19 +38,19 @@
38
38
  ]
39
39
  },
40
40
  "dependencies": {
41
- "@camstack/addon-admin-ui": "1.2.453",
42
- "@camstack/addon-agent-ui": "1.2.258",
43
- "@camstack/addon-auth": "1.2.163",
44
- "@camstack/addon-decoder-nodeav": "1.2.138",
45
- "@camstack/addon-notifiers": "1.2.616",
46
- "@camstack/addon-pipeline": "1.2.617",
47
- "@camstack/addon-pipeline-orchestrator": "1.2.619",
48
- "@camstack/addon-post-analysis": "1.2.623",
49
- "@camstack/develop": "0.1.28",
50
- "@camstack/sdk": "1.2.148",
51
- "@camstack/system": "1.2.467",
52
- "@camstack/types": "1.2.399",
53
- "@camstack/ui-library": "1.2.315",
41
+ "@camstack/addon-admin-ui": "1.2.455",
42
+ "@camstack/addon-agent-ui": "1.2.260",
43
+ "@camstack/addon-auth": "1.2.165",
44
+ "@camstack/addon-decoder-nodeav": "1.2.140",
45
+ "@camstack/addon-notifiers": "1.2.618",
46
+ "@camstack/addon-pipeline": "1.2.619",
47
+ "@camstack/addon-pipeline-orchestrator": "1.2.621",
48
+ "@camstack/addon-post-analysis": "1.2.625",
49
+ "@camstack/develop": "0.1.30",
50
+ "@camstack/sdk": "1.2.150",
51
+ "@camstack/system": "1.2.469",
52
+ "@camstack/types": "1.2.401",
53
+ "@camstack/ui-library": "1.2.317",
54
54
  "@fastify/compress": "^9.0.0",
55
55
  "@fastify/cookie": "^11.0.2",
56
56
  "@fastify/cors": "^11.2.0",