@intentius/chant 0.52.1 → 0.53.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/agents/checks.d.ts +35 -0
- package/dist/agents/checks.d.ts.map +1 -0
- package/dist/agents/discover.d.ts +86 -0
- package/dist/agents/discover.d.ts.map +1 -0
- package/dist/agents/importer.d.ts +46 -0
- package/dist/agents/importer.d.ts.map +1 -0
- package/dist/agents/index.d.ts +14 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/types.d.ts +196 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/audit/catalog.d.ts +4 -1
- package/dist/audit/catalog.d.ts.map +1 -1
- package/dist/audit/report.d.ts +8 -0
- package/dist/audit/report.d.ts.map +1 -1
- package/dist/audit/rules-doc.d.ts.map +1 -1
- package/dist/cdk/advise.d.ts +29 -0
- package/dist/cdk/advise.d.ts.map +1 -0
- package/dist/cdk/assembly.d.ts +38 -0
- package/dist/cdk/assembly.d.ts.map +1 -0
- package/dist/cdk/graph.d.ts +68 -0
- package/dist/cdk/graph.d.ts.map +1 -0
- package/dist/cdk/tier-map.d.ts +44 -0
- package/dist/cdk/tier-map.d.ts.map +1 -0
- package/dist/cdk/types.d.ts +114 -0
- package/dist/cdk/types.d.ts.map +1 -0
- package/dist/cli/commands/audit-agents.d.ts +83 -0
- package/dist/cli/commands/audit-agents.d.ts.map +1 -0
- package/dist/cli/commands/carve-apply.d.ts.map +1 -1
- package/dist/cli/commands/carve-bridge.d.ts.map +1 -1
- package/dist/cli/commands/carve-emit.d.ts.map +1 -1
- package/dist/cli/commands/carve.d.ts +48 -6
- package/dist/cli/commands/carve.d.ts.map +1 -1
- package/dist/cli/commands/import-agents.d.ts +64 -0
- package/dist/cli/commands/import-agents.d.ts.map +1 -0
- package/dist/cli/handlers/carve-emit.d.ts.map +1 -1
- package/dist/cli/handlers/carve.d.ts +5 -4
- package/dist/cli/handlers/carve.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.d.ts +10 -0
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/misc.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +15 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/identity.d.ts +196 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lexicon.d.ts +52 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/terraform/adopt-state.d.ts +17 -63
- package/dist/terraform/adopt-state.d.ts.map +1 -1
- package/dist/terraform/aws-resources.d.ts +1 -1
- package/dist/terraform/bridge.d.ts.map +1 -1
- package/dist/terraform/carve-provider.d.ts +142 -0
- package/dist/terraform/carve-provider.d.ts.map +1 -0
- package/dist/terraform/carve.d.ts +36 -3
- package/dist/terraform/carve.d.ts.map +1 -1
- package/dist/terraform/emit-source.d.ts +25 -0
- package/dist/terraform/emit-source.d.ts.map +1 -0
- package/dist/terraform/graduate.d.ts +11 -1
- package/dist/terraform/graduate.d.ts.map +1 -1
- package/dist/terraform/providers/aws.d.ts +19 -0
- package/dist/terraform/providers/aws.d.ts.map +1 -0
- package/dist/terraform/providers/gcp.d.ts +41 -0
- package/dist/terraform/providers/gcp.d.ts.map +1 -0
- package/dist/terraform/providers/index.d.ts +15 -0
- package/dist/terraform/providers/index.d.ts.map +1 -0
- package/dist/terraform/providers/kubernetes.d.ts +29 -0
- package/dist/terraform/providers/kubernetes.d.ts.map +1 -0
- package/dist/terraform/score.d.ts +70 -4
- package/dist/terraform/score.d.ts.map +1 -1
- package/dist/terraform/tier-map.d.ts +38 -26
- package/dist/terraform/tier-map.d.ts.map +1 -1
- package/dist/terraform/types.d.ts +6 -0
- package/dist/terraform/types.d.ts.map +1 -1
- package/dist/yaml.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/agents/checks.test.ts +228 -0
- package/src/agents/checks.ts +429 -0
- package/src/agents/discover.test.ts +310 -0
- package/src/agents/discover.ts +939 -0
- package/src/agents/importer.ts +49 -0
- package/src/agents/index.ts +29 -0
- package/src/agents/types.ts +207 -0
- package/src/audit/catalog.ts +90 -1
- package/src/audit/report.ts +9 -1
- package/src/audit/rules-doc.ts +6 -0
- package/src/cdk/__fixtures__/cdk.out/AppStack.template.json +171 -0
- package/src/cdk/__fixtures__/cdk.out/DataStack.template.json +90 -0
- package/src/cdk/__fixtures__/cdk.out/cdk.out +1 -0
- package/src/cdk/__fixtures__/cdk.out/manifest.json +30 -0
- package/src/cdk/__fixtures__/cdk.out/tree.json +201 -0
- package/src/cdk/__fixtures__/cdk.out-dummy/LookupStack.template.json +29 -0
- package/src/cdk/__fixtures__/cdk.out-dummy/manifest.json +26 -0
- package/src/cdk/advise.test.ts +208 -0
- package/src/cdk/advise.ts +44 -0
- package/src/cdk/assembly.ts +133 -0
- package/src/cdk/graph.test.ts +206 -0
- package/src/cdk/graph.ts +525 -0
- package/src/cdk/tier-map.ts +71 -0
- package/src/cdk/types.ts +115 -0
- package/src/cli/commands/audit-agents.test.ts +260 -0
- package/src/cli/commands/audit-agents.ts +387 -0
- package/src/cli/commands/carve-apply.ts +20 -4
- package/src/cli/commands/carve-bridge.test.ts +30 -0
- package/src/cli/commands/carve-bridge.ts +24 -2
- package/src/cli/commands/carve-emit-k8s.test.ts +262 -0
- package/src/cli/commands/carve-emit-provider.test.ts +207 -0
- package/src/cli/commands/carve-emit.test.ts +72 -1
- package/src/cli/commands/carve-emit.ts +55 -28
- package/src/cli/commands/carve.ts +139 -36
- package/src/cli/commands/import-agents.test.ts +208 -0
- package/src/cli/commands/import-agents.ts +196 -0
- package/src/cli/handlers/carve-emit.ts +8 -1
- package/src/cli/handlers/carve.ts +8 -7
- package/src/cli/handlers/lifecycle.test.ts +187 -1
- package/src/cli/handlers/lifecycle.ts +125 -1
- package/src/cli/handlers/misc.ts +111 -0
- package/src/cli/main.ts +29 -5
- package/src/cli/registry.ts +15 -0
- package/src/identity.test.ts +199 -0
- package/src/identity.ts +346 -0
- package/src/index.ts +1 -0
- package/src/lexicon.ts +65 -0
- package/src/terraform/__fixtures__/gcp-estate/main.tf +60 -0
- package/src/terraform/adopt-state.test.ts +131 -0
- package/src/terraform/adopt-state.ts +22 -167
- package/src/terraform/aws-resources.test.ts +55 -16
- package/src/terraform/aws-resources.ts +1 -1
- package/src/terraform/bridge.test.ts +12 -0
- package/src/terraform/bridge.ts +4 -1
- package/src/terraform/carve-provider.test.ts +155 -0
- package/src/terraform/carve-provider.ts +237 -0
- package/src/terraform/carve.test.ts +55 -1
- package/src/terraform/carve.ts +0 -0
- package/src/terraform/emit-source.ts +39 -0
- package/src/terraform/graduate.test.ts +37 -0
- package/src/terraform/graduate.ts +55 -7
- package/src/terraform/graph.ts +3 -3
- package/src/terraform/providers/aws.ts +169 -0
- package/src/terraform/providers/gcp.test.ts +228 -0
- package/src/terraform/providers/gcp.ts +329 -0
- package/src/terraform/providers/index.ts +21 -0
- package/src/terraform/providers/kubernetes.ts +224 -0
- package/src/terraform/score.ts +111 -25
- package/src/terraform/tier-map.ts +55 -90
- package/src/terraform/types.ts +6 -0
- package/src/yaml.test.ts +54 -0
- package/src/yaml.ts +24 -3
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CloudFormation-type → native-spec tier for the CDK carve advisor (#1056).
|
|
3
|
+
*
|
|
4
|
+
* The Terraform path's hardest layer — translating `aws_s3_bucket` into
|
|
5
|
+
* `AWS::S3::Bucket` and a tier — does not exist here: a synthesized template is
|
|
6
|
+
* already in CloudFormation type space, which is the space
|
|
7
|
+
* `AWS_CARVE_TYPES.nativeType` is written in. So this is the same table read
|
|
8
|
+
* from the other end, not a second table to keep in step. Adding an AWS type to
|
|
9
|
+
* the carve-out table lights it up for both advisors at once.
|
|
10
|
+
*
|
|
11
|
+
* `mapsTo` is the CloudFormation type itself, because that identity is the
|
|
12
|
+
* point: chant's AWS lexicon constructors take CloudFormation PascalCase props,
|
|
13
|
+
* so a CDK resource needs no translation to become one.
|
|
14
|
+
*/
|
|
15
|
+
import type { TierInfo } from "../terraform/tier-map.js";
|
|
16
|
+
/**
|
|
17
|
+
* CloudFormation type → tier. Two Terraform types can name one CloudFormation
|
|
18
|
+
* type (`aws_lb` and `aws_alb` are the same load balancer); the first entry
|
|
19
|
+
* wins, and since aliases share a tier by construction there is nothing to
|
|
20
|
+
* reconcile.
|
|
21
|
+
*/
|
|
22
|
+
export declare const CFN_TIER_MAP: Record<string, TierInfo>;
|
|
23
|
+
/** The chant AWS lexicon constructor a CloudFormation type would carve into. */
|
|
24
|
+
export declare const CFN_CTOR: Record<string, string>;
|
|
25
|
+
export declare function resolveCfnTier(cfnType: string): TierInfo | null;
|
|
26
|
+
/**
|
|
27
|
+
* A nested stack is an assembly of its own: its resources live in a separate
|
|
28
|
+
* template that this advisor does not descend into, so carving the
|
|
29
|
+
* `AWS::CloudFormation::Stack` resource means carving everything under it.
|
|
30
|
+
*/
|
|
31
|
+
export declare const NESTED_STACK_TYPE = "AWS::CloudFormation::Stack";
|
|
32
|
+
/**
|
|
33
|
+
* CloudFormation resources CDK synthesizes for its own bookkeeping. They
|
|
34
|
+
* describe the synthesis, not the infrastructure, so they never appear in the
|
|
35
|
+
* ranking.
|
|
36
|
+
*/
|
|
37
|
+
export declare const SCAFFOLDING_TYPES: Set<string>;
|
|
38
|
+
/**
|
|
39
|
+
* Template parameters CDK adds for bootstrap and asset plumbing. A reference to
|
|
40
|
+
* one is not a sign the resource is parameterized by its author — it is the
|
|
41
|
+
* synthesizer talking to itself — so these do not mark a construct dynamic.
|
|
42
|
+
*/
|
|
43
|
+
export declare function isScaffoldingParameter(name: string): boolean;
|
|
44
|
+
//# sourceMappingURL=tier-map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tier-map.d.ts","sourceRoot":"","sources":["../../src/cdk/tier-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAO9C,CAAC;AAEL,gFAAgF;AAChF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIxC,CAAC;AAEL,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAE/D;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,aAAkC,CAAC;AAEjE;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAO5D"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The parts of a CDK cloud assembly the carve advisor reads (#1056).
|
|
3
|
+
*
|
|
4
|
+
* A cloud assembly is already JSON, so there is no parser to install and no
|
|
5
|
+
* expression AST to resolve — the Terraform path's two hardest layers do not
|
|
6
|
+
* exist here. Three files carry everything the advisor needs:
|
|
7
|
+
*
|
|
8
|
+
* - `manifest.json` — which artifacts are stacks, which template file each
|
|
9
|
+
* one synthesized to, and (crucially) whether any context lookup went
|
|
10
|
+
* unresolved.
|
|
11
|
+
* - `tree.json` — the construct tree, so CloudFormation resources can be
|
|
12
|
+
* grouped back under the construct that emitted them. Optional: CDK can be
|
|
13
|
+
* told not to write it, and the advisor degrades to a coarser grouping.
|
|
14
|
+
* - `*.template.json` — the CloudFormation templates themselves, already in
|
|
15
|
+
* `AWS::*` type space, which is exactly what the AWS tier map keys on.
|
|
16
|
+
*
|
|
17
|
+
* Everything here is post-jsii, so a Python or Java CDK app reads through the
|
|
18
|
+
* same code path as a TypeScript one. Nothing in this module reads CDK source.
|
|
19
|
+
*
|
|
20
|
+
* The declarations are deliberately loose — every field optional, unknown keys
|
|
21
|
+
* tolerated — because the assembly schema is not chant's to own and gains
|
|
22
|
+
* fields between CDK releases.
|
|
23
|
+
*/
|
|
24
|
+
/** A CloudFormation resource as it appears in a synthesized template. */
|
|
25
|
+
export interface CfnResource {
|
|
26
|
+
Type?: string;
|
|
27
|
+
Properties?: Record<string, unknown>;
|
|
28
|
+
/** `aws:cdk:path` names the emitting construct; `aws:asset:*` marks an asset. */
|
|
29
|
+
Metadata?: Record<string, unknown>;
|
|
30
|
+
DependsOn?: string | string[];
|
|
31
|
+
/** Names a template `Condition` — the CloudFormation analogue of `count`. */
|
|
32
|
+
Condition?: string;
|
|
33
|
+
[k: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
/** A CloudFormation `Outputs` entry. */
|
|
36
|
+
export interface CfnOutput {
|
|
37
|
+
Value?: unknown;
|
|
38
|
+
Export?: {
|
|
39
|
+
Name?: unknown;
|
|
40
|
+
};
|
|
41
|
+
[k: string]: unknown;
|
|
42
|
+
}
|
|
43
|
+
export interface CfnTemplate {
|
|
44
|
+
Parameters?: Record<string, Record<string, unknown>>;
|
|
45
|
+
Conditions?: Record<string, unknown>;
|
|
46
|
+
Resources?: Record<string, CfnResource>;
|
|
47
|
+
Outputs?: Record<string, CfnOutput>;
|
|
48
|
+
[k: string]: unknown;
|
|
49
|
+
}
|
|
50
|
+
/** One artifact in `manifest.json`. */
|
|
51
|
+
export interface CdkArtifact {
|
|
52
|
+
type?: string;
|
|
53
|
+
properties?: {
|
|
54
|
+
templateFile?: string;
|
|
55
|
+
[k: string]: unknown;
|
|
56
|
+
};
|
|
57
|
+
displayName?: string;
|
|
58
|
+
dependencies?: string[];
|
|
59
|
+
environment?: string;
|
|
60
|
+
[k: string]: unknown;
|
|
61
|
+
}
|
|
62
|
+
/** One unresolved context lookup, as `cdk synth` records it. */
|
|
63
|
+
export interface CdkMissingContext {
|
|
64
|
+
key?: string;
|
|
65
|
+
provider?: string;
|
|
66
|
+
props?: Record<string, unknown>;
|
|
67
|
+
}
|
|
68
|
+
export interface CdkManifest {
|
|
69
|
+
version?: string;
|
|
70
|
+
artifacts?: Record<string, CdkArtifact>;
|
|
71
|
+
/**
|
|
72
|
+
* Context queries synthesis could not answer. Non-empty means the templates
|
|
73
|
+
* hold placeholder values rather than the real account's, so nothing
|
|
74
|
+
* synthesized from them describes real infrastructure.
|
|
75
|
+
*/
|
|
76
|
+
missing?: CdkMissingContext[];
|
|
77
|
+
[k: string]: unknown;
|
|
78
|
+
}
|
|
79
|
+
/** A node of `tree.json`. Children are keyed by construct id. */
|
|
80
|
+
export interface CdkTreeNode {
|
|
81
|
+
id?: string;
|
|
82
|
+
path?: string;
|
|
83
|
+
children?: Record<string, CdkTreeNode>;
|
|
84
|
+
/** `fqn` is the construct class — the L1/L2/L3 signal. */
|
|
85
|
+
constructInfo?: {
|
|
86
|
+
fqn?: string;
|
|
87
|
+
version?: string;
|
|
88
|
+
};
|
|
89
|
+
attributes?: Record<string, unknown>;
|
|
90
|
+
}
|
|
91
|
+
export interface CdkTreeFile {
|
|
92
|
+
version?: string;
|
|
93
|
+
tree?: CdkTreeNode;
|
|
94
|
+
}
|
|
95
|
+
/** One CloudFormation stack artifact, with its template read. */
|
|
96
|
+
export interface CdkStack {
|
|
97
|
+
/** Artifact id in `manifest.json`, e.g. `Stage-AppStack`. */
|
|
98
|
+
id: string;
|
|
99
|
+
/** Construct path of the stack, e.g. `Stage/AppStack`. */
|
|
100
|
+
path: string;
|
|
101
|
+
templateFile: string;
|
|
102
|
+
template: CfnTemplate;
|
|
103
|
+
}
|
|
104
|
+
/** A read cloud assembly: the manifest, the construct tree, the stacks. */
|
|
105
|
+
export interface CloudAssembly {
|
|
106
|
+
dir: string;
|
|
107
|
+
manifest: CdkManifest;
|
|
108
|
+
/** Absent when the app was synthesized without tree metadata. */
|
|
109
|
+
tree?: CdkTreeNode;
|
|
110
|
+
stacks: CdkStack[];
|
|
111
|
+
/** Everything that went wrong or is worth saying about the read itself. */
|
|
112
|
+
diagnost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6DAA6D;IAC7D,EAAE,EAAE,MAAM,CAAC;IACX,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,WAAW,CAAC;CACvB;AAED,2EAA2E;AAC3E,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,WAAW,CAAC;IACtB,iEAAiE;IACjE,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,2EAA2E;IAC3E,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant audit --agents` — audit the agent configuration on this machine.
|
|
3
|
+
*
|
|
4
|
+
* This is a different *subject* from the rest of `chant audit` (a machine, not
|
|
5
|
+
* a repo) but deliberately the same *product*: the same tiering, the same
|
|
6
|
+
* five output formats, the same rule-catalog links. A reader who already knows
|
|
7
|
+
* how to read a chant audit report can read this one, and the HTML/SARIF/JSON
|
|
8
|
+
* consumers downstream need no changes.
|
|
9
|
+
*
|
|
10
|
+
* The bridge is {@link toAuditFindings}: an `AgentFinding` is projected onto
|
|
11
|
+
* the `AuditFinding` shape the renderers already take, with the site id in
|
|
12
|
+
* `entity` so a reader can tell which configuration a finding came from.
|
|
13
|
+
*
|
|
14
|
+
* Two things this command adds that a repo audit has no need for:
|
|
15
|
+
*
|
|
16
|
+
* - **An inventory.** "What is configured on this machine" is the primary
|
|
17
|
+
* question here; findings are secondary. A clean scan should still print
|
|
18
|
+
* the sites it found, because most users have never seen the full list.
|
|
19
|
+
* - **Coverage honesty.** The scan probes a fixed set of locations, so it can
|
|
20
|
+
* state what it looked for and didn't find, what it couldn't parse, and how
|
|
21
|
+
* many registered projects it did not visit. An inventory that quietly
|
|
22
|
+
* omits half the machine is worse than no inventory.
|
|
23
|
+
*/
|
|
24
|
+
import type { AgentConfigSite, AgentFinding, AgentRuntime, AgentScanResult, AgentScope } from "../../agents/types.js";
|
|
25
|
+
import type { AuditFinding } from "../../audit/core.js";
|
|
26
|
+
import { type ReportTheme } from "../../audit/report-html.js";
|
|
27
|
+
import type { AuditFailOn, AuditFormat, AuditTier } from "./audit.js";
|
|
28
|
+
export interface AuditAgentsOptions {
|
|
29
|
+
format?: AuditFormat;
|
|
30
|
+
tier?: AuditTier;
|
|
31
|
+
failOn?: AuditFailOn;
|
|
32
|
+
/** Scopes to scan. Defaults to all three. */
|
|
33
|
+
scopes?: readonly AgentScope[];
|
|
34
|
+
/** Harnesses to scan. Defaults to all five. */
|
|
35
|
+
runtimes?: readonly AgentRuntime[];
|
|
36
|
+
/** Project roots to scan at project scope. Defaults to `[cwd]`. */
|
|
37
|
+
projectRoots?: string[];
|
|
38
|
+
/** Home directory override — injectable so tests scan a fixture tree. */
|
|
39
|
+
home?: string;
|
|
40
|
+
platform?: NodeJS.Platform;
|
|
41
|
+
/** Write the report here instead of returning it for stdout. */
|
|
42
|
+
output?: string;
|
|
43
|
+
theme?: ReportTheme;
|
|
44
|
+
template?: string;
|
|
45
|
+
now?: string;
|
|
46
|
+
toolVersion?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface AuditAgentsResult {
|
|
49
|
+
success: boolean;
|
|
50
|
+
output: string;
|
|
51
|
+
findings: AgentFinding[];
|
|
52
|
+
scan: AgentScanResult;
|
|
53
|
+
exitCode: number;
|
|
54
|
+
wroteTo?: string;
|
|
55
|
+
error?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Project an agent finding onto the audit renderers' finding shape.
|
|
59
|
+
*
|
|
60
|
+
* `lexicon` is set to `"agents"` — the renderers only use it as a grouping
|
|
61
|
+
* label, and calling this family what it is keeps a mixed report readable.
|
|
62
|
+
*/
|
|
63
|
+
export declare function toAuditFindings(findings: AgentFinding[]): AuditFinding[];
|
|
64
|
+
/** One-line summary of what a site carries, e.g. `3 MCP servers · 11 skills`. */
|
|
65
|
+
export declare function siteSummary(site: AgentConfigSite): string;
|
|
66
|
+
/**
|
|
67
|
+
* Coverage caveats. Stated even when empty-ish, because the value of an
|
|
68
|
+
* inventory depends entirely on the reader knowing its edges.
|
|
69
|
+
*/
|
|
70
|
+
export declare function agentCoverageNotes(scan: AgentScanResult, opts: {
|
|
71
|
+
home: string;
|
|
72
|
+
projectRoots: string[];
|
|
73
|
+
scopes: readonly AgentScope[];
|
|
74
|
+
}): string[];
|
|
75
|
+
/**
|
|
76
|
+
* Scan the machine's agent configuration and render a report.
|
|
77
|
+
*
|
|
78
|
+
* Pure with respect to the filesystem apart from the scan itself and an
|
|
79
|
+
* optional `--output` write, so it can be driven from tests against a fixture
|
|
80
|
+
* home directory.
|
|
81
|
+
*/
|
|
82
|
+
export declare function auditAgentsCommand(opts?: AuditAgentsOptions): AuditAgentsResult;
|
|
83
|
+
//# sourceMappingURL=audit-agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-agents.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/audit-agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEnE,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,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../../../src/cli/commands/carve-apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"carve-apply.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/carve-apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,EAA4C,KAAK,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAIzG,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gEAAgE;IAChE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,wBAAsB,UAAU,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CA6EnF;AAqBD,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CA2BjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carve-bridge.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/carve-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"carve-bridge.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/carve-bridge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAOH,OAAO,EAAkB,KAAK,UAAU,EAAuB,MAAM,wBAAwB,CAAC;AAK9F,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iFAAiF;IACjF,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,mDAAmD;IACnD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AASD,wBAAsB,WAAW,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAoItF;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAqCnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carve-emit.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/carve-emit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;
|
|
1
|
+
{"version":3,"file":"carve-emit.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/carve-emit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAMH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E,MAAM,EAAE,CAAC;IACtB,2FAA2F;IAC3F,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IACzB,sFAAsF;IACtF,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,oEAAoE;IACpE,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAwIrG;AAiJD,oFAAoF;AACpF,wBAAgB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAwD/D"}
|
|
@@ -1,26 +1,41 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `chant carve advise` — the read-only
|
|
2
|
+
* `chant carve advise` — the read-only peelability advisor (#214, #1056).
|
|
3
3
|
*
|
|
4
|
-
* Points at
|
|
5
|
-
*
|
|
4
|
+
* Points at foreign infrastructure and reports which pieces are cheap to carve
|
|
5
|
+
* into native chant later and which should stay where they are. It emits
|
|
6
6
|
* nothing, patches nothing, and touches no live resource — pure analysis. The
|
|
7
|
-
* emit/boundary/apply phases
|
|
7
|
+
* emit/boundary/apply phases (`carve emit|bridge|apply`, #197) read Terraform
|
|
8
|
+
* only, and refuse a cloud assembly by name.
|
|
9
|
+
*
|
|
10
|
+
* Two sources, one report. A Terraform estate is parsed from `.tf`; a CDK cloud
|
|
11
|
+
* assembly is read from `cdk.out` (#1056). Which one is in `--from` is decided
|
|
12
|
+
* by looking, not by a second flag: a directory holding `manifest.json` plus a
|
|
13
|
+
* synthesized `*.template.json` is an assembly. Both produce the same bands,
|
|
14
|
+
* the same score arithmetic, and the same JSON shape.
|
|
8
15
|
*/
|
|
9
|
-
import { type Peelability } from "../../terraform/score.js";
|
|
16
|
+
import { type Peelability, type ScoreOptions } from "../../terraform/score.js";
|
|
10
17
|
import { type BoundaryEdge } from "../../terraform/carve.js";
|
|
11
18
|
import type { TfGraph } from "../../terraform/types.js";
|
|
12
19
|
export interface CarveAdviseOptions {
|
|
13
|
-
/** Terraform estate directory (from `--from`). */
|
|
20
|
+
/** Terraform estate directory or CDK cloud assembly (from `--from`). */
|
|
14
21
|
from?: string;
|
|
15
22
|
/** Opt-in `.tfstate` path (from `--state`): accurate fan-out instance counts. */
|
|
16
23
|
statePath?: string;
|
|
17
24
|
/** Write the full JSON report to this path (from `--report <path>`). */
|
|
18
25
|
reportFile?: string;
|
|
19
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Which source the ranking came from. Terraform addresses and CDK construct
|
|
29
|
+
* paths are different namespaces, and the bridge patches have different names,
|
|
30
|
+
* so a report says which it is rather than leaving a reader to guess from the
|
|
31
|
+
* shape of an address.
|
|
32
|
+
*/
|
|
33
|
+
export type CarveSource = "terraform" | "cdk";
|
|
20
34
|
export interface CarveAdviseResult {
|
|
21
35
|
ok: boolean;
|
|
22
36
|
error?: string;
|
|
23
37
|
from?: string;
|
|
38
|
+
source?: CarveSource;
|
|
24
39
|
results?: Peelability[];
|
|
25
40
|
/**
|
|
26
41
|
* The parsed dependency graph the scores came from. Kept so the JSON report
|
|
@@ -28,6 +43,10 @@ export interface CarveAdviseResult {
|
|
|
28
43
|
* Not part of the JSON payload — `carveJson` derives from it.
|
|
29
44
|
*/
|
|
30
45
|
graph?: TfGraph;
|
|
46
|
+
/** The hooks the scores were produced with, so the boundary pass agrees. */
|
|
47
|
+
scoreOptions?: ScoreOptions;
|
|
48
|
+
/** Anything about the read itself worth saying out loud. */
|
|
49
|
+
diagnostics?: string[];
|
|
31
50
|
}
|
|
32
51
|
export declare function carveAdvise(opts: CarveAdviseOptions): Promise<CarveAdviseResult>;
|
|
33
52
|
/**
|
|
@@ -45,6 +64,16 @@ export declare function carveAdvise(opts: CarveAdviseOptions): Promise<CarveAdvi
|
|
|
45
64
|
* not).
|
|
46
65
|
* - A reader that does not know the version it is handed should refuse the
|
|
47
66
|
* report rather than half-read it.
|
|
67
|
+
*
|
|
68
|
+
* The CDK source (#1056) stays inside that promise and does not bump the
|
|
69
|
+
* version. Every field an existing reader keys on keeps its type and meaning:
|
|
70
|
+
* `address` is still an opaque string identifier (a construct path instead of a
|
|
71
|
+
* Terraform address), `kind` is still `"resource"` or `"module"` (an L3
|
|
72
|
+
* construct subtree is a Composite candidate, which is what `module` already
|
|
73
|
+
* means), `score`/`band`/`breakdown` are the same arithmetic. What is new is
|
|
74
|
+
* additive and ignorable: the top-level `source` discriminator, per-resource
|
|
75
|
+
* `notes` and `members`, and two more `bridge` values in a list that was
|
|
76
|
+
* already declared open-ended.
|
|
48
77
|
*/
|
|
49
78
|
export declare const CARVE_REPORT_VERSION = 1;
|
|
50
79
|
/** One ranked resource in the JSON report: its score, plus the boundary its carve would cut. */
|
|
@@ -78,10 +107,23 @@ export interface CarveJsonResource extends Peelability {
|
|
|
78
107
|
export interface CarveJsonReport {
|
|
79
108
|
version: number;
|
|
80
109
|
from?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Which source was read (#1056). `terraform` — addresses are Terraform
|
|
112
|
+
* addresses, bridges are `data` sources. `cdk` — addresses are construct
|
|
113
|
+
* paths and bridges are reimports. Absent on a chant that predates the CDK
|
|
114
|
+
* advisor, which a reader should take as `terraform`.
|
|
115
|
+
*/
|
|
116
|
+
source: CarveSource;
|
|
81
117
|
advisory: string;
|
|
82
118
|
count: number;
|
|
83
119
|
/** Band name -> how many resources landed in it. */
|
|
84
120
|
bands: Record<string, number>;
|
|
121
|
+
/**
|
|
122
|
+
* Anything about the read the scores alone do not say — a missing `tree.json`,
|
|
123
|
+
* an assembly synthesized from unresolved context lookups. Present only when
|
|
124
|
+
* there is something to report.
|
|
125
|
+
*/
|
|
126
|
+
diagnostics?: string[];
|
|
85
127
|
resources: CarveJsonResource[];
|
|
86
128
|
}
|
|
87
129
|
/** Build the `--json` / `--report` payload. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carve.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/carve.ts"],"names":[],"mappings":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E,YAAY,EAAE,CAAC;QAAC,QAAQ,EAAE,YAAY,EAAE,CAAA;KAAE,CAAC;CAClE;AAED,yGAAyG;AACzG,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,EAAE,iBAAiB,EAAE,CAAC;CAChC;AAED,+CAA+C;AAC/C,wBAAgB,SAAS,CAAC,MAAM,EAAE,iBAAiB,GAAG,eAAe,CAiBpE;AAeD,6CAA6C;AAC7C,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAqCnE"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant import --agents` — re-express this machine's agent configuration as
|
|
3
|
+
* chant code.
|
|
4
|
+
*
|
|
5
|
+
* Shares its front half with `chant audit --agents` (the same scan, the same
|
|
6
|
+
* normalized sites) and its back half with every other import path (a lexicon's
|
|
7
|
+
* `templateGenerator()` turning IR into TypeScript). The only new step is the
|
|
8
|
+
* middle: `LexiconPlugin.agentConfigImporter()`, which maps sites onto the
|
|
9
|
+
* lexicon's own resource types.
|
|
10
|
+
*
|
|
11
|
+
* The command is loud about what it changed. Re-expression here is lossy in
|
|
12
|
+
* three specific ways — a skipped runtime, a defaulted model, a redacted
|
|
13
|
+
* secret — and each one is something the user would otherwise find only by
|
|
14
|
+
* diffing the generated code against their real config. Printing them is not
|
|
15
|
+
* politeness; it is the difference between generated code you can trust and
|
|
16
|
+
* generated code you have to re-verify by hand.
|
|
17
|
+
*/
|
|
18
|
+
import type { AgentRuntime, AgentScope } from "../../agents/types.js";
|
|
19
|
+
import type { AgentImportOutcome } from "../../agents/importer.js";
|
|
20
|
+
import type { LexiconPlugin } from "../../lexicon.js";
|
|
21
|
+
/** The lexicon used when `--lexicon` isn't given: the one that models agent workloads. */
|
|
22
|
+
export declare const DEFAULT_AGENT_LEXICON = "fountain";
|
|
23
|
+
/**
|
|
24
|
+
* Loads the lexicon plugin. Injectable so this command can be unit-tested
|
|
25
|
+
* without a built lexicon package on disk — the same seam `audit.ts` uses for
|
|
26
|
+
* its `ChecksProvider`.
|
|
27
|
+
*/
|
|
28
|
+
export type PluginLoader = (name: string) => Promise<LexiconPlugin>;
|
|
29
|
+
export interface ImportAgentsOptions {
|
|
30
|
+
/** Lexicon to re-express into. Defaults to {@link DEFAULT_AGENT_LEXICON}. */
|
|
31
|
+
lexicon?: string;
|
|
32
|
+
/** Injectable plugin loader (testing). Defaults to the real one. */
|
|
33
|
+
pluginLoader?: PluginLoader;
|
|
34
|
+
/** Output directory. Defaults to `./infra/agents`. */
|
|
35
|
+
output?: string;
|
|
36
|
+
force?: boolean;
|
|
37
|
+
scopes?: readonly AgentScope[];
|
|
38
|
+
runtimes?: readonly AgentRuntime[];
|
|
39
|
+
projectRoots?: string[];
|
|
40
|
+
home?: string;
|
|
41
|
+
platform?: NodeJS.Platform;
|
|
42
|
+
}
|
|
43
|
+
export interface ImportAgentsResult {
|
|
44
|
+
success: boolean;
|
|
45
|
+
generatedFiles: string[];
|
|
46
|
+
/** Sites found, mapped, and deliberately not mapped. */
|
|
47
|
+
summary: {
|
|
48
|
+
discovered: number;
|
|
49
|
+
mapped: number;
|
|
50
|
+
};
|
|
51
|
+
outcome?: AgentImportOutcome;
|
|
52
|
+
warnings: string[];
|
|
53
|
+
error?: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Scan, re-express, and write.
|
|
57
|
+
*
|
|
58
|
+
* Refuses to overwrite existing files without `--force`, matching `chant
|
|
59
|
+
* import` — generated agent code is likely to be edited by hand after the
|
|
60
|
+
* first run, and silently reverting those edits would be the worst possible
|
|
61
|
+
* behavior for a command whose whole purpose is capturing hand-tuned config.
|
|
62
|
+
*/
|
|
63
|
+
export declare function importAgentsCommand(opts?: ImportAgentsOptions): Promise<ImportAgentsResult>;
|
|
64
|
+
//# sourceMappingURL=import-agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-agents.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/import-agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,0FAA0F;AAC1F,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;AAEpE,MAAM,WAAW,mBAAmB;IAClC,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,SAAS,UAAU,EAAE,CAAC;IAC/B,QAAQ,CAAC,EAAE,SAAS,YAAY,EAAE,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC,QAAQ,CAAC;CAC5B;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,wDAAwD;IACxD,OAAO,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAChD,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,GAAE,mBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA6HrG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carve-emit.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/carve-emit.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"carve-emit.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/carve-emit.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;GAOG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0CvE"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { CommandContext } from "../registry.js";
|
|
2
2
|
/**
|
|
3
|
-
* `chant carve advise --from <terraform-dir> [--json] [--report <path>]`
|
|
3
|
+
* `chant carve advise --from <terraform-dir | cdk.out> [--json] [--report <path>]`
|
|
4
4
|
*
|
|
5
|
-
* Read-only. Reuses `--from` (shared with migrate/import) for the
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* Read-only. Reuses `--from` (shared with migrate/import) for the source dir,
|
|
6
|
+
* and works out which source it is by looking at the directory (#1056) rather
|
|
7
|
+
* than adding a second flag. Loads no chant project and no lexicon plugins —
|
|
8
|
+
* pure analysis of a foreign tree.
|
|
8
9
|
*/
|
|
9
10
|
export declare function runCarveAdvise(ctx: CommandContext): Promise<number>;
|
|
10
11
|
/** Fallback for `chant carve` with no/unknown subcommand. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carve.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/carve.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD
|
|
1
|
+
{"version":3,"file":"carve.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/carve.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBzE;AAED,6DAA6D;AAC7D,wBAAsB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAM3E"}
|
|
@@ -58,6 +58,16 @@ export declare function runLifecycleTeardown(ctx: CommandContext): Promise<numbe
|
|
|
58
58
|
* chant lifecycle log [environment]
|
|
59
59
|
*/
|
|
60
60
|
export declare function runLifecycleLog(ctx: CommandContext): Promise<number>;
|
|
61
|
+
/**
|
|
62
|
+
* chant lifecycle whoami <environment> [lexicon] [--json] [--strict]
|
|
63
|
+
*
|
|
64
|
+
* Read-only pre-flight (#1982): who chant would act as in each configured
|
|
65
|
+
* lexicon, and what that principal is scoped to, before it acts. Never
|
|
66
|
+
* mutates, never gates — `--strict` is the only way this exits non-zero on an
|
|
67
|
+
* unresolved row, and a lexicon that answers for nothing is reported as such
|
|
68
|
+
* rather than as an empty identity.
|
|
69
|
+
*/
|
|
70
|
+
export declare function runLifecycleWhoami(ctx: CommandContext): Promise<number>;
|
|
61
71
|
/**
|
|
62
72
|
* Fallback for unknown state subcommands.
|
|
63
73
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":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AAC,MAAM,CAAC,CAM9E;AAkBD;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+C/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/misc.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"misc.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/misc.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAsDlD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAqFnE;AAED,wBAAsB,OAAO,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuClE;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8CtE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsIpE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAKpE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAgBpE"}
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAmC,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAsF9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAmUpD;AAwnBD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
|
package/dist/cli/registry.d.ts
CHANGED
|
@@ -157,6 +157,21 @@ export interface ParsedArgs {
|
|
|
157
157
|
includeDependents?: boolean;
|
|
158
158
|
/** `chant audit --tier merge-worthy|all` */
|
|
159
159
|
tier?: string;
|
|
160
|
+
/**
|
|
161
|
+
* `chant audit --agents` / `chant import --agents` — switch the subject from
|
|
162
|
+
* a repo's pipeline YAML to the agent configuration installed on this
|
|
163
|
+
* machine (skills, MCP servers, instruction files, permissions).
|
|
164
|
+
*/
|
|
165
|
+
agents?: boolean;
|
|
166
|
+
/** `--agents --scope system,user,project` — which scopes to scan (default all). */
|
|
167
|
+
scope?: string;
|
|
168
|
+
/** `--agents --runtime claude,codex,...` — which agent harnesses to scan (default all). */
|
|
169
|
+
runtime?: string;
|
|
170
|
+
/**
|
|
171
|
+
* `--agents --all-projects` — scan every project root the harness has
|
|
172
|
+
* registered in `~/.claude.json`, not just the path argument.
|
|
173
|
+
*/
|
|
174
|
+
allProjects?: boolean;
|
|
160
175
|
/** `chant audit --fail-on merge-worthy|warning|none` */
|
|
161
176
|
failOn?: string;
|
|
162
177
|
/** `chant audit --theme <file>` — JSON theme knobs for the HTML report */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/cli/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB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