@theholocron/cli 5.0.0-alpha.103 → 5.0.0-alpha.104

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.d.mts CHANGED
@@ -750,6 +750,27 @@ interface LoadedConfig {
750
750
  */
751
751
  declare function loadConfig(cwd: string): Promise<LoadedConfig>;
752
752
  //#endregion
753
+ //#region src/editorconfig/config.d.ts
754
+ /**
755
+ * The paths editorconfig-checker skips, read from the same
756
+ * `editorconfig-checker.json` template `holocron setup` writes as a repo's
757
+ * `.editorconfig-checker.json` — so Sentinel's central editorconfig check
758
+ * (holocron#927) excludes exactly what CI's editorconfig-checker does, from
759
+ * one source.
760
+ *
761
+ * The exclusion that matters most is `\.md$` / `\.mdx$`: the generated
762
+ * `.editorconfig` gives every file tab indentation, but
763
+ * `@theholocron/prettier-config` formats markdown with spaces, so a README's
764
+ * indented code example would fail one tool or the other. Markdown is left
765
+ * to prettier and markdownlint.
766
+ *
767
+ * Each entry is a regular-expression source, matched against a
768
+ * repo-relative path, as editorconfig-checker itself treats them.
769
+ */
770
+ declare const EDITORCONFIG_CHECKER_EXCLUDE: readonly string[];
771
+ /** `true` when `path` matches any {@link EDITORCONFIG_CHECKER_EXCLUDE} pattern. */
772
+ declare function isEditorConfigExcluded(path: string): boolean;
773
+ //#endregion
753
774
  //#region src/formatting/config.d.ts
754
775
  /**
755
776
  * The org's canonical prettier ignore-pattern list for a central Sentinel
@@ -802,4 +823,4 @@ declare const ALEX_CONFIG: {
802
823
  */
803
824
  declare const ALEX_IGNORE_PATTERNS: string[];
804
825
  //#endregion
805
- export { ALEX_CONFIG, ALEX_IGNORE_PATTERNS, Analytics, AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, Capability, CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, CommitMessageViolation, ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DeriveProfileInput, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DocsConfig, DoctorConfig, EnsureResult, EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, EslintConfig, FeatureResolverConfig, HolocronConfig, HolocronProfile, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, LintCommitMsgFileResult, LoadedConfig, LogConfig, Logs, MultiEntry, NormalizedAuthUser, Notifications, PRETTIER_IGNORE_PATTERNS, PackageJsonLike, PagesConfig, ParseWebhookInput, ProviderApiError, ProviderIdentity, ProviderOptions, PullRequest, REQUIRED_CAPABILITIES, RawProviderEntry, RawProvidersConfig, RepoConfig, RepoProperties, RepoProtection, RepoRef, RepoSettings, type RequestOptions, ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, ResolvedHolocronConfig, ResolvedProviderEntry, ResolvedProvidersConfig, ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, SingleEntry, Source, StatusCategory, Storage, StorageBranch, StorybookDeployProject, TaskEntryConfig, TeamEntry, TeamPermission, TelemetryConfig, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, Workers, WorkflowWithConfig, compose, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, getToken, isMulti, lintCommitMessage, lintCommitMsgFile, listStoredProviders, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
826
+ export { ALEX_CONFIG, ALEX_IGNORE_PATTERNS, Analytics, AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, Capability, CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, CommitMessageViolation, ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DeriveProfileInput, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, DocsConfig, DoctorConfig, EDITORCONFIG_CHECKER_EXCLUDE, EnsureResult, EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, EslintConfig, FeatureResolverConfig, HolocronConfig, HolocronProfile, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, LintCommitMsgFileResult, LoadedConfig, LogConfig, Logs, MultiEntry, NormalizedAuthUser, Notifications, PRETTIER_IGNORE_PATTERNS, PackageJsonLike, PagesConfig, ParseWebhookInput, ProviderApiError, ProviderIdentity, ProviderOptions, PullRequest, REQUIRED_CAPABILITIES, RawProviderEntry, RawProvidersConfig, RepoConfig, RepoProperties, RepoProtection, RepoRef, RepoSettings, type RequestOptions, ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, ResolvedHolocronConfig, ResolvedProviderEntry, ResolvedProvidersConfig, ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, SingleEntry, Source, StatusCategory, Storage, StorageBranch, StorybookDeployProject, TaskEntryConfig, TeamEntry, TeamPermission, TelemetryConfig, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, Workers, WorkflowWithConfig, compose, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, getToken, isEditorConfigExcluded, isMulti, lintCommitMessage, lintCommitMsgFile, listStoredProviders, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
package/dist/index.mjs CHANGED
@@ -556,6 +556,34 @@ function parseGitRemoteUrl(url) {
556
556
  if (sshMatch) return sshMatch[1];
557
557
  }
558
558
  //#endregion
559
+ //#region src/editorconfig/config.ts
560
+ /**
561
+ * The paths editorconfig-checker skips, read from the same
562
+ * `editorconfig-checker.json` template `holocron setup` writes as a repo's
563
+ * `.editorconfig-checker.json` — so Sentinel's central editorconfig check
564
+ * (holocron#927) excludes exactly what CI's editorconfig-checker does, from
565
+ * one source.
566
+ *
567
+ * The exclusion that matters most is `\.md$` / `\.mdx$`: the generated
568
+ * `.editorconfig` gives every file tab indentation, but
569
+ * `@theholocron/prettier-config` formats markdown with spaces, so a README's
570
+ * indented code example would fail one tool or the other. Markdown is left
571
+ * to prettier and markdownlint.
572
+ *
573
+ * Each entry is a regular-expression source, matched against a
574
+ * repo-relative path, as editorconfig-checker itself treats them.
575
+ */
576
+ const EDITORCONFIG_CHECKER_EXCLUDE = [
577
+ "(^|.+/)LICENSE$",
578
+ "^public/.*",
579
+ "\\.md$",
580
+ "\\.mdx$"
581
+ ];
582
+ /** `true` when `path` matches any {@link EDITORCONFIG_CHECKER_EXCLUDE} pattern. */
583
+ function isEditorConfigExcluded(path) {
584
+ return EDITORCONFIG_CHECKER_EXCLUDE.some((pattern) => new RegExp(pattern).test(path));
585
+ }
586
+ //#endregion
559
587
  //#region src/inclusive-language/config.ts
560
588
  /**
561
589
  * The org's canonical `alex` (inclusive-language) config, as raw parsed
@@ -621,4 +649,4 @@ const ALEX_IGNORE_PATTERNS = [
621
649
  */
622
650
  const PRETTIER_IGNORE_PATTERNS = [...ALEX_IGNORE_PATTERNS, "pnpm-lock.yaml"];
623
651
  //#endregion
624
- export { ALEX_CONFIG, ALEX_IGNORE_PATTERNS, AuthError, CARDINALITY, ConfigError, ConfigFileError, PRETTIER_IGNORE_PATTERNS, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, compose, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, getToken, isMulti, lintCommitMessage, lintCommitMsgFile, listStoredProviders, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
652
+ export { ALEX_CONFIG, ALEX_IGNORE_PATTERNS, AuthError, CARDINALITY, ConfigError, ConfigFileError, EDITORCONFIG_CHECKER_EXCLUDE, PRETTIER_IGNORE_PATTERNS, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, compose, createFeatureResolver, createResolveToken, createRestClient, defineConfig, deleteToken, deriveCapabilities, deriveCompliance, deriveProfile, deriveStack, getToken, isEditorConfigExcluded, isMulti, lintCommitMessage, lintCommitMsgFile, listStoredProviders, loadConfig, missingCapabilities, readWorkspacePackageJsons, resolveConfig, resolveEntry, resolvePluginPackage, setToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "5.0.0-alpha.103",
3
+ "version": "5.0.0-alpha.104",
4
4
  "description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "keywords": [
6
6
  "cli",
@@ -50,8 +50,8 @@
50
50
  "@sentry/node": "^10.70.0",
51
51
  "@theholocron/components-doc": "^1.6.0",
52
52
  "@theholocron/env-utils": "^1.6.0",
53
- "@theholocron/github-client": "^1.35.0",
54
- "@theholocron/http-client": "^1.35.0",
53
+ "@theholocron/github-client": "^1.36.0",
54
+ "@theholocron/http-client": "^1.36.0",
55
55
  "@theholocron/observability": "^0.4.0",
56
56
  "@theholocron/registry-doc": "^1.12.0",
57
57
  "chalk": "^6.0.0",
@@ -60,8 +60,8 @@
60
60
  "pino-pretty": "^13.1.3",
61
61
  "posthog-node": "^5.51.6",
62
62
  "yargs": "^18.1.0",
63
- "@theholocron/astromech": "5.0.0-alpha.103",
64
- "@theholocron/datapad": "5.0.0-alpha.103"
63
+ "@theholocron/astromech": "5.0.0-alpha.104",
64
+ "@theholocron/datapad": "5.0.0-alpha.104"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@commitlint/config-conventional": "^21.2.3",
@@ -80,7 +80,7 @@
80
80
  "tsx": "4.23.12",
81
81
  "typescript": "^5.9.3",
82
82
  "vitest": "^4.1.11",
83
- "@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.103"
83
+ "@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.104"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=22.0.0"