@intentius/chant-lexicon-aws 0.44.9 → 0.44.12
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/agentcore/trace-fetch.d.ts +332 -0
- package/dist/agentcore/trace-fetch.d.ts.map +1 -0
- package/dist/agentcore/trace-render.d.ts +256 -0
- package/dist/agentcore/trace-render.d.ts.map +1 -0
- package/dist/api/read-client.d.ts +43 -5
- package/dist/api/read-client.d.ts.map +1 -1
- package/dist/api/sigv4.d.ts +82 -0
- package/dist/api/sigv4.d.ts.map +1 -0
- package/dist/identity-observe.d.ts +23 -0
- package/dist/identity-observe.d.ts.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/integrity.json +2 -2
- package/dist/manifest.json +1 -1
- package/dist/op/activities/index.d.ts +10 -0
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/agentcore/trace-fetch.test.ts +588 -0
- package/src/agentcore/trace-fetch.ts +754 -0
- package/src/agentcore/trace-render.test.ts +366 -0
- package/src/agentcore/trace-render.ts +589 -0
- package/src/api/read-client.test.ts +87 -4
- package/src/api/read-client.ts +95 -21
- package/src/api/sigv4.test.ts +260 -0
- package/src/api/sigv4.ts +243 -0
- package/src/identity-observe.test.ts +146 -0
- package/src/identity-observe.ts +137 -0
- package/src/index.ts +13 -0
- package/src/lifecycle-integration.test.ts +69 -0
- package/src/op/activities/index.ts +15 -0
- package/src/plugin.ts +19 -5
|
@@ -19,12 +19,22 @@
|
|
|
19
19
|
*
|
|
20
20
|
* ## Signing
|
|
21
21
|
*
|
|
22
|
-
* Requests are
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
22
|
+
* Requests are signed with SigV4 (#1686) when credentials resolve — see
|
|
23
|
+
* `./sigv4.ts`, which holds the implementation so that cedar's AVP client can
|
|
24
|
+
* adopt the same one rather than growing a second. Two cases stay unsigned, and
|
|
25
|
+
* both are deliberate:
|
|
26
|
+
*
|
|
27
|
+
* - **No credentials.** The caller's existing no-credentials path is
|
|
28
|
+
* untouched: the request still goes out carrying only the credential scope
|
|
29
|
+
* of {@link regionScope}, which is what the emulator lanes have always
|
|
30
|
+
* sent.
|
|
31
|
+
* - **An endpoint override.** Floci does not verify signatures, and signing
|
|
32
|
+
* against it would mean every local lane suddenly needs credentials to read
|
|
33
|
+
* what it just deployed. `signEndpointOverride` opts back in for an
|
|
34
|
+
* override that *is* real AWS — a VPC endpoint, a signing proxy.
|
|
27
35
|
*/
|
|
36
|
+
import { type AwsCredentialSource } from "./sigv4.js";
|
|
37
|
+
export type { AwsCredentials, AwsCredentialResolver, AwsCredentialSource } from "./sigv4.js";
|
|
28
38
|
/** Injectable HTTP, mirroring `AwsHttp` in the applier so tests avoid the network. */
|
|
29
39
|
export type AwsReadHttp = (url: string, init: {
|
|
30
40
|
headers: Record<string, string>;
|
|
@@ -49,9 +59,37 @@ export interface AwsReadClientOptions {
|
|
|
49
59
|
region?: string;
|
|
50
60
|
http?: AwsReadHttp;
|
|
51
61
|
signal?: AbortSignal;
|
|
62
|
+
/**
|
|
63
|
+
* What to sign with: literal credentials, or a resolver that decides. Omitted,
|
|
64
|
+
* the environment answers; when it has nothing, the request goes out unsigned
|
|
65
|
+
* exactly as it did before signing existed.
|
|
66
|
+
*/
|
|
67
|
+
credentials?: AwsCredentialSource;
|
|
68
|
+
/** Environment the credential fallback reads. Defaults to `process.env`; injectable for tests. */
|
|
69
|
+
env?: Record<string, string | undefined>;
|
|
70
|
+
/** Sign even against an endpoint override — for an override that is real AWS. */
|
|
71
|
+
signEndpointOverride?: boolean;
|
|
72
|
+
/** Signing clock. Injected by tests so a signature is reproducible. */
|
|
73
|
+
now?: Date;
|
|
52
74
|
}
|
|
53
75
|
/** Service host for `service`, honouring an endpoint override. */
|
|
54
76
|
export declare function serviceUrl(service: string, endpoint?: string, region?: string): string;
|
|
77
|
+
/**
|
|
78
|
+
* The headers one request goes out with — signed when there is something to
|
|
79
|
+
* sign with and the target is real AWS, scope-only otherwise.
|
|
80
|
+
*
|
|
81
|
+
* Signing needs a region even when the caller named none, because the scope
|
|
82
|
+
* string has a slot for one; it borrows the same `us-east-1` default that
|
|
83
|
+
* {@link serviceUrl} already used to build the host, so the signature agrees
|
|
84
|
+
* with the endpoint it is sent to.
|
|
85
|
+
*
|
|
86
|
+
* Exported because this decision — sign, or carry the scope and no signature —
|
|
87
|
+
* belongs to the lexicon's read transport rather than to any one API on it.
|
|
88
|
+
* `agentcore/trace-fetch.ts` reads `bedrock-agentcore` through the same seam,
|
|
89
|
+
* and a second copy of this would be a second place for the emulator carve-out
|
|
90
|
+
* to drift.
|
|
91
|
+
*/
|
|
92
|
+
export declare function requestHeaders(service: string, url: string, body: string, base: Record<string, string>, options: AwsReadClientOptions): Record<string, string>;
|
|
55
93
|
/**
|
|
56
94
|
* The `<Tag>text</Tag>` pairs of one XML fragment, as a flat record. Repeated
|
|
57
95
|
* tags keep the first occurrence, which is what a `<member>` body wants —
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read-client.d.ts","sourceRoot":"","sources":["../../src/api/read-client.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"read-client.d.ts","sourceRoot":"","sources":["../../src/api/read-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,OAAO,EAAmC,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAEpF,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAM1F,sFAAsF;AACtF,MAAM,MAAM,WAAW,GAAG,CACxB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAA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AKG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO,GAAG,uBAAuB,GAAG,IAAI,CAQrF;AAWD,8DAA8D;AAC9D,wBAAsB,WAAW,CAC/B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,uBAAuB,GAAG,IAAI,CAAC,CAGzC;AAED,kFAAkF;AAClF,wBAAsB,aAAa,CACjC,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAiBpC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/** SHA-256 of the empty string — the payload hash of every bodyless request. */
|
|
2
|
+
export declare const EMPTY_PAYLOAD_SHA256 = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
|
|
3
|
+
/** A resolved credential set. `sessionToken` is present for STS/role credentials. */
|
|
4
|
+
export interface AwsCredentials {
|
|
5
|
+
accessKeyId: string;
|
|
6
|
+
secretAccessKey: string;
|
|
7
|
+
sessionToken?: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The credential injection seam: a function the caller supplies to decide, by
|
|
11
|
+
* whatever means it likes, what to sign with. Returning `undefined` means "this
|
|
12
|
+
* process has no credentials" and is respected as an answer, not overridden.
|
|
13
|
+
*/
|
|
14
|
+
export type AwsCredentialResolver = () => AwsCredentials | undefined;
|
|
15
|
+
/** Either literal credentials or a resolver for them. */
|
|
16
|
+
export type AwsCredentialSource = AwsCredentials | AwsCredentialResolver;
|
|
17
|
+
/**
|
|
18
|
+
* Credentials for a request: explicit → environment → absent.
|
|
19
|
+
*
|
|
20
|
+
* A resolver function is authoritative — if one is injected and it declines,
|
|
21
|
+
* the environment is not consulted behind its back, because the point of
|
|
22
|
+
* injecting one is to control the answer. Literal credentials are likewise
|
|
23
|
+
* final. Only the no-source case falls through to `AWS_ACCESS_KEY_ID` /
|
|
24
|
+
* `AWS_SECRET_ACCESS_KEY` (plus `AWS_SESSION_TOKEN` when set), and a half-set
|
|
25
|
+
* environment — a key id with no secret — is absent rather than a signature
|
|
26
|
+
* that cannot verify.
|
|
27
|
+
*
|
|
28
|
+
* Deliberately not implemented: the profile file, IMDS, and the container
|
|
29
|
+
* credential endpoints. Each is a separate transport with its own failure and
|
|
30
|
+
* caching story; a caller that has those can resolve them itself and pass the
|
|
31
|
+
* result in, which is what the resolver seam is for.
|
|
32
|
+
*/
|
|
33
|
+
export declare function resolveCredentials(source?: AwsCredentialSource, env?: Record<string, string | undefined>): AwsCredentials | undefined;
|
|
34
|
+
/** One request to sign. `headers` are the caller's; the signer adds its own. */
|
|
35
|
+
export interface SigV4Request {
|
|
36
|
+
method: string;
|
|
37
|
+
/** Absolute URL. Its host is signed and its path/query are canonicalized. */
|
|
38
|
+
url: string;
|
|
39
|
+
headers: Record<string, string>;
|
|
40
|
+
body: string;
|
|
41
|
+
/** Service name as it appears in the credential scope (`cloudformation`, `cloudcontrolapi`, …). */
|
|
42
|
+
service: string;
|
|
43
|
+
region: string;
|
|
44
|
+
credentials: AwsCredentials;
|
|
45
|
+
/** Signing clock. Injected by tests; otherwise now. */
|
|
46
|
+
now?: Date;
|
|
47
|
+
}
|
|
48
|
+
/** `YYYYMMDDTHHMMSSZ` — the `X-Amz-Date` format, which is ISO-8601 basic. */
|
|
49
|
+
export declare function amzDate(date: Date): string;
|
|
50
|
+
/** Lowercase hex SHA-256. */
|
|
51
|
+
export declare function sha256Hex(payload: string): string;
|
|
52
|
+
/**
|
|
53
|
+
* The signing key: four chained HMACs from the secret, so the key on the wire
|
|
54
|
+
* is scoped to one day, one region and one service rather than being the
|
|
55
|
+
* account secret itself.
|
|
56
|
+
*/
|
|
57
|
+
export declare function signingKey(secretAccessKey: string, day: string, region: string, service: string): Buffer;
|
|
58
|
+
/**
|
|
59
|
+
* Header names lowercased, values trimmed with internal whitespace runs
|
|
60
|
+
* collapsed, sorted by name. Returns the canonical block and the `;`-joined
|
|
61
|
+
* signed-header list that has to agree with it exactly.
|
|
62
|
+
*/
|
|
63
|
+
export declare function canonicalHeaders(headers: Record<string, string>): {
|
|
64
|
+
canonical: string;
|
|
65
|
+
signed: string;
|
|
66
|
+
};
|
|
67
|
+
/** The canonical request, verbatim as it is hashed into the string to sign. */
|
|
68
|
+
export declare function canonicalRequest(method: string, url: URL, headers: Record<string, string>, payloadHash: string): {
|
|
69
|
+
canonical: string;
|
|
70
|
+
signed: string;
|
|
71
|
+
};
|
|
72
|
+
/** The string to sign: algorithm, timestamp, scope, hashed canonical request. */
|
|
73
|
+
export declare function stringToSign(timestamp: string, scope: string, canonical: string): string;
|
|
74
|
+
/**
|
|
75
|
+
* The caller's headers plus everything SigV4 adds: `x-amz-date`,
|
|
76
|
+
* `x-amz-content-sha256`, `x-amz-security-token` when the credentials are
|
|
77
|
+
* temporary, and the `Authorization` header itself.
|
|
78
|
+
*
|
|
79
|
+
* `host` is signed (AWS requires it) but not returned — see the module header.
|
|
80
|
+
*/
|
|
81
|
+
export declare function signRequest(request: SigV4Request): Record<string, string>;
|
|
82
|
+
//# sourceMappingURL=sigv4.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sigv4.d.ts","sourceRoot":"","sources":["../../src/api/sigv4.ts"],"names":[],"mappings":"AAkCA,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,qEAAqE,CAAC;AASvG,qFAAqF;AACrF,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,cAAc,GAAG,SAAS,CAAC;AAErE,yDAAyD;AACzD,MAAM,MAAM,mBAAmB,GAAG,cAAc,GAAG,qBAAqB,CAAC;AAEzE;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,kBA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AACjF,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAExF;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0BzE"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type AwsReadClientOptions } from "./api/read-client.js";
|
|
2
|
+
import type { ResourceMetadata } from "@intentius/chant/lexicon";
|
|
3
|
+
/**
|
|
4
|
+
* The Cloud Control identifier the declared props spell, or undefined when the
|
|
5
|
+
* type has no primary identifier on record or any part of it is absent or
|
|
6
|
+
* non-scalar (a Ref, an intrinsic, a server-assigned name). Multi-part
|
|
7
|
+
* identifiers join with `|`, Cloud Control's own separator.
|
|
8
|
+
*/
|
|
9
|
+
export declare function declaredIdentifier(entityType: string, props: Record<string, unknown>): string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Identity-read every entity the stack did not answer for and whose props
|
|
12
|
+
* spell an identifier. `already` is the stack's answer — an entity the stack
|
|
13
|
+
* DID return is never re-read. The `queried` map records the address each
|
|
14
|
+
* attempted read was issued against (#1620), whatever the verdict.
|
|
15
|
+
*/
|
|
16
|
+
export declare function observeByIdentity(entityNames: string[], entities: Map<string, {
|
|
17
|
+
entityType: string;
|
|
18
|
+
props: Record<string, unknown>;
|
|
19
|
+
}> | undefined, already: Record<string, ResourceMetadata>, client: AwsReadClientOptions): Promise<{
|
|
20
|
+
resources: Record<string, ResourceMetadata>;
|
|
21
|
+
queried: Record<string, string>;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=identity-observe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity-observe.d.ts","sourceRoot":"","sources":["../src/identity-observe.ts"],"names":[],"mappings":"AAwBA,OAAO,EAA4C,KAAK,oBAAoB,EAAgC,MAAM,mBAAmB,CAAC;AACtI,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAmBjE;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,GAAG,SAAS,CAazG;AAkCD;;;;;GAKG;AACH,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,EAAE,EACrB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,CAAC,GAAG,SAAS,EACzF,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,EACzC,MAAM,EAAE,oBAAoB,GAC3B,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC,CA4B3F"}
|
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export { output, isLexiconOutput } from "@intentius/chant/lexicon-output";
|
|
|
14
14
|
export type { LexiconOutput } from "@intentius/chant/lexicon-output";
|
|
15
15
|
export { awsPlugin } from "./plugin.js";
|
|
16
16
|
export { observeResourcesDeepAws, awsDeepNormalizationHooks, hasOwnershipMarker, DEEP_READABLE_TYPES, AWS_READ_ONLY_NAMES, AWS_SERVICE_DEFAULTS, } from "./deep-observe.js";
|
|
17
|
-
export { describeStackResources, describeStackOutputs, getResource, listResources, parseResourceDescription, AwsReadError, type AwsReadHttp, type AwsReadClientOptions, type CloudControlDescription, type StackResource, } from "./api/read-client.js";
|
|
17
|
+
export { describeStackResources, describeStackOutputs, getResource, listResources, parseResourceDescription, AwsReadError, type AwsReadHttp, type AwsReadClientOptions, type CloudControlDescription, type StackResource, type AwsCredentials, type AwsCredentialResolver, type AwsCredentialSource, } from "./api/read-client.js";
|
|
18
|
+
export { signRequest, resolveCredentials, EMPTY_PAYLOAD_SHA256, type SigV4Request, } from "./api/sigv4.js";
|
|
18
19
|
export { Sub, Ref, GetAtt, If, Join, Select, Split, Base64, GetAZs, SubIntrinsic, RefIntrinsic, GetAttIntrinsic, IfIntrinsic, JoinIntrinsic, SelectIntrinsic, SplitIntrinsic, Base64Intrinsic, GetAZsIntrinsic, } from "./intrinsics.js";
|
|
19
20
|
export { AWS, StackName, Region, AccountId, StackId, URLSuffix, NoValue, NotificationARNs, Partition, } from "./pseudo.js";
|
|
20
21
|
export * from "./generated/index.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACjF,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACzG,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACvI,YAAY,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAG9E,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtF,YAAY,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE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,mBAAmB,EAAE,oBAAoB,EACzC,qBAAqB,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,sBAAsB,GACjG,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAIrE,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAChI,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,QAAQ,EACR,SAAS,EACT,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,cAAc,CAAC"}
|
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "e495db4f244907948545188144258f5292ac32e16bc487e1671aa7f5f3d97cb2",
|
|
5
5
|
"meta.json": "2e4cae67cbc2eb2962c3dd0aa57008ae96fb725dd0118af7b04b2b44eab7722a",
|
|
6
6
|
"types/index.d.ts": "6d6b37bd14a9b40fb3ff5c66e1cb49be1ae1032de47a4e167cf5f411c943b7f5",
|
|
7
7
|
"rules/hardcoded-region.ts": "5a0eaf7ab391231fe6cd51426ece29539cb4b36f31c8dd060956638fed55722a",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"skills/chant-aws-eks.md": "8789255709ff004ad0a875fd5999edcdc66fc6e33d710db058d9f42703bcfdfe",
|
|
63
63
|
"skills/chant-aws-carve-terraform.md": "52dc7a8a10156d236266cc8dbf75614fabb6e2fa4caf31c13cca348e167a58b5"
|
|
64
64
|
},
|
|
65
|
-
"composite": "
|
|
65
|
+
"composite": "05e7e6b744115b518bd12aa3c12abd889cbb74360001bb2ec39fdfba890b3bca"
|
|
66
66
|
}
|
package/dist/manifest.json
CHANGED
|
@@ -4,9 +4,19 @@
|
|
|
4
4
|
* emulator lifecycle (`flociUp`/`flociDown`) and the native CloudFormation
|
|
5
5
|
* applier (`awsApply`), which calls the CloudFormation API directly rather than
|
|
6
6
|
* shelling `aws` — the direct twin of `azApply`/`gcpApply`.
|
|
7
|
+
*
|
|
8
|
+
* The registry keys every exported *function* here by its name, so only the
|
|
9
|
+
* activities themselves belong in this barrel. `awsAgentCoreFetchTrace`'s
|
|
10
|
+
* helpers — the normalizer, the JSON coercion, the `ListEvents` walk — stay
|
|
11
|
+
* importable from `@intentius/chant-lexicon-aws/agentcore/trace-fetch` rather
|
|
12
|
+
* than being registered as activities nobody would ever name in a step, and the
|
|
13
|
+
* pure renderer lives one module further out again, in
|
|
14
|
+
* `@intentius/chant-lexicon-aws/agentcore/trace-render`.
|
|
7
15
|
*/
|
|
8
16
|
export { flociUp, flociDown, flociRunCommand, flociRmCommand, flociExistsCommand, flociHealthUrl, flociEnv, isFlociReady, } from "./floci.js";
|
|
9
17
|
export type { FlociUpArgs, FlociDownArgs } from "./floci.js";
|
|
10
18
|
export { awsApply, awsDelete, waitForStackSettled, cfnUrl, cfnForm, capabilityParams, xmlField, stackStatus, stackId, cfnErrorMessage, isStackMissing, isNoUpdates, isSuccessStatus, isFailureStatus, isTerminalStatus, } from "./aws-apply.js";
|
|
11
19
|
export type { AwsApplyArgs, AwsHttp } from "./aws-apply.js";
|
|
20
|
+
export { awsAgentCoreFetchTrace } from "../../agentcore/trace-fetch.js";
|
|
21
|
+
export type { AgentCoreTraceSource, AwsAgentCoreFetchTraceArgs, AwsAgentCoreFetchTraceResult, } from "../../agentcore/trace-fetch.js";
|
|
12
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/op/activities/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/op/activities/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EACL,OAAO,EACP,SAAS,EACT,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,YAAY,GACb,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1D,OAAO,EACL,QAAQ,EACR,SAAS,EACT,mBAAmB,EACnB,MAAM,EACN,OAAO,EACP,gBAAgB,EAChB,QAAQ,EACR,WAAW,EACX,OAAO,EACP,eAAe,EACf,cAAc,EACd,WAAW,EACX,eAAe,EACf,eAAe,EACf,gBAAgB,GACjB,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,GAC7B,MAAM,6BAA6B,CAAC"}
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAgL,MAAM,0BAA0B,CAAC;AAqC5O;yEACyE;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAWnD,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAgL,MAAM,0BAA0B,CAAC;AAqC5O;yEACyE;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAWnD,eAAO,MAAM,SAAS,EAAE,aAw6BvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-aws",
|
|
3
|
-
"version": "0.44.
|
|
3
|
+
"version": "0.44.12",
|
|
4
4
|
"description": "AWS CloudFormation lexicon for chant — declarative IaC in TypeScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"typescript": "^5.9.3"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@intentius/chant": "^0.44.
|
|
83
|
+
"@intentius/chant": "^0.44.12",
|
|
84
84
|
"typescript": "^5.9.3"
|
|
85
85
|
}
|
|
86
86
|
}
|