shiplightai 0.1.72 → 0.1.74

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/fixture.d.ts CHANGED
@@ -46,6 +46,25 @@ interface TestContext {
46
46
  [key: string]: any;
47
47
  }
48
48
  declare function createTestContext(variableStore: VariableStore): TestContext;
49
+ /**
50
+ * Parse the `SHIPLIGHT_VARS_OVERRIDE` env var.
51
+ * Returns null when unset, throws on invalid JSON or non-string values.
52
+ */
53
+ declare function parseVarsOverrideEnv(raw: string | undefined): Record<string, string> | null;
54
+ /**
55
+ * Check whether a key was declared `sensitive: true` in the resolved
56
+ * `use.variables` declarations. Test-level overrides project-level.
57
+ */
58
+ declare function isDeclaredSensitive(key: string, projectVariables: ShiplightUseOptions['variables'], testVariables: ShiplightUseOptions['variables']): boolean;
59
+ /**
60
+ * Apply CLI / env overrides (`SHIPLIGHT_VARS_OVERRIDE`) to the variable store
61
+ * with highest priority. Sensitivity is inherited from whichever declaration
62
+ * the key already has in project/test `use.variables`; undeclared keys are
63
+ * stored as non-sensitive.
64
+ *
65
+ * Exported for testing.
66
+ */
67
+ declare function applyVarsOverride(variableStore: VariableStore, projectVariables: ShiplightUseOptions['variables'], testVariables: ShiplightUseOptions['variables'], envVar?: string | undefined): void;
49
68
  /**
50
69
  * Explicit allowlist of environment variable names that Shiplight forwards
51
70
  * into sdk-core's internal `SdkConfig.env`. sdk-core is strict — it reads
@@ -99,4 +118,4 @@ type ShiplightFixtures = {
99
118
  };
100
119
  declare const test: _playwright_test.TestType<_playwright_test.PlaywrightTestArgs & _playwright_test.PlaywrightTestOptions & ShiplightFixtures, _playwright_test.PlaywrightWorkerArgs & _playwright_test.PlaywrightWorkerOptions>;
101
120
 
102
- export { type AuthSpec, SDK_ENV_ALLOWLIST, type TestContext, buildSdkEnv, createTestContext, resolveAuthState, test };
121
+ export { type AuthSpec, SDK_ENV_ALLOWLIST, type TestContext, applyVarsOverride, buildSdkEnv, createTestContext, isDeclaredSensitive, parseVarsOverrideEnv, resolveAuthState, test };