sim-setup 1.0.71-preview.397.1 → 1.0.71-preview.399.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2008,7 +2008,7 @@ function promptKeys(prompts = []) {
2008
2008
  function conditionKeys(condition) {
2009
2009
  if (!condition)
2010
2010
  return [];
2011
- if (condition.kind === "present" || condition.kind === "truthy" || condition.kind === "equals" || condition.kind === "provider-missing-field") {
2011
+ if (condition.kind === "present" || condition.kind === "truthy" || condition.kind === "equals") {
2012
2012
  return [condition.key];
2013
2013
  }
2014
2014
  if (condition.kind === "all" || condition.kind === "any") {
@@ -3252,7 +3252,6 @@ function resolveRegistrationMode(read) {
3252
3252
  configured = "closed";
3253
3253
  warnings.push({
3254
3254
  code: "invalid-mode",
3255
- severity: "error",
3256
3255
  message: "REGISTRATION_MODE is not a recognized value, so self-serve registration is closed until it is corrected. Existing accounts can still sign in.",
3257
3256
  details: { value: rawMode, allowed: REGISTRATION_MODES }
3258
3257
  });
@@ -3267,7 +3266,6 @@ function resolveRegistrationMode(read) {
3267
3266
  if (setLegacy.length > 0) {
3268
3267
  warnings.push({
3269
3268
  code: "deprecated-variables",
3270
- severity: "warn",
3271
3269
  message: "Deprecated registration variables are set. Replace them with REGISTRATION_MODE; they still apply until removed.",
3272
3270
  details: { variables: setLegacy, equivalentMode: legacyMode }
3273
3271
  });
@@ -3278,7 +3276,6 @@ function resolveRegistrationMode(read) {
3278
3276
  if (resolved !== configured) {
3279
3277
  warnings.push({
3280
3278
  code: "conflict",
3281
- severity: "warn",
3282
3279
  message: "Deprecated registration variables are more restrictive than REGISTRATION_MODE, so the most restrictive combination applies.",
3283
3280
  details: { configured, legacy: legacyMode, resolved }
3284
3281
  });
@@ -6048,7 +6045,7 @@ var init_twins = __esm(() => {
6048
6045
  },
6049
6046
  ...ENTERPRISE_FEATURE_KEYS.filter((key) => ENTERPRISE_FEATURES[key].setupUnlock).map((key) => {
6050
6047
  const feature = ENTERPRISE_FEATURES[key];
6051
- return { server: feature.envVar, label: feature.label, hint: feature.hint ?? "" };
6048
+ return { server: feature.envVar, label: feature.label, hint: feature.hint };
6052
6049
  })
6053
6050
  ];
6054
6051
  LOGIN_PROVIDERS = [
@@ -9860,14 +9857,6 @@ function proposedCapabilitySetupValues(setup, option, values, currentValues) {
9860
9857
  Object.assign(proposed, values);
9861
9858
  return proposed;
9862
9859
  }
9863
- function getCapabilitySetupProviderMissingFields(setup, optionId, promptedValues, currentValues) {
9864
- const option = getCapabilitySetupOptions(setup).find((candidate) => candidate.id === optionId);
9865
- if (!option?.providerId)
9866
- return [];
9867
- const values = getCapabilitySetupDraftValues(setup, optionId, promptedValues);
9868
- const inspection = inspectCapability(setup.definition, proposedCapabilitySetupValues(setup, option, values, currentValues));
9869
- return inspection.providers.find((provider) => provider.id === option.providerId)?.missingFields ?? [];
9870
- }
9871
9860
  function buildCapabilitySetupTransition(setup, optionId, promptedValues, currentValues) {
9872
9861
  const definition = setup.definition;
9873
9862
  const option = getCapabilitySetupOptions(setup).find((candidate) => candidate.id === optionId);
@@ -9911,9 +9900,6 @@ function proposedPromptValues(state) {
9911
9900
  function shouldRenderPrompt(prompt, state) {
9912
9901
  if (!prompt.when)
9913
9902
  return true;
9914
- if (prompt.when.kind === "provider-missing-field") {
9915
- return getCapabilitySetupProviderMissingFields(state.setup, state.optionId, state.values, state.currentValues).includes(prompt.when.key);
9916
- }
9917
9903
  return matchesSetupCondition(prompt.when, proposedPromptValues(state));
9918
9904
  }
9919
9905
  function formatCapabilitySetupFieldMessage(prompt, current, keepExisting = false) {
@@ -11426,7 +11412,7 @@ async function promptUnlocks(vars) {
11426
11412
  options: SELF_HOST_UNLOCKS.map((unlock) => ({
11427
11413
  value: unlock.server,
11428
11414
  label: unlock.label,
11429
- hint: unlock.hint || undefined
11415
+ hint: unlock.hint
11430
11416
  })),
11431
11417
  initialValues: SELF_HOST_UNLOCKS.filter((u) => isTruthy(vars.get(u.server))).map((u) => u.server)
11432
11418
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim-setup",
3
- "version": "1.0.71-preview.397.1",
3
+ "version": "1.0.71-preview.399.1",
4
4
  "description": "Set up and manage a self-hosted Sim installation",
5
5
  "type": "module",
6
6
  "bin": {