@theholocron/cli 5.0.0-alpha.147 → 5.0.0-alpha.148
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/cli.mjs +7 -11
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +3 -7
- package/dist/index.mjs +8 -12
- package/package.json +10 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { 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 } from "./plugin/capabilities.mjs";
|
|
2
2
|
import { AuthError, RequestOptions, ResolveTokenConfig as ResolveTokenConfig$1, ResolveTokenInput, RestClient, RestClientConfig, createRestClient } from "@theholocron/http-client";
|
|
3
|
+
import { PackageJson } from "@theholocron/pkg-utils";
|
|
3
4
|
import { ConfigFileError } from "@theholocron/datapad";
|
|
4
5
|
import { LogLevel } from "@theholocron/observability/core";
|
|
5
6
|
import { WorkspacePackage } from "@theholocron/astromech";
|
|
@@ -605,13 +606,8 @@ declare function resolveConfig(raw: HolocronConfig): ResolvedHolocronConfig;
|
|
|
605
606
|
* definitions (#677)" for the full design.
|
|
606
607
|
*/
|
|
607
608
|
type HolocronProfile = "library" | "cli" | "plugin" | "template" | "app" | "docs" | "platform";
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
private?: boolean;
|
|
611
|
-
bin?: unknown;
|
|
612
|
-
dependencies?: Record<string, string>;
|
|
613
|
-
devDependencies?: Record<string, string>;
|
|
614
|
-
}
|
|
609
|
+
/** The `package.json` shape profile derivation reads — `@theholocron/pkg-utils`'s `PackageJson`, under the name Sentinel already imports. */
|
|
610
|
+
type PackageJsonLike = PackageJson;
|
|
615
611
|
interface DeriveProfileInput {
|
|
616
612
|
rootPackageJson: PackageJsonLike | null;
|
|
617
613
|
repoName: string;
|
package/dist/index.mjs
CHANGED
|
@@ -2,8 +2,9 @@ import { CARDINALITY, ProviderApiError, REQUIRED_CAPABILITIES, WebhookVerificati
|
|
|
2
2
|
import { AuthError, createResolveToken as createResolveToken$1, createRestClient } from "@theholocron/http-client";
|
|
3
3
|
import { createEnvLookup } from "@theholocron/env-utils";
|
|
4
4
|
import { Entry, findCredentials } from "@napi-rs/keyring";
|
|
5
|
-
import { readFile } from "node:fs/promises";
|
|
6
5
|
import { basename, dirname, join } from "node:path";
|
|
6
|
+
import { readPackageJson } from "@theholocron/pkg-utils";
|
|
7
|
+
import { readFile } from "node:fs/promises";
|
|
7
8
|
import load from "@commitlint/load";
|
|
8
9
|
import lint from "@commitlint/lint";
|
|
9
10
|
import { loadTasksConfig } from "@theholocron/astromech/config";
|
|
@@ -214,10 +215,10 @@ function missingCapabilities(capabilities) {
|
|
|
214
215
|
*/
|
|
215
216
|
async function readWorkspacePackageJsons(repoRoot, workspacePackages) {
|
|
216
217
|
const results = [];
|
|
217
|
-
for (const { slug, dir = "packages" } of workspacePackages)
|
|
218
|
-
const
|
|
219
|
-
results.push(
|
|
220
|
-
}
|
|
218
|
+
for (const { slug, dir = "packages" } of workspacePackages) {
|
|
219
|
+
const pkg = await readPackageJson(join(repoRoot, dir, slug));
|
|
220
|
+
if (pkg) results.push(pkg);
|
|
221
|
+
}
|
|
221
222
|
return results;
|
|
222
223
|
}
|
|
223
224
|
//#endregion
|
|
@@ -532,13 +533,8 @@ async function deriveDefaults(configDir, raw) {
|
|
|
532
533
|
return result;
|
|
533
534
|
}
|
|
534
535
|
async function readPackageJsonName(dir) {
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
const pkg = JSON.parse(content);
|
|
538
|
-
return typeof pkg.name === "string" ? pkg.name.replace(/^@[^/]+\//, "") : void 0;
|
|
539
|
-
} catch {
|
|
540
|
-
return;
|
|
541
|
-
}
|
|
536
|
+
const name = (await readPackageJson(dir))?.name;
|
|
537
|
+
return name === void 0 ? void 0 : name.replace(/^@[^/]+\//, "");
|
|
542
538
|
}
|
|
543
539
|
//#endregion
|
|
544
540
|
//#region src/editorconfig/config.ts
|
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.148",
|
|
4
4
|
"description": "The Holocron CLI - a pluggable, capability-based orchestrator for spinning up and operating software projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -49,14 +49,15 @@
|
|
|
49
49
|
"@napi-rs/keyring": "^1.3.0",
|
|
50
50
|
"@sentry/node": "^10.70.0",
|
|
51
51
|
"@theholocron/components-doc": "^1.6.0",
|
|
52
|
-
"@theholocron/env-utils": "^1.
|
|
53
|
-
"@theholocron/fs-utils": "^1.
|
|
54
|
-
"@theholocron/git-utils": "^1.
|
|
52
|
+
"@theholocron/env-utils": "^1.12.0",
|
|
53
|
+
"@theholocron/fs-utils": "^1.12.0",
|
|
54
|
+
"@theholocron/git-utils": "^1.12.0",
|
|
55
55
|
"@theholocron/github-client": "^1.41.0",
|
|
56
56
|
"@theholocron/http-client": "^1.42.0",
|
|
57
|
-
"@theholocron/json-utils": "^1.
|
|
58
|
-
"@theholocron/misc-utils": "^1.
|
|
57
|
+
"@theholocron/json-utils": "^1.12.0",
|
|
58
|
+
"@theholocron/misc-utils": "^1.12.0",
|
|
59
59
|
"@theholocron/observability": "^0.5.0",
|
|
60
|
+
"@theholocron/pkg-utils": "^1.12.0",
|
|
60
61
|
"@theholocron/registry-doc": "^1.12.0",
|
|
61
62
|
"chalk": "^6.0.0",
|
|
62
63
|
"ora": "^9.4.1",
|
|
@@ -64,8 +65,8 @@
|
|
|
64
65
|
"pino-pretty": "^13.1.3",
|
|
65
66
|
"posthog-node": "^5.51.6",
|
|
66
67
|
"yargs": "^18.1.0",
|
|
67
|
-
"@theholocron/astromech": "5.0.0-alpha.
|
|
68
|
-
"@theholocron/datapad": "5.0.0-alpha.
|
|
68
|
+
"@theholocron/astromech": "5.0.0-alpha.148",
|
|
69
|
+
"@theholocron/datapad": "5.0.0-alpha.148"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
72
|
"@commitlint/config-conventional": "^21.2.3",
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"tsx": "4.23.12",
|
|
85
86
|
"typescript": "^5.9.3",
|
|
86
87
|
"vitest": "^4.1.11",
|
|
87
|
-
"@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.
|
|
88
|
+
"@theholocron/rollup-plugin-transform-template": "5.0.0-alpha.148"
|
|
88
89
|
},
|
|
89
90
|
"engines": {
|
|
90
91
|
"node": ">=22.0.0"
|