@theholocron/cli 5.0.0-alpha.16 → 5.0.0-alpha.160
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 +224 -53
- package/dist/cli.mjs +3237 -1779
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +170 -31
- package/dist/index.mjs +141 -49
- package/dist/plugin/capabilities.d.mts +208 -51
- package/dist/plugin/capabilities.mjs +2 -1
- package/package.json +18 -12
|
@@ -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
|
*
|
|
@@ -12,33 +12,8 @@ import { ProviderApiError } from "@theholocron/http-client";
|
|
|
12
12
|
* See `docs/wiki/specifications/tech-architecture.spec.md` for the design narrative
|
|
13
13
|
* (issue: #74).
|
|
14
14
|
*/
|
|
15
|
-
type CapabilityKey = "source" | "ci" | "secrets" | "environments" | "issues" | "deployment" | "storage" | "auth" | "vault" | "dns" | "tooling" | "notifications" | "analytics" | "errors" | "logs" | "wiki" | "workers";
|
|
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 wiki: "single";
|
|
34
|
-
readonly workers: "single";
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* No capabilities are strictly required — repos without secrets (e.g. org
|
|
38
|
-
* community health repos) legitimately omit vault. Plugins validate their
|
|
39
|
-
* own requirements at call time.
|
|
40
|
-
*/
|
|
41
|
-
declare const REQUIRED_CAPABILITIES: readonly CapabilityKey[];
|
|
42
17
|
interface ProviderIdentity {
|
|
43
18
|
readonly key: CapabilityKey;
|
|
44
19
|
readonly providerName: string;
|
|
@@ -364,9 +339,35 @@ interface DeploymentRecord {
|
|
|
364
339
|
target?: DeploymentTrigger;
|
|
365
340
|
status: "queued" | "building" | "ready" | "error" | "cancelled";
|
|
366
341
|
createdAt?: string;
|
|
342
|
+
/** The provider's own reason when `status` is `"error"` (e.g. Vercel's `Command "npm install" exited with 1`). */
|
|
343
|
+
errorMessage?: string;
|
|
344
|
+
}
|
|
345
|
+
/** Config for `Deployment.deployFunction()` — source files, not a Git ref. */
|
|
346
|
+
interface DeployFunctionConfig {
|
|
347
|
+
/**
|
|
348
|
+
* Files to deploy, keyed by path relative to the project root (e.g.
|
|
349
|
+
* `"api/webhook.js"`, `"package.json"`). Content is plain text — the
|
|
350
|
+
* provider handles any wire-format encoding.
|
|
351
|
+
*/
|
|
352
|
+
files: Record<string, string>;
|
|
353
|
+
/**
|
|
354
|
+
* Named deployment target. Omit for a preview deployment — same
|
|
355
|
+
* semantics as `triggerDeployment`'s `target`.
|
|
356
|
+
*/
|
|
357
|
+
target?: DeploymentTrigger;
|
|
358
|
+
}
|
|
359
|
+
interface DeployFunctionResult {
|
|
360
|
+
deploymentId: string;
|
|
361
|
+
url: string;
|
|
367
362
|
}
|
|
368
363
|
interface Deployment extends ProviderIdentity {
|
|
369
364
|
readonly key: "deployment";
|
|
365
|
+
/**
|
|
366
|
+
* Custom domain declared in the deployment provider's configuration.
|
|
367
|
+
* `holocron repo setup` attaches it to the configured project and hands any
|
|
368
|
+
* returned verification record to the `dns` capability.
|
|
369
|
+
*/
|
|
370
|
+
readonly domain?: string;
|
|
370
371
|
listProjects(): Promise<DeploymentProject[]>;
|
|
371
372
|
/** Create if missing, otherwise return existing. Idempotent. */
|
|
372
373
|
ensureProject(input: {
|
|
@@ -390,6 +391,16 @@ interface Deployment extends ProviderIdentity {
|
|
|
390
391
|
target?: DeploymentTrigger;
|
|
391
392
|
}): Promise<DeploymentRecord>;
|
|
392
393
|
getDeployment(deploymentId: string): Promise<DeploymentRecord>;
|
|
394
|
+
/**
|
|
395
|
+
* Deploy (or update) a project directly from source files, bypassing
|
|
396
|
+
* Git entirely — the non-git counterpart to `triggerDeployment`, for a
|
|
397
|
+
* consumer with no repo to link (a webhook receiver shipped as an npm
|
|
398
|
+
* package, for instance, rather than deployed from its own Git
|
|
399
|
+
* history). `projectId` may be a project name for providers that
|
|
400
|
+
* accept either. Optional — providers without a files-based deploy API
|
|
401
|
+
* omit this (e.g. Cloudflare Pages, git-source only today).
|
|
402
|
+
*/
|
|
403
|
+
deployFunction?(projectId: string, config: DeployFunctionConfig): Promise<DeployFunctionResult>;
|
|
393
404
|
/**
|
|
394
405
|
* List preview deployments for a specific branch alias (e.g. "repo-pr-42").
|
|
395
406
|
* Optional — providers that don't support listing by branch omit this.
|
|
@@ -402,10 +413,18 @@ interface Deployment extends ProviderIdentity {
|
|
|
402
413
|
deletePreviewDeployments?(projectId: string, deploymentIds: string[]): Promise<number>;
|
|
403
414
|
/**
|
|
404
415
|
* Add a custom domain (or wildcard) to the project. Idempotent — no-op
|
|
405
|
-
* when the domain is already present. Optional: providers without a
|
|
406
|
-
* domain API omit this
|
|
416
|
+
* when the domain is already present. Optional: providers without a
|
|
417
|
+
* custom domain API omit this.
|
|
418
|
+
*
|
|
419
|
+
* Returns the DNS record needed to finish verification — `null` when
|
|
420
|
+
* the domain is already verified, or when the provider's API doesn't
|
|
421
|
+
* surface DNS-challenge details at all (e.g. Cloudflare Pages, whose
|
|
422
|
+
* custom-domain flow doesn't expose the same per-request verification
|
|
423
|
+
* handshake Vercel's does). Callers hand a non-null result straight
|
|
424
|
+
* to `dns.upsertRecord(result.zone, result.record)` — the exact
|
|
425
|
+
* pattern `setup` already uses for `Wiki.dnsRecord()`.
|
|
407
426
|
*/
|
|
408
|
-
ensureCustomDomain?(projectId: string, hostname: string): Promise<
|
|
427
|
+
ensureCustomDomain?(projectId: string, hostname: string): Promise<DnsRecordRequest | null>;
|
|
409
428
|
}
|
|
410
429
|
interface StorageBranch {
|
|
411
430
|
id: string;
|
|
@@ -517,9 +536,6 @@ interface ParseWebhookInput {
|
|
|
517
536
|
/** The signing secret the auth provider issued for this webhook endpoint. */
|
|
518
537
|
signingSecret: string;
|
|
519
538
|
}
|
|
520
|
-
declare class WebhookVerificationError extends Error {
|
|
521
|
-
name: string;
|
|
522
|
-
}
|
|
523
539
|
interface EnsureResult {
|
|
524
540
|
/** True when the resource already existed (idempotent no-op). */
|
|
525
541
|
alreadyExists: boolean;
|
|
@@ -573,11 +589,31 @@ interface DnsRecord {
|
|
|
573
589
|
priority?: number;
|
|
574
590
|
proxied?: boolean;
|
|
575
591
|
}
|
|
592
|
+
/**
|
|
593
|
+
* A DNS record a capability wants created, plus which zone it belongs
|
|
594
|
+
* to — the shape `Wiki.dnsRecord()` and `Deployment.ensureCustomDomain()`
|
|
595
|
+
* both hand off to `Dns.upsertRecord()`. Not tied to either capability;
|
|
596
|
+
* any provider that needs "here's a record, go create it" returns this.
|
|
597
|
+
*/
|
|
598
|
+
interface DnsRecordRequest {
|
|
599
|
+
/** Zone apex passed as the first argument to `dns.upsertRecord`. */
|
|
600
|
+
zone: string;
|
|
601
|
+
record: DnsRecord;
|
|
602
|
+
}
|
|
576
603
|
interface Dns extends ProviderIdentity {
|
|
577
604
|
readonly key: "dns";
|
|
578
605
|
listRecords(domain: string): Promise<DnsRecord[]>;
|
|
579
606
|
upsertRecord(domain: string, record: DnsRecord): Promise<DnsRecord>;
|
|
580
607
|
deleteRecord(domain: string, id: string): Promise<void>;
|
|
608
|
+
/**
|
|
609
|
+
* A `holocron doctor` smoke check with no specific domain to ask about —
|
|
610
|
+
* `listRecords` needs one, but doctor doesn't have one on hand. Verifies
|
|
611
|
+
* the token and reports how many zones it can see.
|
|
612
|
+
*/
|
|
613
|
+
whoami?(): Promise<{
|
|
614
|
+
ok: boolean;
|
|
615
|
+
zones: number;
|
|
616
|
+
}>;
|
|
581
617
|
}
|
|
582
618
|
interface Errors extends ProviderIdentity {
|
|
583
619
|
readonly key: "errors";
|
|
@@ -614,6 +650,74 @@ interface Logs extends ProviderIdentity {
|
|
|
614
650
|
alreadyExists: boolean;
|
|
615
651
|
}>;
|
|
616
652
|
}
|
|
653
|
+
type MonitoringAssertionSource = "status_code" | "response_time" | "body" | "header";
|
|
654
|
+
type MonitoringAssertionComparison = "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than";
|
|
655
|
+
interface MonitoringAssertion {
|
|
656
|
+
source: MonitoringAssertionSource;
|
|
657
|
+
comparison: MonitoringAssertionComparison;
|
|
658
|
+
/** Header name / JSON path — required when `source` needs one (e.g. `"header"`). */
|
|
659
|
+
property?: string;
|
|
660
|
+
target?: string;
|
|
661
|
+
}
|
|
662
|
+
type MonitoringHttpMethod = "GET" | "POST" | "PUT" | "HEAD" | "DELETE" | "PATCH";
|
|
663
|
+
interface MonitoringCheckInput {
|
|
664
|
+
/** Also the idempotency key — `ensureCheck` finds-or-creates by this name. */
|
|
665
|
+
name: string;
|
|
666
|
+
url: string;
|
|
667
|
+
method?: MonitoringHttpMethod;
|
|
668
|
+
/** Minutes between runs. Adapters round to their own supported values. */
|
|
669
|
+
frequency?: number;
|
|
670
|
+
assertions?: MonitoringAssertion[];
|
|
671
|
+
activated?: boolean;
|
|
672
|
+
/**
|
|
673
|
+
* Provider-specific region/datacenter ids to run the check from (e.g.
|
|
674
|
+
* Checkly's `"us-east-1"`). Required by some providers — there's no
|
|
675
|
+
* universal default; an account with none configured rejects a check
|
|
676
|
+
* that omits this entirely.
|
|
677
|
+
*/
|
|
678
|
+
locations?: string[];
|
|
679
|
+
/**
|
|
680
|
+
* Inverts pass/fail: set this when the check's expected-healthy
|
|
681
|
+
* response is itself an HTTP error status (e.g. asserting a 404/405
|
|
682
|
+
* on an endpoint that should reject certain requests). Without it,
|
|
683
|
+
* most providers classify any 4xx/5xx response as a failure at the
|
|
684
|
+
* platform level *before* evaluating `assertions` at all — a custom
|
|
685
|
+
* assertion that matches the "expected" error status does not
|
|
686
|
+
* override that baseline classification on its own.
|
|
687
|
+
*/
|
|
688
|
+
shouldFail?: boolean;
|
|
689
|
+
/**
|
|
690
|
+
* Raw request body to send with the check — e.g. simulating a webhook
|
|
691
|
+
* delivery to verify signature/auth checking is wired correctly
|
|
692
|
+
* end-to-end, rather than just confirming the endpoint is reachable.
|
|
693
|
+
* Omitted entirely by default (no body sent).
|
|
694
|
+
*/
|
|
695
|
+
body?: string;
|
|
696
|
+
}
|
|
697
|
+
interface MonitoringCheck {
|
|
698
|
+
id: string;
|
|
699
|
+
name: string;
|
|
700
|
+
}
|
|
701
|
+
interface Monitoring extends ProviderIdentity {
|
|
702
|
+
readonly key: "monitoring";
|
|
703
|
+
/**
|
|
704
|
+
* Checks this provider is configured to ensure exist — populated from
|
|
705
|
+
* the provider's own config (`holocron.config.ts`'s provider tuple),
|
|
706
|
+
* the same place `Deployment.domain` comes from. `holocron repo setup`
|
|
707
|
+
* loops this list and calls `ensureCheck` for each; empty when none
|
|
708
|
+
* are configured.
|
|
709
|
+
*/
|
|
710
|
+
readonly checks: readonly MonitoringCheckInput[];
|
|
711
|
+
/** Auth sanity-check. Throws ProviderApiError on auth failure. */
|
|
712
|
+
whoami?(): Promise<{
|
|
713
|
+
ok: boolean;
|
|
714
|
+
}>;
|
|
715
|
+
/** Idempotent find-or-create-or-update by `input.name`. */
|
|
716
|
+
ensureCheck(input: MonitoringCheckInput): Promise<{
|
|
717
|
+
check: MonitoringCheck;
|
|
718
|
+
alreadyExists: boolean;
|
|
719
|
+
}>;
|
|
720
|
+
}
|
|
617
721
|
interface ToolingDoctorReport {
|
|
618
722
|
ok: boolean;
|
|
619
723
|
message: string;
|
|
@@ -651,18 +755,6 @@ interface WikiProvisionOpts {
|
|
|
651
755
|
/** Project display name used in the wiki title (e.g. "Holocron"). */
|
|
652
756
|
name?: string;
|
|
653
757
|
}
|
|
654
|
-
/**
|
|
655
|
-
* DNS record that `setup` should create for a wiki custom domain.
|
|
656
|
-
* Returned by `Wiki.dnsRecord()` when a custom domain is configured.
|
|
657
|
-
*/
|
|
658
|
-
interface WikiDnsRecord {
|
|
659
|
-
/** Zone apex passed as the first argument to `dns.upsertRecord`. */
|
|
660
|
-
zone: string;
|
|
661
|
-
/** Full hostname for the CNAME (e.g. "wiki.theholocron.dev"). */
|
|
662
|
-
cname: string;
|
|
663
|
-
/** CNAME target (e.g. "holocron.docs.buildwithfern.com"). */
|
|
664
|
-
target: string;
|
|
665
|
-
}
|
|
666
758
|
/**
|
|
667
759
|
* Reverse-proxy configuration returned by `Wiki.proxyConfig()`.
|
|
668
760
|
* Used by `setup` to deploy a Worker that forwards traffic to the wiki
|
|
@@ -691,7 +783,7 @@ interface Wiki extends ProviderIdentity {
|
|
|
691
783
|
* Returns null when no custom domain is set.
|
|
692
784
|
* Called by `setup` to provision the CNAME via the `dns` capability.
|
|
693
785
|
*/
|
|
694
|
-
dnsRecord?():
|
|
786
|
+
dnsRecord?(): DnsRecordRequest | null;
|
|
695
787
|
/**
|
|
696
788
|
* Reverse-proxy config when the wiki provider requires a Worker-level
|
|
697
789
|
* proxy in addition to the CNAME. Returns null when no proxy is needed.
|
|
@@ -699,12 +791,34 @@ interface Wiki extends ProviderIdentity {
|
|
|
699
791
|
*/
|
|
700
792
|
proxyConfig?(): WikiProxyConfig | null;
|
|
701
793
|
}
|
|
794
|
+
/** Config for `Workers.deployScript()` — an arbitrary Worker, not a generated reverse-proxy. */
|
|
795
|
+
interface DeployScriptConfig {
|
|
796
|
+
/** The full Worker script source — a single ES module (`export default { fetch(...) {...} }`). */
|
|
797
|
+
code: string;
|
|
798
|
+
/**
|
|
799
|
+
* Secret bindings — `env.<name>` in the deployed Worker. Values are
|
|
800
|
+
* write-only; the provider never echoes them back, here or anywhere else.
|
|
801
|
+
*/
|
|
802
|
+
secrets?: Record<string, string>;
|
|
803
|
+
/**
|
|
804
|
+
* Route pattern(s) this Worker should serve (e.g.
|
|
805
|
+
* `"sentinel.theholocron.dev/*"`). Omit for a Worker reached only via
|
|
806
|
+
* its `*.workers.dev` URL.
|
|
807
|
+
*/
|
|
808
|
+
routes?: string[];
|
|
809
|
+
}
|
|
810
|
+
interface DeployScriptResult {
|
|
811
|
+
/** The deployed script's name at the provider. */
|
|
812
|
+
scriptName: string;
|
|
813
|
+
}
|
|
702
814
|
/**
|
|
703
|
-
* Edge Worker
|
|
815
|
+
* Edge Worker management capability.
|
|
704
816
|
*
|
|
705
|
-
* Deploys and manages Worker scripts
|
|
706
|
-
*
|
|
707
|
-
*
|
|
817
|
+
* Deploys and manages Worker scripts. `upsertProxy` is the existing,
|
|
818
|
+
* narrower case `setup` uses to wire wiki custom-domain reverse-proxies;
|
|
819
|
+
* `deployScript` is the general case — any Worker, any code, its own
|
|
820
|
+
* secrets — for a consumer that isn't a reverse-proxy (a webhook
|
|
821
|
+
* receiver, for instance).
|
|
708
822
|
*/
|
|
709
823
|
interface Workers extends ProviderIdentity {
|
|
710
824
|
readonly key: "workers";
|
|
@@ -714,6 +828,17 @@ interface Workers extends ProviderIdentity {
|
|
|
714
828
|
* `config.headers` on each request.
|
|
715
829
|
*/
|
|
716
830
|
upsertProxy(hostname: string, config: WikiProxyConfig): Promise<void>;
|
|
831
|
+
/** Deploy (or update) an arbitrary Worker script, optionally with secrets and routes. */
|
|
832
|
+
deployScript(name: string, config: DeployScriptConfig): Promise<DeployScriptResult>;
|
|
833
|
+
/**
|
|
834
|
+
* A `holocron doctor` smoke check — every other method either mutates or
|
|
835
|
+
* needs a specific script/zone doctor has no way to supply up front.
|
|
836
|
+
* Reports how many Worker scripts the token can see.
|
|
837
|
+
*/
|
|
838
|
+
whoami?(): Promise<{
|
|
839
|
+
ok: boolean;
|
|
840
|
+
scripts: number;
|
|
841
|
+
}>;
|
|
717
842
|
}
|
|
718
843
|
interface CapabilityImpls {
|
|
719
844
|
source: Source;
|
|
@@ -731,12 +856,44 @@ interface CapabilityImpls {
|
|
|
731
856
|
analytics: Analytics;
|
|
732
857
|
errors: Errors;
|
|
733
858
|
logs: Logs;
|
|
859
|
+
monitoring: Monitoring;
|
|
734
860
|
wiki: Wiki;
|
|
735
861
|
workers: Workers;
|
|
736
862
|
}
|
|
737
863
|
type CardinalityFor<K extends CapabilityKey> = (typeof CARDINALITY)[K];
|
|
738
864
|
/** Resolved runtime shape: single → one impl; many → array. */
|
|
739
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
|
+
}
|
|
740
897
|
declare function isMulti<K extends CapabilityKey>(key: K): CardinalityFor<K> extends "many" ? true : false;
|
|
741
898
|
//#endregion
|
|
742
|
-
export { Analytics, Auth, AuthDescription, AuthEvent, AuthEventType, AuthIdentity, AuthUser, CARDINALITY, CapabilityImpls, CapabilityKey, Cardinality, CardinalityFor, Ci, CiRun, CiRunFilter, CiRunStatus, ConnectionStringOptions, CreateAuthUserInput, Deployment, DeploymentProject, DeploymentProjectSettings, DeploymentRecord, DeploymentTarget, DeploymentTrigger, Dns, DnsRecord, DnsRecordType, EnsureResult, Environment, EnvironmentReviewer, Environments, Errors, Issue, IssueSearchFilter, Issues, LabelDef, LifecycleResult, LifecycleSlot, Logs, 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,
|
|
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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProviderApiError } from "@theholocron/http-client";
|
|
2
|
-
//#region src/plugin/capabilities.ts
|
|
2
|
+
//#region src/plugin/capabilities/capabilities.ts
|
|
3
3
|
const CARDINALITY = {
|
|
4
4
|
source: "single",
|
|
5
5
|
ci: "single",
|
|
@@ -16,6 +16,7 @@ const CARDINALITY = {
|
|
|
16
16
|
analytics: "many",
|
|
17
17
|
errors: "single",
|
|
18
18
|
logs: "single",
|
|
19
|
+
monitoring: "single",
|
|
19
20
|
wiki: "single",
|
|
20
21
|
workers: "single"
|
|
21
22
|
};
|
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.160",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -46,24 +46,31 @@
|
|
|
46
46
|
"@napi-rs/keyring": "^1.3.0",
|
|
47
47
|
"@sentry/node": "^10.70.0",
|
|
48
48
|
"@theholocron/components-doc": "^1.6.0",
|
|
49
|
-
"@theholocron/env-utils": "^1.
|
|
50
|
-
"@theholocron/
|
|
51
|
-
"@theholocron/
|
|
52
|
-
"@theholocron/
|
|
49
|
+
"@theholocron/env-utils": "^1.15.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",
|
|
56
|
+
"@theholocron/observability": "^0.6.0",
|
|
57
|
+
"@theholocron/pkg-utils": "^1.15.1",
|
|
53
58
|
"@theholocron/registry-doc": "^1.12.0",
|
|
54
59
|
"chalk": "^6.0.0",
|
|
60
|
+
"dotenv": "^17.4.2",
|
|
55
61
|
"ora": "^9.4.1",
|
|
56
62
|
"pino": "^10.3.1",
|
|
57
63
|
"pino-pretty": "^13.1.3",
|
|
58
64
|
"posthog-node": "^5.51.6",
|
|
59
65
|
"yargs": "^18.1.0",
|
|
60
|
-
"@theholocron/astromech": "5.0.0-alpha.
|
|
61
|
-
"@theholocron/datapad": "5.0.0-alpha.
|
|
66
|
+
"@theholocron/astromech": "5.0.0-alpha.160",
|
|
67
|
+
"@theholocron/datapad": "5.0.0-alpha.160"
|
|
62
68
|
},
|
|
63
69
|
"devDependencies": {
|
|
64
|
-
"@theholocron/eslint-config": "^8.
|
|
65
|
-
"@theholocron/
|
|
66
|
-
"@theholocron/
|
|
70
|
+
"@theholocron/eslint-config": "^8.8.0",
|
|
71
|
+
"@theholocron/rollup-plugin-transform-template": "^8.8.0",
|
|
72
|
+
"@theholocron/tsconfig": "^8.8.0",
|
|
73
|
+
"@theholocron/vitest-config": "^8.8.0",
|
|
67
74
|
"@types/node": "^26",
|
|
68
75
|
"@types/yargs": "^17.0.35",
|
|
69
76
|
"@vitest/coverage-v8": "^4.1.11",
|
|
@@ -74,8 +81,7 @@
|
|
|
74
81
|
"tsdown": "^0.22.14",
|
|
75
82
|
"tsx": "4.23.12",
|
|
76
83
|
"typescript": "^5.9.3",
|
|
77
|
-
"vitest": "^4.1.11"
|
|
78
|
-
"@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.16"
|
|
84
|
+
"vitest": "^4.1.11"
|
|
79
85
|
},
|
|
80
86
|
"engines": {
|
|
81
87
|
"node": ">=22.0.0"
|