@camstack/server 1.1.3 → 1.1.5

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.
@@ -4593,6 +4593,15 @@ function createCapRouter_pipelineAnalytics(getProvider, createRemoteProxy) {
4593
4593
  // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
4594
4594
  return p.getTrackMedia(methodInput);
4595
4595
  }),
4596
+ searchObjectEvents: trpc_middleware_js_1.protectedProcedure
4597
+ .input(types_72.pipelineAnalyticsCapability.methods.searchObjectEvents.input.loose())
4598
+ .output(types_72.pipelineAnalyticsCapability.methods.searchObjectEvents.output)
4599
+ .query(async ({ input, ctx }) => {
4600
+ const { nodeId, ...methodInput } = input;
4601
+ const p = resolveProvider('pipeline-analytics', nodeId, () => getProvider(ctx), createRemoteProxy);
4602
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
4603
+ return p.searchObjectEvents(methodInput);
4604
+ }),
4596
4605
  });
4597
4606
  }
4598
4607
  function createCapRouter_pipelineExecutor(getProvider, createRemoteProxy) {
@@ -2396,6 +2396,10 @@ class AddonRegistryService {
2396
2396
  // relative `camstack-data` made the settings DB escape the mounted
2397
2397
  // data dir in container deployments.
2398
2398
  path.join(process.env.CAMSTACK_DATA ?? 'camstack-data', 'addons-data', addonId);
2399
+ // Node-local data ROOT — the centralized anchor for internal per-node dirs
2400
+ // (models, logs). `CAMSTACK_DATA` ?? the hub's default data dir. Mirrors the
2401
+ // kernel addon-context-factory; never the hub-singleton `storage` cap.
2402
+ const nodeDataDir = path.resolve(process.env.CAMSTACK_DATA ?? 'camstack-data');
2399
2403
  const registerProvider = (capabilityName, provider) => {
2400
2404
  this.capabilityRegistry.registerProvider(capabilityName, addonId, provider);
2401
2405
  logger.info('Registered provider via context.registerProvider()', {
@@ -2453,6 +2457,7 @@ class AddonRegistryService {
2453
2457
  eventBus: this.eventBusService,
2454
2458
  addonConfig: bootstrapConfig,
2455
2459
  dataDir,
2460
+ nodeDataDir,
2456
2461
  get api() {
2457
2462
  return registry.getBrokerApi();
2458
2463
  },
@@ -358,6 +358,9 @@ class MoleculerService {
358
358
  null,
359
359
  }),
360
360
  inProcessProviders: (0, cap_route_authority_js_1.createInProcessProviderLookup)(this.capabilityService),
361
+ // Per-cap-method RPC timeout override (e.g. model-convert.convert, which
362
+ // runs for minutes) — read from the cap definition's declared timeoutMs.
363
+ capTimeoutMs: (capName, method) => this.capabilityService.getRegistry()?.getDefinition(capName)?.methods?.[method]?.timeoutMs,
361
364
  });
362
365
  // Wire the hub's EventBusService into the broker so hub-addon
363
366
  // emissions fan out to every remote process via
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",