@anarchitects/governance-cli 0.0.1 → 0.0.3
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 +38 -1
- package/dist/agov-DAHSDNnx.js +1936 -0
- package/dist/agov.d.ts +12 -3
- package/dist/agov.d.ts.map +1 -1
- package/dist/bin/agov.js +2 -791
- package/dist/check.d.ts +1 -1
- package/dist/check.d.ts.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -2
- package/dist/internal/manual-workspace/capability.d.ts +1 -1
- package/dist/internal/manual-workspace/load-workspace.d.ts +1 -1
- package/dist/internal/metric-engine/aggregate-signals.d.ts +1 -1
- package/dist/internal/metric-engine/calculate-metrics.d.ts +1 -1
- package/dist/internal/profile/load-standalone-profile.d.ts +1 -1
- package/dist/internal/reporting/render-cli.d.ts +1 -1
- package/dist/internal/reporting/render-json.d.ts +1 -1
- package/dist/internal/signal-engine/builders.d.ts +2 -2
- package/dist/render-report.d.ts +1 -1
- package/package.json +3 -3
- package/dist/check-_APXAvpi.js +0 -1568
package/dist/check.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GovernanceAssessment, GovernanceWorkspaceAdapter } from '@anarchitects/governance-core';
|
|
1
|
+
import type { GovernanceAssessment, GovernanceWorkspaceAdapter } from '@anarchitects/governance-core';
|
|
2
2
|
export interface AgovCheckWithWorkspacePathOptions {
|
|
3
3
|
profilePath: string;
|
|
4
4
|
workspacePath: string;
|
package/dist/check.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../src/check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAGpB,0BAA0B,EAG3B,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"check.d.ts","sourceRoot":"","sources":["../src/check.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EAGpB,0BAA0B,EAG3B,MAAM,+BAA+B,CAAC;AAcvC,MAAM,WAAW,iCAAiC;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,SAAS,CAAC;IAC7B,qBAAqB,CAAC,EAAE,SAAS,CAAC;CACnC;AAED,MAAM,WAAW,2BAA2B,CAAC,MAAM,GAAG,OAAO;IAC3D,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE,0BAA0B,CAAC,MAAM,CAAC,CAAC;IACrD,qBAAqB,EAAE,MAAM,CAAC;IAC9B,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED,MAAM,MAAM,gBAAgB,CAAC,MAAM,GAAG,OAAO,IACzC,iCAAiC,GACjC,2BAA2B,CAAC,MAAM,CAAC,CAAC;AAExC,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,oBAAoB,CAAC;CAClC;AA4BD,wBAAgB,YAAY,CAAC,MAAM,GAAG,OAAO,EAC3C,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAChC,eAAe,CAejB"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export type { AgovCheckOptions, AgovCheckResult, AgovCheckWithAdapterOptions, AgovCheckWithWorkspacePathOptions, } from './check.js';
|
|
2
2
|
export { runAgovCheck } from './check.js';
|
|
3
|
+
export { AGOV_EXIT_CONFIGURATION_FAILURE, AGOV_EXIT_GOVERNANCE_FAILURE, AGOV_EXIT_RUNTIME_FAILURE, AGOV_EXIT_SUCCESS, AgovCliOutputError, AgovCliRuntimeError, AgovCliUsageError, parseAgovCliArgs, resolveAgovCheckCommand, runAgovCli, type AgovCliConfig, type AgovCliEnvironment, type AgovCliIo, type AgovCliRuntime, type AgovResolvedCheckCommand, type ParsedAgovCheckOptions, type ParsedAgovCliArgs, } from './agov.js';
|
|
4
|
+
export { GenericWorkspaceLoadError, GenericWorkspaceValidationError, loadAndValidateGenericWorkspaceSchema, loadGenericWorkspace, loadGenericWorkspaceAdapterResult, type GenericWorkspaceValidationIssue, type LoadedGenericWorkspace, } from './internal/manual-workspace/load-workspace.js';
|
|
5
|
+
export { StandaloneGovernanceProfileLoadError, StandaloneGovernanceProfileValidationError, loadStandaloneGovernanceProfile, loadStandaloneGovernanceProfileConfig, validateStandaloneGovernanceProfile, type LoadedStandaloneGovernanceProfile, type StandaloneGovernanceProfileValidationIssue, } from './internal/profile/load-standalone-profile.js';
|
|
3
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,iCAAiC,GAClC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,gBAAgB,EAChB,eAAe,EACf,2BAA2B,EAC3B,iCAAiC,GAClC,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EACL,+BAA+B,EAC/B,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,UAAU,EACV,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,cAAc,EACnB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,yBAAyB,EACzB,+BAA+B,EAC/B,qCAAqC,EACrC,oBAAoB,EACpB,iCAAiC,EACjC,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,GAC5B,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,oCAAoC,EACpC,0CAA0C,EAC1C,+BAA+B,EAC/B,qCAAqC,EACrC,mCAAmC,EACnC,KAAK,iCAAiC,EACtC,KAAK,0CAA0C,GAChD,MAAM,+CAA+C,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as e, a as o, b as n, c as s, d as l, e as i, f as d, G as A, g as c, S as E, h as G, l as t, i as v, j as C, k as g, m as _, p, r as I, n as S, o as f, v as k } from "./agov-DAHSDNnx.js";
|
|
2
2
|
export {
|
|
3
|
-
e as
|
|
3
|
+
e as AGOV_EXIT_CONFIGURATION_FAILURE,
|
|
4
|
+
o as AGOV_EXIT_GOVERNANCE_FAILURE,
|
|
5
|
+
n as AGOV_EXIT_RUNTIME_FAILURE,
|
|
6
|
+
s as AGOV_EXIT_SUCCESS,
|
|
7
|
+
l as AgovCliOutputError,
|
|
8
|
+
i as AgovCliRuntimeError,
|
|
9
|
+
d as AgovCliUsageError,
|
|
10
|
+
A as GenericWorkspaceLoadError,
|
|
11
|
+
c as GenericWorkspaceValidationError,
|
|
12
|
+
E as StandaloneGovernanceProfileLoadError,
|
|
13
|
+
G as StandaloneGovernanceProfileValidationError,
|
|
14
|
+
t as loadAndValidateGenericWorkspaceSchema,
|
|
15
|
+
v as loadGenericWorkspace,
|
|
16
|
+
C as loadGenericWorkspaceAdapterResult,
|
|
17
|
+
g as loadStandaloneGovernanceProfile,
|
|
18
|
+
_ as loadStandaloneGovernanceProfileConfig,
|
|
19
|
+
p as parseAgovCliArgs,
|
|
20
|
+
I as resolveAgovCheckCommand,
|
|
21
|
+
S as runAgovCheck,
|
|
22
|
+
f as runAgovCli,
|
|
23
|
+
k as validateStandaloneGovernanceProfile
|
|
4
24
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GovernanceDiagnostic, GovernanceWorkspace, GovernanceWorkspaceAdapterResult } from '@anarchitects/governance-core';
|
|
1
|
+
import type { GovernanceDiagnostic, GovernanceWorkspace, GovernanceWorkspaceAdapterResult } from '@anarchitects/governance-core';
|
|
2
2
|
type GenericWorkspaceFormat = 'json' | 'yaml';
|
|
3
3
|
interface GenericWorkspaceSchema {
|
|
4
4
|
schemaVersion: 1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GovernanceSignal, GovernanceSignalSeverity, GovernanceSignalSource, GovernanceSignalType } from '@anarchitects/governance-core';
|
|
1
|
+
import { type GovernanceSignal, type GovernanceSignalSeverity, type GovernanceSignalSource, type GovernanceSignalType } from '@anarchitects/governance-core';
|
|
2
2
|
export interface SignalAggregate {
|
|
3
3
|
key: string;
|
|
4
4
|
source: GovernanceSignalSource;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GovernanceSignal, GovernanceWorkspace, Measurement } from '@anarchitects/governance-core';
|
|
1
|
+
import type { GovernanceSignal, GovernanceWorkspace, Measurement } from '@anarchitects/governance-core';
|
|
2
2
|
export interface MetricEngineInput {
|
|
3
3
|
workspace: GovernanceWorkspace;
|
|
4
4
|
signals: GovernanceSignal[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GovernanceDiagnostic, GovernanceProfile, NormalizedGovernanceProfile } from '@anarchitects/governance-core';
|
|
1
|
+
import type { GovernanceDiagnostic, GovernanceProfile, NormalizedGovernanceProfile } from '@anarchitects/governance-core';
|
|
2
2
|
export interface StandaloneGovernanceProfileValidationIssue extends GovernanceDiagnostic {
|
|
3
3
|
path: string;
|
|
4
4
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GovernanceAssessment } from '@anarchitects/governance-core';
|
|
1
|
+
import type { GovernanceAssessment } from '@anarchitects/governance-core';
|
|
2
2
|
export declare function renderCliReport(assessment: GovernanceAssessment): string;
|
|
3
3
|
//# sourceMappingURL=render-cli.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GovernanceAssessment } from '@anarchitects/governance-core';
|
|
1
|
+
import type { GovernanceAssessment } from '@anarchitects/governance-core';
|
|
2
2
|
export declare function renderJsonReport(assessment: GovernanceAssessment): string;
|
|
3
3
|
//# sourceMappingURL=render-json.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Violation } from '@anarchitects/governance-core';
|
|
2
|
-
import { GovernanceSignal, GovernanceSignalCategory, GovernanceSignalSeverity } from './types.js';
|
|
1
|
+
import type { Violation } from '@anarchitects/governance-core';
|
|
2
|
+
import type { GovernanceSignal, GovernanceSignalCategory, GovernanceSignalSeverity } from './types.js';
|
|
3
3
|
export interface GovernanceGraphSnapshotProject {
|
|
4
4
|
id: string;
|
|
5
5
|
domain?: string;
|
package/dist/render-report.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgovCheckResult } from './check.js';
|
|
1
|
+
import type { AgovCheckResult } from './check.js';
|
|
2
2
|
export type AgovOutputFormat = 'json' | 'markdown' | 'table' | 'text';
|
|
3
3
|
export declare function renderAgovCheckReport(result: AgovCheckResult, format: AgovOutputFormat): string;
|
|
4
4
|
export declare function renderAgovCheckJson(result: AgovCheckResult): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anarchitects/governance-cli",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Platform-independent standalone Governance CLI that orchestrates
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Platform-independent standalone Governance CLI that orchestrates Anarchitects Governance Core contracts outside Nx.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@anarchitects/governance-core": "^0.0.
|
|
57
|
+
"@anarchitects/governance-core": "^0.0.3",
|
|
58
58
|
"yaml": "^2.8.1"
|
|
59
59
|
}
|
|
60
60
|
}
|