@theholocron/cli 5.0.0-alpha.395 → 5.0.0-alpha.396
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/README.md +8 -6
- package/dist/cli.mjs +72 -149
- package/dist/cli.mjs.map +1 -1
- package/dist/{config-system-CLi7Ceta.d.mts → config-system-CYv5GFIa.d.mts} +12 -5
- package/dist/{config-system-BzAs0RR1.mjs → config-system-CeVFoOau.mjs} +2 -2
- package/dist/{index-DbptTVsV.d.mts → index-DbbyDvZi.d.mts} +47 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -1
- package/dist/plugin/capabilities.d.mts +2 -2
- package/dist/plugin/capabilities.mjs +2 -0
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +9 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { In as TeamEntry, fn as PagesConfig, k as CapabilityKey } from "./index-DbbyDvZi.mjs";
|
|
2
2
|
import { ConfigError as ConfigError$1, ConfigFileError } from "@theholocron/kyber/config";
|
|
3
3
|
import { DocsCoverageMode } from "@theholocron/astromech";
|
|
4
4
|
import { LogLevel } from "@theholocron/observability/core";
|
|
@@ -308,13 +308,19 @@ interface GitHubAppConfig {
|
|
|
308
308
|
*/
|
|
309
309
|
environment: string;
|
|
310
310
|
}
|
|
311
|
-
/**
|
|
311
|
+
/**
|
|
312
|
+
* The `ideas` block: the state that files an idea as an issue. Where the ideas are kept is the `ideas` provider's
|
|
313
|
+
* (`providers.ideas: ["obsidian", { dir }]`), not this block's.
|
|
314
|
+
*/
|
|
312
315
|
interface IdeasConfig {
|
|
313
316
|
/**
|
|
314
317
|
* The folder of Markdown notes (an Obsidian vault). May start with `~` for the home folder. `HOLOCRON_IDEAS_DIR`
|
|
315
318
|
* overrides it, since the path differs per machine.
|
|
319
|
+
*
|
|
320
|
+
* @deprecated Set `dir` on the provider instead: `providers: { ideas: ["obsidian", { dir }] }`. Read only when
|
|
321
|
+
* `providers.ideas` is absent, as if it were `["obsidian", { dir }]`; `providers.ideas` wins when both are set.
|
|
316
322
|
*/
|
|
317
|
-
dir
|
|
323
|
+
dir?: string;
|
|
318
324
|
/** The names of the note states, so a repo can use its own words. */
|
|
319
325
|
states?: {
|
|
320
326
|
/** The `status:` that means "file this idea" (default `in-progress`). */
|
|
@@ -719,10 +725,11 @@ interface HolocronConfig {
|
|
|
719
725
|
*/
|
|
720
726
|
githubApps?: GitHubAppConfig[];
|
|
721
727
|
/**
|
|
722
|
-
*
|
|
728
|
+
* The state that files an idea as an issue, for `holocron ideas sync`. Where the ideas are kept is
|
|
729
|
+
* `providers.ideas`; the older `ideas.dir` is deprecated and still read when `providers.ideas` is absent.
|
|
723
730
|
*
|
|
724
731
|
* @example
|
|
725
|
-
* {
|
|
732
|
+
* { states: { file: "in-progress" } }
|
|
726
733
|
*/
|
|
727
734
|
ideas?: IdeasConfig;
|
|
728
735
|
/**
|
|
@@ -118,8 +118,8 @@ function validateGitHubApps(apps) {
|
|
|
118
118
|
function validateIdeas(ideas) {
|
|
119
119
|
const nonEmpty = (value) => typeof value === "string" && value.trim() !== "";
|
|
120
120
|
const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
121
|
-
if (!isObject(ideas)) throw new ConfigError$1("`ideas` must be an object: { dir
|
|
122
|
-
if (!nonEmpty(ideas.dir)) throw new ConfigError$1("`ideas.dir` must be the path of the notes folder, got an empty value");
|
|
121
|
+
if (!isObject(ideas)) throw new ConfigError$1("`ideas` must be an object: { states?, dir? (deprecated) }");
|
|
122
|
+
if (ideas.dir !== void 0 && !nonEmpty(ideas.dir)) throw new ConfigError$1("`ideas.dir` must be the path of the notes folder, got an empty value");
|
|
123
123
|
if (ideas.states !== void 0) {
|
|
124
124
|
if (!isObject(ideas.states)) throw new ConfigError$1("`ideas.states` must be an object: { file? }");
|
|
125
125
|
if (ideas.states.file !== void 0 && !nonEmpty(ideas.states.file)) throw new ConfigError$1("`ideas.states.file` must be a state name, got an empty value");
|
|
@@ -11,7 +11,7 @@ import { ProviderApiError } from "@theholocron/http-client";
|
|
|
11
11
|
* See `docs/wiki/specifications/tech-architecture.spec.md` for the design narrative
|
|
12
12
|
* (issue: #74).
|
|
13
13
|
*/
|
|
14
|
-
type CapabilityKey = "source" | "ci" | "secrets" | "environments" | "issues" | "deployment" | "storage" | "auth" | "vault" | "dns" | "tooling" | "notifications" | "analytics" | "errors" | "logs" | "monitoring" | "wiki" | "workers" | "tunnels" | "credentials" | "projects";
|
|
14
|
+
type CapabilityKey = "source" | "ci" | "secrets" | "environments" | "issues" | "deployment" | "storage" | "auth" | "vault" | "dns" | "tooling" | "notifications" | "analytics" | "errors" | "logs" | "monitoring" | "wiki" | "workers" | "tunnels" | "credentials" | "projects" | "ideas";
|
|
15
15
|
/** How many providers a capability resolves to: one (`"single"`) or several at once (`"many"`). */
|
|
16
16
|
type Cardinality = "single" | "many";
|
|
17
17
|
/** What every capability implementation carries: which capability it is and which provider backs it. */
|
|
@@ -2764,6 +2764,47 @@ interface Projects extends ProviderIdentity {
|
|
|
2764
2764
|
boards: number;
|
|
2765
2765
|
}>;
|
|
2766
2766
|
}
|
|
2767
|
+
/** One idea as a provider holds it, in a shape no provider owns. */
|
|
2768
|
+
interface IdeaRecord {
|
|
2769
|
+
/** The provider's address for the idea (a path, for Obsidian). Opaque to the CLI; the hidden issue marker carries it. */
|
|
2770
|
+
key: string;
|
|
2771
|
+
/** The idea's title. */
|
|
2772
|
+
title: string;
|
|
2773
|
+
/** The idea's text, which becomes the body of the issue. */
|
|
2774
|
+
body: string;
|
|
2775
|
+
/** The idea's state, in the repo's own words (`seed`, `in-progress`, ...); empty when it has none. */
|
|
2776
|
+
status: string;
|
|
2777
|
+
/** The issue the idea was filed as, in the tracker's own syntax; absent when it is not filed. */
|
|
2778
|
+
issue?: string;
|
|
2779
|
+
/**
|
|
2780
|
+
* What the provider cannot put in an issue body (an embedded image or file, another note). The command reports an
|
|
2781
|
+
* idea that has any and does not file it.
|
|
2782
|
+
*/
|
|
2783
|
+
attachments: string[];
|
|
2784
|
+
/**
|
|
2785
|
+
* Set when the provider could not read the idea; the other fields are then empty. The command reports it as a
|
|
2786
|
+
* failing row and goes on with the rest.
|
|
2787
|
+
*/
|
|
2788
|
+
error?: string;
|
|
2789
|
+
}
|
|
2790
|
+
/**
|
|
2791
|
+
* Where ideas are kept before they are issues: an inbox the process starts from (`idea -> issue -> spec -> ...`). A
|
|
2792
|
+
* folder of notes, a forum or a database is one provider, so `holocron ideas sync` reads through this and files through
|
|
2793
|
+
* `issues`, and a change of place is a provider entry and a plugin and nothing else. Optional: a repo with no `ideas`
|
|
2794
|
+
* provider is not affected.
|
|
2795
|
+
*/
|
|
2796
|
+
interface Ideas extends ProviderIdentity {
|
|
2797
|
+
/** Identifies this provider as the `ideas` capability. */
|
|
2798
|
+
readonly key: "ideas";
|
|
2799
|
+
/** Every idea the provider holds, in a provider-neutral shape. Throws when the provider cannot reach its store. */
|
|
2800
|
+
list(): Promise<IdeaRecord[]>;
|
|
2801
|
+
/** Moves an idea to a state. */
|
|
2802
|
+
setStatus(key: string, status: string): Promise<void>;
|
|
2803
|
+
/** Records the issue an idea was filed as, so the step runs once. */
|
|
2804
|
+
markFiled(key: string, issue: string): Promise<void>;
|
|
2805
|
+
/** Takes a filed idea out of the inbox. Optional: the CLI never deletes, so a provider may leave it to an app. */
|
|
2806
|
+
retire?(key: string): Promise<void>;
|
|
2807
|
+
}
|
|
2767
2808
|
/** Maps each capability key to the interface its provider implements. */
|
|
2768
2809
|
interface CapabilityImpls {
|
|
2769
2810
|
/** The `source` provider. */
|
|
@@ -2808,6 +2849,8 @@ interface CapabilityImpls {
|
|
|
2808
2849
|
credentials: Credentials;
|
|
2809
2850
|
/** The `projects` provider. */
|
|
2810
2851
|
projects: Projects;
|
|
2852
|
+
/** The `ideas` provider. */
|
|
2853
|
+
ideas: Ideas;
|
|
2811
2854
|
}
|
|
2812
2855
|
/** The cardinality (`"single"` or `"many"`) of the capability `K`. */
|
|
2813
2856
|
type CardinalityFor<K extends CapabilityKey> = (typeof CARDINALITY)[K];
|
|
@@ -2855,6 +2898,8 @@ declare const CARDINALITY: {
|
|
|
2855
2898
|
readonly tunnels: "single";
|
|
2856
2899
|
/** `projects` has exactly one provider. */
|
|
2857
2900
|
readonly projects: "single";
|
|
2901
|
+
/** `ideas` has exactly one provider. Optional: no repo has to declare it. */
|
|
2902
|
+
readonly ideas: "single";
|
|
2858
2903
|
/** `credentials` can have several providers, tried in order. */
|
|
2859
2904
|
readonly credentials: "many";
|
|
2860
2905
|
};
|
|
@@ -2918,4 +2963,4 @@ declare class WebhookVerificationError extends Error {
|
|
|
2918
2963
|
}
|
|
2919
2964
|
/** Whether `key` is a capability that can have several providers active at once. */
|
|
2920
2965
|
declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
|
|
2921
|
-
export { DnsRecord as $,
|
|
2966
|
+
export { DnsRecord as $, NotificationsForumTag as $t, Cardinality as A, SourceSecurity as An, LifecycleResult as At, DeployFunctionConfig as B, TrackerDoctorReport as Bn, MonitoringAssertionComparison as Bt, BoardStatusCategory as C, Secrets as Cn, IssueOrder as Ct, BoardView as D, SourceFile as Dn, IssueSelector as Dt, BoardTemplateFile as E, SourceBranch as En, IssueSearchFilter as Et, CiRunStatus as F, SyncResult as Fn, MonitoringAlertChannelInput as Ft, DeploymentProject as G, WebhookDashboardInfo as Gn, MoveReport as Gt, DeployScriptConfig as H, TunnelRoute as Hn, MonitoringCheck as Ht, ConnectionStringOptions as I, TeamEntry as In, MonitoringAlertChannelResult as It, DeploymentTarget as J, WikiProxyConfig as Jn, NotificationsAccess as Jt, DeploymentProjectSettings as K, Wiki as Kn, NormalizedAuthUser as Kt, CreateAuthUserInput as L, TeamPermission as Ln, MonitoringAlertChannelState as Lt, Ci as M, StatusCategory as Mn, Logs as Mt, CiRun as N, Storage as Nn, LogsDataset as Nt, CapabilityImpls as O, SourceRepoInfo as On, Issues as Ot, CiRunFilter as P, StorageBranch as Pn, Monitoring as Pt, Dns as Q, NotificationsEveryoneLayout as Qt, Credentials as R, Tooling as Rn, MonitoringAlertSettings as Rt, BoardStatus as S, SecretScope as Sn, IssueComment as St, BoardTemplate as T, Source as Tn, IssueRecord as Tt, DeployScriptResult as U, Tunnels as Un, MonitoringCheckInput as Ut, DeployFunctionResult as V, TrackerUser as Vn, MonitoringAssertionSource as Vt, Deployment as W, Vault as Wn, MonitoringHttpMethod as Wt, DiscussionPatch as X, Workers as Xn, NotificationsChannelLayout as Xt, DeploymentTrigger as Y, WorkerScriptState as Yn, NotificationsApplicationLayout as Yt, DiscussionPost as Z, NotificationsDelivery as Zt, BoardFieldType as _, RelayState as _n, Ideas as _t, REQUIRED_CAPABILITIES as a, NotificationsPicture as an, EnsureReport as at, BoardRule as b, ResolvedCapability as bn, InspectRelayInput as bt, AddedItem as c, NotificationsServerLayout as cn, EnsuredDiscussion as ct, AuthDescription as d, NotificationsWelcomeLayout as dn, Environment as dt, NotificationsLayout as en, DnsRecordRequest as et, AuthEvent as f, PagesConfig as fn, EnvironmentReviewer as ft, BoardField as g, PullRequest as gn, IdeaRecord as gt, AuthUser as h, ProviderIdentity as hn, ExportInfo as ht, ProviderApiError as i, NotificationsOnboardingLayout as in, EnsureRelayResult as it, CardinalityFor as j, SourceTeamMember as jn, LifecycleSlot as jt, CapabilityKey as k, SourceRulesetDetail as kn, LabelDef as kt, Analytics as l, NotificationsSignIn as ln, EnsuredResource as lt, AuthIdentity as m, Projects as mn, Errors as mt, ElevationRequiredError as n, NotificationsMember as nn, EnsureDiscussionInput as nt, WebhookVerificationError as o, NotificationsPinnedLayout as on, EnsureResult as ot, AuthEventType as p, ParseWebhookInput as pn, Environments as pt, DeploymentRecord as q, WikiProvisionOpts as qn, Notifications as qt, MissingTokenError as r, NotificationsMonitoringFeed as rn, EnsureRelayInput as rt, isMulti as s, NotificationsPrsFeed as sn, EnsureWebhookResult as st, CARDINALITY as t, NotificationsLinksLayout as tn, DnsRecordType as tt, Auth as u, NotificationsSignedIn as un, EnsuredTunnel as ut, BoardItem as v, RepoRef as vn, ImportOptions as vt, BoardSummary as w, ServerInspection as wn, IssuePriority as wt, BoardState as x, Ruleset as xn, Issue as xt, BoardItemInput as y, RepoSettings as yn, ImportResult as yt, CredentialsInspection as z, ToolingDoctorReport as zn, MonitoringAssertion as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as DnsRecord, $t as
|
|
2
|
-
import { A as ProviderOptions, B as RepoVariablesSync, C as EslintConfig, D as LogConfig, E as IdeasConfig, F as RepoProtection, G as SingleEntry, H as ResolvedProviderEntry, I as RepoSecrets, J as TelemetryConfig, K as StorybookDeployProject, L as RepoSecretsSync, M as RawProvidersConfig, N as RepoConfig, O as MultiEntry, P as RepoProperties, R as RepoValidationConfig, S as EnvConfig, T as HolocronConfig, U as ResolvedProvidersConfig, V as ResolvedHolocronConfig, W as ResolvedTuple, Y as WorkflowWithConfig, _ as CredentialsConfig, a as LoadedConfig, b as DocsConfig, c as TaskEntry, d as resolveConfig, f as resolveEntry, g as ChromaticProjectConfig, h as CapabilityConfigPackage, i as loadConfig, j as RawProviderEntry, k as OrgConfig, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, q as TaskEntryConfig, r as defineConfig, s as ComposedPreset, t as ConfigFileError, u as credentialsEnvironment, v as DevConfig, w as GitHubAppConfig, x as DoctorConfig, y as DevServeConfig, z as RepoVariables } from "./config-system-
|
|
1
|
+
import { $ as DnsRecord, $t as NotificationsForumTag, A as Cardinality, An as SourceSecurity, At as LifecycleResult, B as DeployFunctionConfig, Bn as TrackerDoctorReport, Bt as MonitoringAssertionComparison, C as BoardStatusCategory, Cn as Secrets, Ct as IssueOrder, D as BoardView, Dn as SourceFile, Dt as IssueSelector, E as BoardTemplateFile, En as SourceBranch, Et as IssueSearchFilter, F as CiRunStatus, Fn as SyncResult, Ft as MonitoringAlertChannelInput, G as DeploymentProject, Gn as WebhookDashboardInfo, Gt as MoveReport, H as DeployScriptConfig, Hn as TunnelRoute, Ht as MonitoringCheck, I as ConnectionStringOptions, In as TeamEntry, It as MonitoringAlertChannelResult, J as DeploymentTarget, Jn as WikiProxyConfig, Jt as NotificationsAccess, K as DeploymentProjectSettings, Kn as Wiki, Kt as NormalizedAuthUser, L as CreateAuthUserInput, Ln as TeamPermission, Lt as MonitoringAlertChannelState, M as Ci, Mn as StatusCategory, Mt as Logs, N as CiRun, Nn as Storage, Nt as LogsDataset, O as CapabilityImpls, On as SourceRepoInfo, Ot as Issues, P as CiRunFilter, Pn as StorageBranch, Pt as Monitoring, Q as Dns, Qt as NotificationsEveryoneLayout, R as Credentials, Rn as Tooling, Rt as MonitoringAlertSettings, S as BoardStatus, Sn as SecretScope, St as IssueComment, T as BoardTemplate, Tn as Source, Tt as IssueRecord, U as DeployScriptResult, Un as Tunnels, Ut as MonitoringCheckInput, V as DeployFunctionResult, Vn as TrackerUser, Vt as MonitoringAssertionSource, W as Deployment, Wn as Vault, Wt as MonitoringHttpMethod, X as DiscussionPatch, Xn as Workers, Xt as NotificationsChannelLayout, Y as DeploymentTrigger, Yn as WorkerScriptState, Yt as NotificationsApplicationLayout, Z as DiscussionPost, Zt as NotificationsDelivery, _ as BoardFieldType, _n as RelayState, _t as Ideas, a as REQUIRED_CAPABILITIES, an as NotificationsPicture, at as EnsureReport, b as BoardRule, bn as ResolvedCapability, bt as InspectRelayInput, c as AddedItem, cn as NotificationsServerLayout, ct as EnsuredDiscussion, d as AuthDescription, dn as NotificationsWelcomeLayout, dt as Environment, en as NotificationsLayout, et as DnsRecordRequest, f as AuthEvent, fn as PagesConfig, ft as EnvironmentReviewer, g as BoardField, gn as PullRequest, gt as IdeaRecord, h as AuthUser, hn as ProviderIdentity, ht as ExportInfo, i as ProviderApiError, in as NotificationsOnboardingLayout, it as EnsureRelayResult, j as CardinalityFor, jn as SourceTeamMember, jt as LifecycleSlot, k as CapabilityKey, kn as SourceRulesetDetail, kt as LabelDef, l as Analytics, ln as NotificationsSignIn, lt as EnsuredResource, m as AuthIdentity, mn as Projects, mt as Errors, n as ElevationRequiredError, nn as NotificationsMember, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsPinnedLayout, ot as EnsureResult, p as AuthEventType, pn as ParseWebhookInput, pt as Environments, q as DeploymentRecord, qn as WikiProvisionOpts, qt as Notifications, r as MissingTokenError, rn as NotificationsMonitoringFeed, rt as EnsureRelayInput, s as isMulti, sn as NotificationsPrsFeed, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsLinksLayout, tt as DnsRecordType, u as Auth, un as NotificationsSignedIn, ut as EnsuredTunnel, v as BoardItem, vn as RepoRef, vt as ImportOptions, w as BoardSummary, wn as ServerInspection, wt as IssuePriority, x as BoardState, xn as Ruleset, xt as Issue, y as BoardItemInput, yn as RepoSettings, yt as ImportResult, z as CredentialsInspection, zn as ToolingDoctorReport, zt as MonitoringAssertion } from "./index-DbbyDvZi.mjs";
|
|
2
|
+
import { A as ProviderOptions, B as RepoVariablesSync, C as EslintConfig, D as LogConfig, E as IdeasConfig, F as RepoProtection, G as SingleEntry, H as ResolvedProviderEntry, I as RepoSecrets, J as TelemetryConfig, K as StorybookDeployProject, L as RepoSecretsSync, M as RawProvidersConfig, N as RepoConfig, O as MultiEntry, P as RepoProperties, R as RepoValidationConfig, S as EnvConfig, T as HolocronConfig, U as ResolvedProvidersConfig, V as ResolvedHolocronConfig, W as ResolvedTuple, Y as WorkflowWithConfig, _ as CredentialsConfig, a as LoadedConfig, b as DocsConfig, c as TaskEntry, d as resolveConfig, f as resolveEntry, g as ChromaticProjectConfig, h as CapabilityConfigPackage, i as loadConfig, j as RawProviderEntry, k as OrgConfig, l as ConfigError, m as AppConfig, n as compose, o as Capability, p as resolvePluginPackage, q as TaskEntryConfig, r as defineConfig, s as ComposedPreset, t as ConfigFileError, u as credentialsEnvironment, v as DevConfig, w as GitHubAppConfig, x as DoctorConfig, y as DevServeConfig, z as RepoVariables } from "./config-system-CYv5GFIa.mjs";
|
|
3
3
|
import { AuthError, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, ResolveTokenInput as ResolveTokenInput$1, resolveValue } from "@theholocron/kyber/secrets";
|
|
4
4
|
import { CheckRow } from "@theholocron/kyber/ui";
|
|
5
5
|
import { RequestOptions, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
|
|
@@ -484,4 +484,4 @@ export declare const SHARED_AREAS: readonly ["org"];
|
|
|
484
484
|
* is a `ConfigError` naming both (no merge, no precedence). With no area files the config is returned as it was.
|
|
485
485
|
*/
|
|
486
486
|
export declare function placeAreas(areas: ConfigDirArea[], raw: HolocronConfig): HolocronConfig;
|
|
487
|
-
export { AddedItem, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, type IdeasConfig, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, type MemberLink, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, RelayState, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RequestOptions, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenResolver, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, isMulti, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
|
|
487
|
+
export { AddedItem, Analytics, type AppConfig, Auth, AuthDescription, AuthError, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, type Capability, type CapabilityConfigPackage, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, type ChromaticProjectConfig, Ci, CiRun, CiRunFilter, CiRunStatus, type ComposedPreset, ConfigError, ConfigFileError, ConnectionStringOptions, CreateAuthUserInput, Credentials, type CredentialsConfig, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, type DeriveProfileInput, type DevConfig, type DevServeConfig, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, type DocsConfig, type DoctorConfig, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, type EnvConfig, Environment, EnvironmentReviewer, Environments, Errors, type EslintConfig, ExportInfo, type FeatureResolver, type FeatureResolverConfig, type GitHubAppConfig, type HolocronConfig, type HolocronProfile, IdeaRecord, Ideas, type IdeasConfig, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, type LinksFile, type LoadedConfig, type LogConfig, Logs, LogsDataset, type MemberLink, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, type MultiEntry, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, type OrgConfig, type PackageJsonLike, PagesConfig, ParseWebhookInput, type PluginProbes, type PluginToken, type Probe, type ProbeContext, type ProbeRow, Projects, type ProviderAction, type ProviderActionContext, type ProviderActions, ProviderApiError, ProviderIdentity, type ProviderOptions, type ProviderRow, PullRequest, REQUIRED_CAPABILITIES, type RawProviderEntry, type RawProvidersConfig, type ReadKeysLimitedInput, RelayState, type RepoConfig, type RepoProperties, type RepoProtection, RepoRef, type RepoSecrets, type RepoSecretsSync, RepoSettings, type RepoValidationConfig, type RepoVariables, type RepoVariablesSync, type RequestOptions, type ResolveTokenConfig, type ResolveTokenInput, ResolvedCapability, type ResolvedHolocronConfig, type ResolvedProviderEntry, type ResolvedProvidersConfig, type ResolvedTuple, type RestClient, type RestClientConfig, Ruleset, SecretScope, Secrets, ServerInspection, type SingleEntry, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, type StorybookDeployProject, SyncResult, type SyncRolesInput, type SyncRolesResult, type TaskEntry, type TaskEntryConfig, TeamEntry, TeamPermission, type TelemetryConfig, type TokenResolver, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, type VerifyTokenFailure, type VerifyTokenResult, type VerifyTokenSuccess, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, type WorkflowWithConfig, compose, createRestClient, credentialsEnvironment, defineConfig, isMulti, loadConfig, resolveConfig, resolveEntry, resolvePluginPackage, resolveValue };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CARDINALITY, ElevationRequiredError, MissingTokenError, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificationError, isMulti } from "./plugin/capabilities.mjs";
|
|
2
|
-
import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, i as loadConfig, l as credentialsEnvironment, n as compose, o as HOLOCRON_AREAS, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-
|
|
2
|
+
import { a as placeAreas, c as ConfigError, d as resolveEntry, f as resolvePluginPackage, i as loadConfig, l as credentialsEnvironment, n as compose, o as HOLOCRON_AREAS, r as defineConfig, s as SHARED_AREAS, t as ConfigFileError, u as resolveConfig } from "./config-system-CeVFoOau.mjs";
|
|
3
3
|
import { Entry, findCredentials } from "@napi-rs/keyring";
|
|
4
4
|
import { AuthError, createFeatureResolver as createFeatureResolver$1, createKeyring, createResolveToken as createResolveToken$1, resolveValue } from "@theholocron/kyber/secrets";
|
|
5
5
|
import { describeError, style } from "@theholocron/kyber/ui";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as DnsRecord, $t as
|
|
2
|
-
export { AddedItem, Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentReviewer, Environments, Errors, ExportInfo, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, LogsDataset, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretScope, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, isMulti };
|
|
1
|
+
import { $ as DnsRecord, $t as NotificationsForumTag, A as Cardinality, An as SourceSecurity, At as LifecycleResult, B as DeployFunctionConfig, Bn as TrackerDoctorReport, Bt as MonitoringAssertionComparison, C as BoardStatusCategory, Cn as Secrets, Ct as IssueOrder, D as BoardView, Dn as SourceFile, Dt as IssueSelector, E as BoardTemplateFile, En as SourceBranch, Et as IssueSearchFilter, F as CiRunStatus, Fn as SyncResult, Ft as MonitoringAlertChannelInput, G as DeploymentProject, Gn as WebhookDashboardInfo, Gt as MoveReport, H as DeployScriptConfig, Hn as TunnelRoute, Ht as MonitoringCheck, I as ConnectionStringOptions, In as TeamEntry, It as MonitoringAlertChannelResult, J as DeploymentTarget, Jn as WikiProxyConfig, Jt as NotificationsAccess, K as DeploymentProjectSettings, Kn as Wiki, Kt as NormalizedAuthUser, L as CreateAuthUserInput, Ln as TeamPermission, Lt as MonitoringAlertChannelState, M as Ci, Mn as StatusCategory, Mt as Logs, N as CiRun, Nn as Storage, Nt as LogsDataset, O as CapabilityImpls, On as SourceRepoInfo, Ot as Issues, P as CiRunFilter, Pn as StorageBranch, Pt as Monitoring, Q as Dns, Qt as NotificationsEveryoneLayout, R as Credentials, Rn as Tooling, Rt as MonitoringAlertSettings, S as BoardStatus, Sn as SecretScope, St as IssueComment, T as BoardTemplate, Tn as Source, Tt as IssueRecord, U as DeployScriptResult, Un as Tunnels, Ut as MonitoringCheckInput, V as DeployFunctionResult, Vn as TrackerUser, Vt as MonitoringAssertionSource, W as Deployment, Wn as Vault, Wt as MonitoringHttpMethod, X as DiscussionPatch, Xn as Workers, Xt as NotificationsChannelLayout, Y as DeploymentTrigger, Yn as WorkerScriptState, Yt as NotificationsApplicationLayout, Z as DiscussionPost, Zt as NotificationsDelivery, _ as BoardFieldType, _n as RelayState, _t as Ideas, a as REQUIRED_CAPABILITIES, an as NotificationsPicture, at as EnsureReport, b as BoardRule, bn as ResolvedCapability, bt as InspectRelayInput, c as AddedItem, cn as NotificationsServerLayout, ct as EnsuredDiscussion, d as AuthDescription, dn as NotificationsWelcomeLayout, dt as Environment, en as NotificationsLayout, et as DnsRecordRequest, f as AuthEvent, fn as PagesConfig, ft as EnvironmentReviewer, g as BoardField, gn as PullRequest, gt as IdeaRecord, h as AuthUser, hn as ProviderIdentity, ht as ExportInfo, i as ProviderApiError, in as NotificationsOnboardingLayout, it as EnsureRelayResult, j as CardinalityFor, jn as SourceTeamMember, jt as LifecycleSlot, k as CapabilityKey, kn as SourceRulesetDetail, kt as LabelDef, l as Analytics, ln as NotificationsSignIn, lt as EnsuredResource, m as AuthIdentity, mn as Projects, mt as Errors, n as ElevationRequiredError, nn as NotificationsMember, nt as EnsureDiscussionInput, o as WebhookVerificationError, on as NotificationsPinnedLayout, ot as EnsureResult, p as AuthEventType, pn as ParseWebhookInput, pt as Environments, q as DeploymentRecord, qn as WikiProvisionOpts, qt as Notifications, r as MissingTokenError, rn as NotificationsMonitoringFeed, rt as EnsureRelayInput, s as isMulti, sn as NotificationsPrsFeed, st as EnsureWebhookResult, t as CARDINALITY, tn as NotificationsLinksLayout, tt as DnsRecordType, u as Auth, un as NotificationsSignedIn, ut as EnsuredTunnel, v as BoardItem, vn as RepoRef, vt as ImportOptions, w as BoardSummary, wn as ServerInspection, wt as IssuePriority, x as BoardState, xn as Ruleset, xt as Issue, y as BoardItemInput, yn as RepoSettings, yt as ImportResult, z as CredentialsInspection, zn as ToolingDoctorReport, zt as MonitoringAssertion } from "../index-DbbyDvZi.mjs";
|
|
2
|
+
export { AddedItem, Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, BoardField, BoardFieldType, BoardItem, BoardItemInput, BoardRule, BoardState, BoardStatus, BoardStatusCategory, BoardSummary, BoardTemplate, BoardTemplateFile, BoardView, CARDINALITY, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, CreateAuthUserInput, Credentials, CredentialsInspection, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, DiscussionPatch, DiscussionPost, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, ElevationRequiredError, EnsureDiscussionInput, EnsureRelayInput, EnsureRelayResult, EnsureReport, EnsureResult, EnsureWebhookResult, EnsuredDiscussion, EnsuredResource, EnsuredTunnel, Environment, EnvironmentReviewer, Environments, Errors, ExportInfo, IdeaRecord, Ideas, ImportOptions, ImportResult, InspectRelayInput, Issue, IssueComment, IssueOrder, IssuePriority, IssueRecord, IssueSearchFilter, IssueSelector, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, LogsDataset, MissingTokenError, Monitoring, MonitoringAlertChannelInput, MonitoringAlertChannelResult, MonitoringAlertChannelState, MonitoringAlertSettings, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, MoveReport, NormalizedAuthUser, Notifications, NotificationsAccess, NotificationsApplicationLayout, NotificationsChannelLayout, NotificationsDelivery, NotificationsEveryoneLayout, NotificationsForumTag, NotificationsLayout, NotificationsLinksLayout, NotificationsMember, NotificationsMonitoringFeed, NotificationsOnboardingLayout, NotificationsPicture, NotificationsPinnedLayout, NotificationsPrsFeed, NotificationsServerLayout, NotificationsSignIn, NotificationsSignedIn, NotificationsWelcomeLayout, PagesConfig, ParseWebhookInput, Projects, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RelayState, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretScope, Secrets, ServerInspection, Source, SourceBranch, SourceFile, SourceRepoInfo, SourceRulesetDetail, SourceSecurity, SourceTeamMember, StatusCategory, Storage, StorageBranch, SyncResult, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, TunnelRoute, Tunnels, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, WorkerScriptState, Workers, isMulti };
|
|
@@ -42,6 +42,8 @@ const CARDINALITY = {
|
|
|
42
42
|
tunnels: "single",
|
|
43
43
|
/** `projects` has exactly one provider. */
|
|
44
44
|
projects: "single",
|
|
45
|
+
/** `ideas` has exactly one provider. Optional: no repo has to declare it. */
|
|
46
|
+
ideas: "single",
|
|
45
47
|
/** `credentials` can have several providers, tried in order. */
|
|
46
48
|
credentials: "many"
|
|
47
49
|
};
|
package/dist/presets.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-
|
|
1
|
+
import { n as compose, o as Capability, s as ComposedPreset } from "./config-system-CYv5GFIa.mjs";
|
|
2
2
|
/** Options for the audit capability. */
|
|
3
3
|
interface AuditOptions {
|
|
4
4
|
/** Enable Knip unused-export analysis (default: false). */
|
package/dist/presets.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/cli",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.396",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -59,19 +59,19 @@
|
|
|
59
59
|
"posthog-node": "^5.61.2",
|
|
60
60
|
"tsx": "4.23.15",
|
|
61
61
|
"yargs": "^18.1.0",
|
|
62
|
-
"@theholocron/astromech": "5.0.0-alpha.
|
|
63
|
-
"@theholocron/
|
|
64
|
-
"@theholocron/
|
|
65
|
-
"@theholocron/fs-utils": "^1.17.0-alpha.3",
|
|
62
|
+
"@theholocron/astromech": "5.0.0-alpha.396",
|
|
63
|
+
"@theholocron/dagobah": "5.0.0-alpha.396",
|
|
64
|
+
"@theholocron/datapad": "5.0.0-alpha.396",
|
|
66
65
|
"@theholocron/env-utils": "^1.17.0-alpha.3",
|
|
66
|
+
"@theholocron/fs-utils": "^1.17.0-alpha.3",
|
|
67
67
|
"@theholocron/git-utils": "^1.17.0-alpha.3",
|
|
68
68
|
"@theholocron/github-client": "^1.58.0-alpha.27",
|
|
69
69
|
"@theholocron/http-client": "^1.58.0-alpha.27",
|
|
70
70
|
"@theholocron/json-utils": "^1.17.0-alpha.3",
|
|
71
|
-
"@theholocron/kyber": "5.0.0-alpha.
|
|
71
|
+
"@theholocron/kyber": "5.0.0-alpha.396",
|
|
72
72
|
"@theholocron/misc-utils": "^1.17.0-alpha.3",
|
|
73
|
-
"@theholocron/
|
|
74
|
-
"@theholocron/
|
|
73
|
+
"@theholocron/observability": "^0.7.0-alpha.3",
|
|
74
|
+
"@theholocron/pkg-utils": "^1.17.0-alpha.3"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@types/node": "^26",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"tsdown": "^0.23.5",
|
|
85
85
|
"typescript": "^5.9.3",
|
|
86
86
|
"vitest": "^5.1.0",
|
|
87
|
+
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.15",
|
|
87
88
|
"@theholocron/eslint-config": "^8.9.0-alpha.15",
|
|
88
89
|
"@theholocron/vitest-config": "^8.9.0-alpha.15",
|
|
89
|
-
"@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.15",
|
|
90
90
|
"@theholocron/tsconfig": "^8.9.0-alpha.15"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|