@camstack/system 1.2.388 → 1.2.390

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.
@@ -70,6 +70,13 @@ export declare class SystemConfigAddon extends BaseAddon {
70
70
  private systemSecrets;
71
71
  private buildGlobalSchema;
72
72
  getGlobalSettings(): Promise<ConfigUISchemaWithValues>;
73
+ /**
74
+ * The admin UI / `addonSettings` cap prefer {@link BaseAddon.updateGlobalSettingsAsOperator}.
75
+ * That BaseAddon path writes the generic addon store and never reaches
76
+ * {@link writeClusterSection} / {@link writeMeshClearPort}. Route the operator
77
+ * write through the same section-aware path as {@link updateGlobalSettings}.
78
+ */
79
+ updateGlobalSettingsAsOperator(patch: Record<string, unknown>, _nodeId?: string): Promise<void>;
73
80
  updateGlobalSettings(patch: Record<string, unknown>): Promise<void>;
74
81
  /**
75
82
  * The cluster secret's save path: the value goes to the keychain (owner
@@ -88399,6 +88399,15 @@ var SystemConfigAddon = class extends require_dist.BaseAddon {
88399
88399
  }
88400
88400
  return require_dist.hydrateSchema(schema, merged, { inlineSecretsAsViews: true });
88401
88401
  }
88402
+ /**
88403
+ * The admin UI / `addonSettings` cap prefer {@link BaseAddon.updateGlobalSettingsAsOperator}.
88404
+ * That BaseAddon path writes the generic addon store and never reaches
88405
+ * {@link writeClusterSection} / {@link writeMeshClearPort}. Route the operator
88406
+ * write through the same section-aware path as {@link updateGlobalSettings}.
88407
+ */
88408
+ async updateGlobalSettingsAsOperator(patch, _nodeId) {
88409
+ await this.updateGlobalSettings(patch);
88410
+ }
88402
88411
  async updateGlobalSettings(patch) {
88403
88412
  if (!this.ctx.settings) throw new Error("system-config: ctx.settings not available — cannot write sections");
88404
88413
  const perSection = /* @__PURE__ */ new Map();
@@ -88389,6 +88389,15 @@ var SystemConfigAddon = class extends BaseAddon {
88389
88389
  }
88390
88390
  return hydrateSchema(schema, merged, { inlineSecretsAsViews: true });
88391
88391
  }
88392
+ /**
88393
+ * The admin UI / `addonSettings` cap prefer {@link BaseAddon.updateGlobalSettingsAsOperator}.
88394
+ * That BaseAddon path writes the generic addon store and never reaches
88395
+ * {@link writeClusterSection} / {@link writeMeshClearPort}. Route the operator
88396
+ * write through the same section-aware path as {@link updateGlobalSettings}.
88397
+ */
88398
+ async updateGlobalSettingsAsOperator(patch, _nodeId) {
88399
+ await this.updateGlobalSettings(patch);
88400
+ }
88392
88401
  async updateGlobalSettings(patch) {
88393
88402
  if (!this.ctx.settings) throw new Error("system-config: ctx.settings not available — cannot write sections");
88394
88403
  const perSection = /* @__PURE__ */ new Map();
package/dist/index.js CHANGED
@@ -11608,7 +11608,7 @@ function delay(ms, signal) {
11608
11608
  */
11609
11609
  async function callRegisterNodeWithRetry(broker, params, opts) {
11610
11610
  const action = opts.target === "hub" ? "$hub.registerNode" : "$agent.registerNode";
11611
- const callOpts = opts.target === "agent" && opts.targetNodeId ? { nodeID: opts.targetNodeId } : void 0;
11611
+ const callOpts = opts.target === "hub" ? { nodeID: "hub" } : opts.target === "agent" && opts.targetNodeId ? { nodeID: opts.targetNodeId } : void 0;
11612
11612
  const base = opts.baseDelayMs ?? 250;
11613
11613
  let attempt = 0;
11614
11614
  for (;;) {
package/dist/index.mjs CHANGED
@@ -11605,7 +11605,7 @@ function delay(ms, signal) {
11605
11605
  */
11606
11606
  async function callRegisterNodeWithRetry(broker, params, opts) {
11607
11607
  const action = opts.target === "hub" ? "$hub.registerNode" : "$agent.registerNode";
11608
- const callOpts = opts.target === "agent" && opts.targetNodeId ? { nodeID: opts.targetNodeId } : void 0;
11608
+ const callOpts = opts.target === "hub" ? { nodeID: "hub" } : opts.target === "agent" && opts.targetNodeId ? { nodeID: opts.targetNodeId } : void 0;
11609
11609
  const base = opts.baseDelayMs ?? 250;
11610
11610
  let attempt = 0;
11611
11611
  for (;;) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/system",
3
- "version": "1.2.388",
3
+ "version": "1.2.390",
4
4
  "description": "Core addon for CamStack — builtins, pipeline, process management, auth, logging, events",
5
5
  "keywords": [
6
6
  "camstack",