@smplkit/sdk 1.3.22 → 1.3.23

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.
package/dist/index.cjs CHANGED
@@ -16808,8 +16808,7 @@ var Config = class {
16808
16808
  items;
16809
16809
  /**
16810
16810
  * Per-environment overrides.
16811
- * Stored as `{ env_name: { values: { key: value } } }` — values are
16812
- * unwrapped from the server's `{ value: raw }` wrapper.
16811
+ * Structured as `{ env_name: { values: { key: value } } }`.
16813
16812
  */
16814
16813
  environments;
16815
16814
  /** When the config was created, or null if unavailable. */
@@ -16834,7 +16833,7 @@ var Config = class {
16834
16833
  /**
16835
16834
  * Persist this config to the server.
16836
16835
  *
16837
- * POST if `id` is null (new config), PUT if `id` is set (update).
16836
+ * Creates if new, updates if existing.
16838
16837
  * Updates this instance in-place with the server response.
16839
16838
  */
16840
16839
  async save() {
@@ -17212,8 +17211,8 @@ var ConfigClient = class {
17212
17211
  /**
17213
17212
  * Resolve a config's values for the current environment.
17214
17213
  *
17215
- * Returns a flat dict of resolved key-value pairs, walking the
17216
- * parent chain and applying environment overrides.
17214
+ * Returns a flat dict of resolved key-value pairs with inherited
17215
+ * values and environment overrides applied.
17217
17216
  *
17218
17217
  * Optionally pass a model class to map the resolved values.
17219
17218
  */
@@ -17276,7 +17275,7 @@ var ConfigClient = class {
17276
17275
  // Runtime: refresh
17277
17276
  // ------------------------------------------------------------------
17278
17277
  /**
17279
- * Re-fetch all configs, re-resolve values, and update the cache.
17278
+ * Re-fetch all configs and re-resolve values.
17280
17279
  * Fires change listeners for any values that differ.
17281
17280
  */
17282
17281
  async refresh() {
@@ -17442,7 +17441,7 @@ var Flag = class {
17442
17441
  /**
17443
17442
  * Persist this flag to the server.
17444
17443
  *
17445
- * POST if `id` is null (new flag), PUT if `id` is set (update).
17444
+ * Creates if new, updates if existing.
17446
17445
  * Updates this instance in-place with the server response.
17447
17446
  */
17448
17447
  async save() {
@@ -17505,7 +17504,7 @@ var Flag = class {
17505
17504
  }
17506
17505
  }
17507
17506
  /**
17508
- * Evaluate the flag locally (sync, no HTTP).
17507
+ * Evaluate the flag locally.
17509
17508
  *
17510
17509
  * Requires `initialize()` to have been called.
17511
17510
  */
@@ -18121,10 +18120,10 @@ var FlagsClient = class {
18121
18120
  // Runtime: context registration
18122
18121
  // ------------------------------------------------------------------
18123
18122
  /**
18124
- * Explicitly register context(s) for background batch registration.
18123
+ * Register context(s) with the server.
18125
18124
  *
18126
- * Accepts a single Context or an array. Fire-and-forget never
18127
- * blocks. Works before `initialize()` is called.
18125
+ * Accepts a single Context or an array. Registration is asynchronous
18126
+ * and never blocks. Works before `initialize()` is called.
18128
18127
  */
18129
18128
  register(context) {
18130
18129
  if (Array.isArray(context)) {
@@ -18141,7 +18140,9 @@ var FlagsClient = class {
18141
18140
  // Runtime: Tier 1 evaluate
18142
18141
  // ------------------------------------------------------------------
18143
18142
  /**
18144
- * Tier 1 explicit evaluation stateless, no provider or cache.
18143
+ * Evaluate a flag with an explicit environment and context.
18144
+ *
18145
+ * Stateless — does not use the context provider or cached results.
18145
18146
  */
18146
18147
  async evaluate(key, options) {
18147
18148
  const evalDict = contextsToEvalDict(options.context);
@@ -18384,7 +18385,7 @@ var Logger = class {
18384
18385
  /**
18385
18386
  * Persist this logger to the server.
18386
18387
  *
18387
- * POST if `id` is null (new), PUT if `id` is set (update).
18388
+ * Creates if new, updates if existing.
18388
18389
  */
18389
18390
  async save() {
18390
18391
  const saved = await this._client._saveLogger(this);
@@ -18469,7 +18470,7 @@ var LogGroup = class {
18469
18470
  /**
18470
18471
  * Persist this log group to the server.
18471
18472
  *
18472
- * POST if `id` is null (new), PUT if `id` is set (update).
18473
+ * Creates if new, updates if existing.
18473
18474
  */
18474
18475
  async save() {
18475
18476
  const saved = await this._client._saveLogGroup(this);
@@ -18813,14 +18814,9 @@ var LoggingClient = class {
18813
18814
  /**
18814
18815
  * Start the logging runtime.
18815
18816
  *
18816
- * Performs the full runtime pipeline:
18817
- * 1. Auto-load adapters (if none registered explicitly)
18818
- * 2. Discover existing loggers from each adapter
18819
- * 3. Install hooks on each adapter for new logger creation
18820
- * 4. Bulk-register discovered loggers with the server
18821
- * 5. Fetch all loggers and groups from the server
18822
- * 6. Resolve levels and apply to adapters
18823
- * 7. Wire WebSocket for live updates
18817
+ * Discovers loggers from registered adapters, syncs them with the
18818
+ * server, applies server-side log levels, and subscribes to live
18819
+ * level updates.
18824
18820
  *
18825
18821
  * Idempotent — safe to call multiple times.
18826
18822
  * Management methods work without start().