@tryaura/aura-cli 0.4.0 → 0.5.1

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 CHANGED
@@ -6,6 +6,7 @@ the official `aura` command.
6
6
 
7
7
  ```sh
8
8
  npm install -g @tryaura/aura-cli
9
+ # or: pnpm add --global @tryaura/aura-cli
9
10
  ```
10
11
 
11
12
  See the [distro authoring guide](https://tryaura.sh/docs/guides/distributions) for branding, plugin
package/dist/bin/aura.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { n as OFFICIAL_REGISTRY_OPTIONS, t as OFFICIAL_PLUGINS } from "../plugins-C-b2qvpr.js";
3
- import { t as runCli } from "../run.boundary-fZhCH0bP.js";
3
+ import { t as runCli } from "../run.boundary-DSNajl5n.js";
4
4
  //#endregion
5
5
  //#region src/bin.ts
6
6
  await runCli({
@@ -8,8 +8,8 @@ await runCli({
8
8
  command: "aura",
9
9
  description: "Agent Unification & Repair Assistant",
10
10
  displayName: "Aura",
11
- docsUrl: "https://tryaura.sh/docs/introduction",
12
- version: "0.4.0"
11
+ docsUrl: "https://tryaura.sh/docs/quickstart",
12
+ version: "0.5.1"
13
13
  },
14
14
  plugins: OFFICIAL_PLUGINS,
15
15
  registry: OFFICIAL_REGISTRY_OPTIONS
package/dist/index.d.ts CHANGED
@@ -46,6 +46,31 @@ interface HttpTelemetrySinkOptions {
46
46
  readonly url: string;
47
47
  }
48
48
  //#endregion
49
+ //#region src/update/types.d.ts
50
+ /** Where one distribution's standalone releases come from. */
51
+ type CliUpdates = {
52
+ /**
53
+ * Page a user is pointed at when an update was found but could not be installed.
54
+ *
55
+ * Falls back to {@link CliBranding.docsUrl}; when neither exists the warning simply omits the
56
+ * link rather than inventing one.
57
+ */
58
+ readonly manualUpdateUrl?: string | undefined;
59
+ /** Variable holding a credential for private release metadata and same-origin assets. */
60
+ readonly tokenEnvironmentVariable?: string | undefined;
61
+ } & ({
62
+ /** API root. Defaults to `https://api.github.com`. */
63
+ readonly apiBaseUrl?: string | undefined;
64
+ readonly kind: "github-release";
65
+ readonly owner: string;
66
+ readonly repository: string;
67
+ } | {
68
+ readonly kind: "signed-manifest";
69
+ readonly manifestUrl: string;
70
+ /** Base64 Ed25519 public keys, 32 raw bytes each. */
71
+ readonly trustedPublicKeys: readonly string[];
72
+ });
73
+ //#endregion
49
74
  //#region src/report-types.d.ts
50
75
  interface ReportAppDetection {
51
76
  readonly authenticated?: boolean | undefined;
@@ -158,5 +183,6 @@ type CheckExplanation = CheckExplanationV1;
158
183
  //#region src/index.release.d.ts
159
184
  declare function runCli(distro: CliDistro, runtime?: CliRuntime): Promise<CliExitCode>;
160
185
  declare function createHttpTelemetrySink(options: HttpTelemetrySinkOptions): TelemetrySink$1;
186
+ declare function runStandaloneCli(distro: CliDistro, updates: CliUpdates, current: Pick<NodeJS.Process, "arch" | "execPath" | "platform">, runtime?: CliRuntime): Promise<CliExitCode>;
161
187
  //#endregion
162
- export { type CheckCounts, type CheckExplanation, type CheckExplanationV1, type CheckReport, type CheckReportV1, type CheckSummary, type CliBranding, type CliDistro, type CliExitCode, type CliRegistryOptions, type CliRuntime, type HttpTelemetryDeliveryFailure, type HttpTelemetrySinkOptions, type PassedCheck, type ReportApp, type ReportConfiguration, type ReportDiagnostic, type ReportFinding, type ReportFix, type ReportFixOperation, type ReportRepositoryPreset, type ReportStatus, type TelemetryEvent, type TelemetrySink, createHttpTelemetrySink, runCli };
188
+ export { type CheckCounts, type CheckExplanation, type CheckExplanationV1, type CheckReport, type CheckReportV1, type CheckSummary, type CliBranding, type CliDistro, type CliExitCode, type CliRegistryOptions, type CliRuntime, type CliUpdates, type HttpTelemetryDeliveryFailure, type HttpTelemetrySinkOptions, type PassedCheck, type ReportApp, type ReportConfiguration, type ReportDiagnostic, type ReportFinding, type ReportFix, type ReportFixOperation, type ReportRepositoryPreset, type ReportStatus, type TelemetryEvent, type TelemetrySink, createHttpTelemetrySink, runCli, runStandaloneCli };
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as vetHttpUrl, n as clampHttpTimeout, r as failureReason, t as runCli } from "./run.boundary-fZhCH0bP.js";
1
+ import { a as vetHttpUrl, i as failureReason, n as runStandaloneCli, r as clampHttpTimeout, t as runCli } from "./run.boundary-DSNajl5n.js";
2
2
  //#region ../core/src/http-post.boundary.ts
3
3
  /**
4
4
  * Creates a bounded, TLS-only JSON POST that never rejects.
@@ -137,4 +137,4 @@ function positiveNumber(value, fallback, name) {
137
137
  return value;
138
138
  }
139
139
  //#endregion
140
- export { createHttpTelemetrySink, runCli };
140
+ export { createHttpTelemetrySink, runCli, runStandaloneCli };