@theholocron/cli 5.0.0-alpha.152 → 5.0.0-alpha.154
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 +3 -3
- package/dist/cli.mjs +1345 -1600
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +82 -162
- package/dist/index.mjs +9 -162
- package/dist/plugin/capabilities.d.mts +32 -30
- package/dist/plugin/capabilities.mjs +1 -1
- package/package.json +11 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProviderApiError } from "@theholocron/http-client";
|
|
2
|
-
//#region src/plugin/capabilities.d.ts
|
|
2
|
+
//#region src/plugin/capabilities/capabilities.type.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Capability interfaces — the contracts that providers implement.
|
|
5
5
|
*
|
|
@@ -14,32 +14,6 @@ import { ProviderApiError } from "@theholocron/http-client";
|
|
|
14
14
|
*/
|
|
15
15
|
type CapabilityKey = "source" | "ci" | "secrets" | "environments" | "issues" | "deployment" | "storage" | "auth" | "vault" | "dns" | "tooling" | "notifications" | "analytics" | "errors" | "logs" | "monitoring" | "wiki" | "workers";
|
|
16
16
|
type Cardinality = "single" | "many";
|
|
17
|
-
declare const CARDINALITY: {
|
|
18
|
-
readonly source: "single";
|
|
19
|
-
readonly ci: "single";
|
|
20
|
-
readonly secrets: "single";
|
|
21
|
-
readonly environments: "single";
|
|
22
|
-
readonly issues: "single";
|
|
23
|
-
readonly deployment: "single";
|
|
24
|
-
readonly storage: "single";
|
|
25
|
-
readonly auth: "single";
|
|
26
|
-
readonly vault: "single";
|
|
27
|
-
readonly dns: "single";
|
|
28
|
-
readonly tooling: "many";
|
|
29
|
-
readonly notifications: "many";
|
|
30
|
-
readonly analytics: "many";
|
|
31
|
-
readonly errors: "single";
|
|
32
|
-
readonly logs: "single";
|
|
33
|
-
readonly monitoring: "single";
|
|
34
|
-
readonly wiki: "single";
|
|
35
|
-
readonly workers: "single";
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* No capabilities are strictly required — repos without secrets (e.g. org
|
|
39
|
-
* community health repos) legitimately omit vault. Plugins validate their
|
|
40
|
-
* own requirements at call time.
|
|
41
|
-
*/
|
|
42
|
-
declare const REQUIRED_CAPABILITIES: readonly CapabilityKey[];
|
|
43
17
|
interface ProviderIdentity {
|
|
44
18
|
readonly key: CapabilityKey;
|
|
45
19
|
readonly providerName: string;
|
|
@@ -562,9 +536,6 @@ interface ParseWebhookInput {
|
|
|
562
536
|
/** The signing secret the auth provider issued for this webhook endpoint. */
|
|
563
537
|
signingSecret: string;
|
|
564
538
|
}
|
|
565
|
-
declare class WebhookVerificationError extends Error {
|
|
566
|
-
name: string;
|
|
567
|
-
}
|
|
568
539
|
interface EnsureResult {
|
|
569
540
|
/** True when the resource already existed (idempotent no-op). */
|
|
570
541
|
alreadyExists: boolean;
|
|
@@ -892,6 +863,37 @@ interface CapabilityImpls {
|
|
|
892
863
|
type CardinalityFor<K extends CapabilityKey> = (typeof CARDINALITY)[K];
|
|
893
864
|
/** Resolved runtime shape: single → one impl; many → array. */
|
|
894
865
|
type ResolvedCapability<K extends CapabilityKey> = CardinalityFor<K> extends "many" ? CapabilityImpls[K][] : CapabilityImpls[K];
|
|
866
|
+
//#endregion
|
|
867
|
+
//#region src/plugin/capabilities/capabilities.d.ts
|
|
868
|
+
declare const CARDINALITY: {
|
|
869
|
+
readonly source: "single";
|
|
870
|
+
readonly ci: "single";
|
|
871
|
+
readonly secrets: "single";
|
|
872
|
+
readonly environments: "single";
|
|
873
|
+
readonly issues: "single";
|
|
874
|
+
readonly deployment: "single";
|
|
875
|
+
readonly storage: "single";
|
|
876
|
+
readonly auth: "single";
|
|
877
|
+
readonly vault: "single";
|
|
878
|
+
readonly dns: "single";
|
|
879
|
+
readonly tooling: "many";
|
|
880
|
+
readonly notifications: "many";
|
|
881
|
+
readonly analytics: "many";
|
|
882
|
+
readonly errors: "single";
|
|
883
|
+
readonly logs: "single";
|
|
884
|
+
readonly monitoring: "single";
|
|
885
|
+
readonly wiki: "single";
|
|
886
|
+
readonly workers: "single";
|
|
887
|
+
};
|
|
888
|
+
/**
|
|
889
|
+
* No capabilities are strictly required — repos without secrets (e.g. org
|
|
890
|
+
* community health repos) legitimately omit vault. Plugins validate their
|
|
891
|
+
* own requirements at call time.
|
|
892
|
+
*/
|
|
893
|
+
declare const REQUIRED_CAPABILITIES: readonly CapabilityKey[];
|
|
894
|
+
declare class WebhookVerificationError extends Error {
|
|
895
|
+
name: string;
|
|
896
|
+
}
|
|
895
897
|
declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
|
|
896
898
|
//#endregion
|
|
897
899
|
export { Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, CreateAuthUserInput, DeployFunctionConfig, DeployFunctionResult, DeployScriptConfig, DeployScriptResult, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, Dns, DnsRecord, DnsRecordRequest, DnsRecordType, EnsureResult, Environment, EnvironmentReviewer, Environments, Errors, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, Monitoring, MonitoringAssertion, MonitoringAssertionComparison, MonitoringAssertionSource, MonitoringCheck, MonitoringCheckInput, MonitoringHttpMethod, NormalizedAuthUser, Notifications, PagesConfig, ParseWebhookInput, ProviderApiError, ProviderIdentity, PullRequest, REQUIRED_CAPABILITIES, RepoRef, RepoSettings, ResolvedCapability, Ruleset, SecretScope, Secrets, Source, StatusCategory, Storage, StorageBranch, TeamEntry, TeamPermission, Tooling, ToolingDoctorReport, TrackerDoctorReport, TrackerUser, Vault, WebhookDashboardInfo, WebhookVerificationError, Wiki, WikiProvisionOpts, WikiProxyConfig, Workers, isMulti };
|
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.154",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -41,23 +41,20 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@axiomhq/pino": "^2.0.0",
|
|
44
|
-
"@commitlint/lint": "^21.2.3",
|
|
45
|
-
"@commitlint/load": "^21.2.3",
|
|
46
|
-
"@commitlint/types": "^21.2.3",
|
|
47
44
|
"@inquirer/prompts": "^8.5.2",
|
|
48
45
|
"@inquirer/search": "^4.3.3",
|
|
49
46
|
"@napi-rs/keyring": "^1.3.0",
|
|
50
47
|
"@sentry/node": "^10.70.0",
|
|
51
48
|
"@theholocron/components-doc": "^1.6.0",
|
|
52
49
|
"@theholocron/env-utils": "^1.15.1",
|
|
53
|
-
"@theholocron/fs-utils": "^1.
|
|
54
|
-
"@theholocron/git-utils": "^1.
|
|
55
|
-
"@theholocron/github-client": "^1.
|
|
56
|
-
"@theholocron/http-client": "^1.42.
|
|
57
|
-
"@theholocron/json-utils": "^1.
|
|
58
|
-
"@theholocron/misc-utils": "^1.
|
|
50
|
+
"@theholocron/fs-utils": "^1.15.1",
|
|
51
|
+
"@theholocron/git-utils": "^1.15.1",
|
|
52
|
+
"@theholocron/github-client": "^1.42.1",
|
|
53
|
+
"@theholocron/http-client": "^1.42.1",
|
|
54
|
+
"@theholocron/json-utils": "^1.15.1",
|
|
55
|
+
"@theholocron/misc-utils": "^1.15.1",
|
|
59
56
|
"@theholocron/observability": "^0.6.0",
|
|
60
|
-
"@theholocron/pkg-utils": "^1.
|
|
57
|
+
"@theholocron/pkg-utils": "^1.15.1",
|
|
61
58
|
"@theholocron/registry-doc": "^1.12.0",
|
|
62
59
|
"chalk": "^6.0.0",
|
|
63
60
|
"dotenv": "^17.4.2",
|
|
@@ -66,12 +63,10 @@
|
|
|
66
63
|
"pino-pretty": "^13.1.3",
|
|
67
64
|
"posthog-node": "^5.51.6",
|
|
68
65
|
"yargs": "^18.1.0",
|
|
69
|
-
"@theholocron/
|
|
70
|
-
"@theholocron/
|
|
66
|
+
"@theholocron/datapad": "5.0.0-alpha.154",
|
|
67
|
+
"@theholocron/astromech": "5.0.0-alpha.154"
|
|
71
68
|
},
|
|
72
69
|
"devDependencies": {
|
|
73
|
-
"@commitlint/config-conventional": "^21.2.3",
|
|
74
|
-
"@theholocron/commitlint-config": "^8.7.1",
|
|
75
70
|
"@theholocron/eslint-config": "^8.7.1",
|
|
76
71
|
"@theholocron/tsconfig": "^8.7.1",
|
|
77
72
|
"@theholocron/vitest-config": "^8.7.0",
|
|
@@ -86,7 +81,7 @@
|
|
|
86
81
|
"tsx": "4.23.12",
|
|
87
82
|
"typescript": "^5.9.3",
|
|
88
83
|
"vitest": "^4.1.11",
|
|
89
|
-
"@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.
|
|
84
|
+
"@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.154"
|
|
90
85
|
},
|
|
91
86
|
"engines": {
|
|
92
87
|
"node": ">=22.0.0"
|