@apex-actions/cli 0.93.0 → 0.95.0
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/terms/main.js +1 -1
- package/dist/src/application/dispatch-workflow.js +1 -1
- package/dist/src/application/index.js +1 -1
- package/dist/src/application/manage-approvals.js +1 -1
- package/dist/src/application/manage-artifacts.js +1 -1
- package/dist/src/application/manage-caches.js +1 -1
- package/dist/src/application/manage-environments.js +1 -1
- package/dist/src/application/manage-runners.js +1 -1
- package/dist/src/application/manage-secrets.js +1 -1
- package/dist/src/application/manage-tokens.js +1 -1
- package/dist/src/application/read-logs.js +1 -1
- package/dist/src/application/resolve-run.js +1 -1
- package/dist/src/application/scan-migration.js +1 -1
- package/dist/src/application/serve-language-server.js +1 -1
- package/dist/src/application/validate-workflows.js +1 -1
- package/dist/src/domain/credentials.js +1 -1
- package/dist/src/domain/departures.js +1 -1
- package/dist/src/domain/fleet-history.js +1 -1
- package/dist/src/domain/grants.js +1 -1
- package/dist/src/domain/index.js +1 -1
- package/dist/src/domain/insight.js +1 -1
- package/dist/src/domain/logsearch.js +1 -1
- package/dist/src/domain/migration.js +1 -1
- package/dist/src/domain/notify.js +1 -1
- package/dist/src/domain/outcomediff.js +1 -1
- package/dist/src/domain/provenance.js +1 -1
- package/dist/src/domain/runs.js +1 -1
- package/dist/src/domain/secrets.js +1 -1
- package/dist/src/domain/spend.js +1 -1
- package/dist/src/domain/supplychain.js +1 -1
- package/dist/src/domain/terms.js +1 -1
- package/dist/src/domain/validation.js +1 -1
- package/dist/src/infrastructure/binary-install.js +1 -1
- package/dist/src/infrastructure/control-plane-http.js +1 -1
- package/dist/src/infrastructure/credentials.js +1 -1
- package/dist/src/infrastructure/device-login.js +1 -1
- package/dist/src/infrastructure/engine-binary.js +1 -1
- package/dist/src/infrastructure/index.js +1 -1
- package/dist/src/infrastructure/loopback-login.js +1 -1
- package/dist/src/infrastructure/runner-binary.js +1 -1
- package/dist/src/infrastructure/secret-input.js +1 -1
- package/package.json +1 -1
package/dist/cli/terms/main.js
CHANGED
|
@@ -39,7 +39,7 @@ const pendingCommand = new Command('pending')
|
|
|
39
39
|
// Never behind a flag: an operator reading this list is about to write to
|
|
40
40
|
// the people on it, and the product asks them anyway.
|
|
41
41
|
if (outcome.value.pending.length > 0) {
|
|
42
|
-
console.log(chalk.dim(' they are asked at their next sign-in; the notice by e-mail is yours — docs/
|
|
42
|
+
console.log(chalk.dim(' they are asked at their next sign-in; the notice by e-mail is yours — docs/guides/customer-agreement.md'));
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
const acceptCommand = new Command('accept')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// application layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// application layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { parseInputs, parseRepository } from '../domain/runs.js';
|
|
3
3
|
/**
|
|
4
4
|
* Trigger a `workflow_dispatch`. Everything the API can refuse — an unknown
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
// application layer — see ../../../../docs/conventions.md §1
|
|
2
|
+
// application layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// application layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// application layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
/**
|
|
3
3
|
* Which pull requests from forks wait for approval — a repository's choice (TASK-0355). `every-fork` is ours and the
|
|
4
4
|
* default; the other three are GitHub's. Whatever is chosen, a fork's run gets no secrets.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// application layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// application layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
/**
|
|
3
3
|
* `target` is either a run id or `owner/repo`. They are told apart by shape
|
|
4
4
|
* rather than by a flag: a run id is a uuid and a repository has a slash, and
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// application layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// application layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
/** The Account roles a reviewer may name (ADR-0033), exactly as the control plane accepts them. */
|
|
3
3
|
export const REVIEWER_ROLES = ['owner', 'account_admin', 'billing', 'member', 'viewer'];
|
|
4
4
|
const refused = (err) => ({ kind: 'refused', detail: err instanceof Error ? err.message : String(err) });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// application layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// application layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { targetLabel } from '../domain/secrets.js';
|
|
3
3
|
/**
|
|
4
4
|
* Why the unnamed organisation scope refused: it is the operator organisation's
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// application layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// application layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { editedPermissions, tokenEditProblem, tokenRequestProblem } from '../domain/credentials.js';
|
|
3
3
|
import { approve } from './authenticate.js';
|
|
4
4
|
const detail = (err) => (err instanceof Error ? err.message : String(err));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// application layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// application layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { buildChecklist, migrationVerdict, } from '../domain/migration.js';
|
|
3
3
|
/**
|
|
4
4
|
* Scan an organization: find its workflows, ask the engine what runs, and turn
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// application layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// application layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { hasErrors } from '../domain/validation.js';
|
|
3
3
|
/** Validate the given files, or every workflow the locator finds. */
|
|
4
4
|
export const validateWorkflows = async (validator, locator, files) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
/** Where a removed repository's clock stands: gone, kept because it was added back, or still waiting. */
|
|
3
3
|
export const repositoryDepartureLine = (d) => {
|
|
4
4
|
const state = d.purgedAt !== null ? `purged ${d.purgedAt}` : d.withdrawnAt !== null ? `kept — added back ${d.withdrawnAt}` : `due ${d.purgeAfter}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
/**
|
|
3
3
|
* Complimentary access from the terminal (control-plane ADR-0056 as amended by
|
|
4
4
|
* ADR-0079, TASK-0199): the grant and installation shapes the admin API
|
package/dist/src/domain/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
2
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
// The REST shapes for "what got slower" and "what is flaky", mirroring
|
|
3
3
|
// control-plane/contracts/openapi.yaml, plus the pure decisions the CLI makes
|
|
4
4
|
// about presenting them.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
// The REST shapes for a log search and a structured log view, mirroring
|
|
3
3
|
// control-plane/contracts/openapi.yaml, plus the pure decisions the CLI makes
|
|
4
4
|
// about presenting them.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
// The migration report as the engine produces it (engine ADR-0013,
|
|
3
3
|
// engine/docs/compat-format.md), plus the re-entry checklist built on top.
|
|
4
4
|
//
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
// The REST shapes for notification routing, mirroring
|
|
3
3
|
// control-plane/contracts/openapi.yaml, plus the pure presentation decisions
|
|
4
4
|
// the CLI makes about them.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
//
|
|
3
3
|
// How the coexistence outcome diff reads to a person. The comparison itself is
|
|
4
4
|
// the control plane's (ADR-0047); this is the sentence it deserves.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
// The REST shapes for "why did this run" and "how do I run it here", mirroring
|
|
3
3
|
// control-plane/contracts/openapi.yaml, plus the pure decisions the CLI makes
|
|
4
4
|
// about presenting them.
|
package/dist/src/domain/runs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
// What the CLI knows about runs and jobs, and the pure decisions it makes
|
|
3
3
|
// about them. The REST shapes come from control-plane/contracts/openapi.
|
|
4
4
|
/** The run's action-policy findings as `apex logs --summary` prints them: where, which job, the policy's sentence. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
/** GitHub's two secret stores, as `gh secret --app` names them: every workflow's, and Dependabot's runs' only. */
|
|
3
3
|
export const SECRET_APPS = ['actions', 'dependabot'];
|
|
4
4
|
/** `--app` into a store, or the reason it is not one. Absent is `actions`. */
|
package/dist/src/domain/spend.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
// The REST shapes for a spend report, mirroring control-plane/contracts/openapi.yaml,
|
|
3
3
|
// plus the pure decisions the CLI makes about presenting money.
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
// The REST shapes for the action supply chain, mirroring
|
|
3
3
|
// control-plane/contracts/openapi.yaml, plus the pure decisions the CLI makes
|
|
4
4
|
// about presenting them. No judgement lives here: whether a reference is
|
package/dist/src/domain/terms.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
/**
|
|
3
3
|
* Why one account is outstanding, in the words an operator writing the notice
|
|
4
4
|
* needs — *never accepted anything* and *accepted words that have since
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// domain layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// domain layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
// Workflow validation results as reported by the engine (engine ADR-0004).
|
|
3
3
|
export const hasErrors = (report) => report.files.some((f) => f.diagnostics.some((d) => d.severity === 'error'));
|
|
4
4
|
export const diagnosticCount = (report) => report.files.reduce((n, f) => n + f.diagnostics.length, 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// infrastructure layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// infrastructure layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { execFile } from 'node:child_process';
|
|
3
3
|
import { createHash } from 'node:crypto';
|
|
4
4
|
import { readFileSync } from 'node:fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// infrastructure layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// infrastructure layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { writeFile } from 'node:fs/promises';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
4
|
import { setTimeout as delay } from 'node:timers/promises';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// infrastructure layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// infrastructure layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { closeSync, openSync, readFileSync, statSync, writeSync } from 'node:fs';
|
|
3
3
|
import { chmod, mkdir, rename, rm } from 'node:fs/promises';
|
|
4
4
|
import { homedir } from 'node:os';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// infrastructure layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// infrastructure layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { existsSync } from 'node:fs';
|
|
3
3
|
import { hostname, platform, release, type } from 'node:os';
|
|
4
4
|
import { headlessReason, isDevicePollError, normaliseUrl } from '../domain/credentials.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// infrastructure layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// infrastructure layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { execFile, spawn } from 'node:child_process';
|
|
3
3
|
import { readdir, readFile } from 'node:fs/promises';
|
|
4
4
|
import { basename, join, resolve } from 'node:path';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
// infrastructure layer — see ../../../../docs/conventions.md §1
|
|
2
|
+
// infrastructure layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// infrastructure layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// infrastructure layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { createHash, randomBytes } from 'node:crypto';
|
|
3
3
|
import { spawn } from 'node:child_process';
|
|
4
4
|
import { createServer } from 'node:http';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// infrastructure layer — see ../../../../docs/conventions.md §1
|
|
1
|
+
// infrastructure layer — see ../../../../docs/conventions/clean-architecture.md §1
|
|
2
2
|
import { readFile } from 'node:fs/promises';
|
|
3
3
|
import inquirer from 'inquirer';
|
|
4
4
|
import { trimOneNewline } from '../domain/secrets.js';
|