@intentius/chant-lexicon-aws 0.13.1 → 0.15.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.
Files changed (86) hide show
  1. package/dist/components/__tests__/mock-cloud-executor.d.ts +106 -0
  2. package/dist/components/__tests__/mock-cloud-executor.d.ts.map +1 -0
  3. package/dist/components/apply.d.ts +242 -0
  4. package/dist/components/apply.d.ts.map +1 -0
  5. package/dist/components/builders.d.ts +37 -0
  6. package/dist/components/builders.d.ts.map +1 -0
  7. package/dist/components/capability-plugin.d.ts +23 -0
  8. package/dist/components/capability-plugin.d.ts.map +1 -0
  9. package/dist/components/cloud-executor.d.ts +350 -0
  10. package/dist/components/cloud-executor.d.ts.map +1 -0
  11. package/dist/components/config-bom.d.ts +135 -0
  12. package/dist/components/config-bom.d.ts.map +1 -0
  13. package/dist/components/host-delivery.d.ts +110 -0
  14. package/dist/components/host-delivery.d.ts.map +1 -0
  15. package/dist/components/index.d.ts +19 -0
  16. package/dist/components/index.d.ts.map +1 -0
  17. package/dist/components/job-submission.d.ts +89 -0
  18. package/dist/components/job-submission.d.ts.map +1 -0
  19. package/dist/components/publish.d.ts +194 -0
  20. package/dist/components/publish.d.ts.map +1 -0
  21. package/dist/components/safety.d.ts +49 -0
  22. package/dist/components/safety.d.ts.map +1 -0
  23. package/dist/components/wait-aws.d.ts +65 -0
  24. package/dist/components/wait-aws.d.ts.map +1 -0
  25. package/dist/generated/index.d.ts +68 -40
  26. package/dist/generated/index.d.ts.map +1 -1
  27. package/dist/import/live-export.d.ts.map +1 -1
  28. package/dist/index.d.ts +1 -0
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/integrity.json +4 -4
  31. package/dist/lint/audit-catalog.d.ts +10 -0
  32. package/dist/lint/audit-catalog.d.ts.map +1 -0
  33. package/dist/manifest.json +1 -1
  34. package/dist/meta.json +893 -737
  35. package/dist/op/activities/floci.d.ts +54 -0
  36. package/dist/op/activities/floci.d.ts.map +1 -0
  37. package/dist/op/activities/index.d.ts +8 -0
  38. package/dist/op/activities/index.d.ts.map +1 -0
  39. package/dist/ownership.d.ts +10 -0
  40. package/dist/ownership.d.ts.map +1 -0
  41. package/dist/plugin.d.ts.map +1 -1
  42. package/dist/serializer.d.ts.map +1 -1
  43. package/dist/types/index.d.ts +905 -659
  44. package/package.json +12 -2
  45. package/src/components/__fixtures__/schemas/cyclonedx-1.5.schema.json +3800 -0
  46. package/src/components/__fixtures__/schemas/cyclonedx-spdx-license.schema.json +621 -0
  47. package/src/components/__fixtures__/schemas/jsf-0.82.schema.json +240 -0
  48. package/src/components/__fixtures__/schemas/spdx-2.3.schema.json +740 -0
  49. package/src/components/__fixtures__/synthesized-template.json +53 -0
  50. package/src/components/__tests__/mock-cloud-executor.ts +425 -0
  51. package/src/components/apply.test.ts +382 -0
  52. package/src/components/apply.ts +499 -0
  53. package/src/components/builders.test.ts +49 -0
  54. package/src/components/builders.ts +59 -0
  55. package/src/components/capability-plugin.ts +73 -0
  56. package/src/components/cloud-executor.test.ts +25 -0
  57. package/src/components/cloud-executor.ts +814 -0
  58. package/src/components/config-bom.test.ts +273 -0
  59. package/src/components/config-bom.ts +310 -0
  60. package/src/components/host-delivery.test.ts +121 -0
  61. package/src/components/host-delivery.ts +193 -0
  62. package/src/components/index.ts +19 -0
  63. package/src/components/job-submission.test.ts +97 -0
  64. package/src/components/job-submission.ts +138 -0
  65. package/src/components/pilots-e2e.test.ts +460 -0
  66. package/src/components/presets-e2e.test.ts +166 -0
  67. package/src/components/publish.test.ts +318 -0
  68. package/src/components/publish.ts +356 -0
  69. package/src/components/safety.test.ts +47 -0
  70. package/src/components/safety.ts +78 -0
  71. package/src/components/wait-aws.test.ts +79 -0
  72. package/src/components/wait-aws.ts +132 -0
  73. package/src/generated/index.d.ts +905 -659
  74. package/src/generated/index.ts +79 -51
  75. package/src/generated/lexicon-aws.json +893 -737
  76. package/src/import/live-export.ts +2 -1
  77. package/src/index.ts +5 -0
  78. package/src/lint/audit-catalog.ts +45 -0
  79. package/src/lsp/completions.test.ts +4 -2
  80. package/src/op/activities/floci.test.ts +67 -0
  81. package/src/op/activities/floci.ts +149 -0
  82. package/src/op/activities/index.ts +16 -0
  83. package/src/ownership.test.ts +18 -0
  84. package/src/ownership.ts +15 -0
  85. package/src/plugin.ts +3 -0
  86. package/src/serializer.ts +2 -1
@@ -0,0 +1,54 @@
1
+ export interface FlociUpArgs {
2
+ /** Container name. Default: `chant-floci`. */
3
+ name?: string;
4
+ /** Host port mapped to the emulator's `:4566`. Default: `4566`. */
5
+ port?: number;
6
+ /** Floci image. Default: `floci/floci:latest`. */
7
+ image?: string;
8
+ /** Mount the docker socket — Floci needs it for the ECR backing registry. Default: `false`. */
9
+ dockerSocket?: boolean;
10
+ /** `AWS_REGION` exported for subsequent steps. Default: `us-east-1`. */
11
+ region?: string;
12
+ /** Service to wait for in `/_localstack/health`. Default: `cloudformation`. */
13
+ readyService?: string;
14
+ /** Readiness timeout in ms. Default: `60000`. */
15
+ timeoutMs?: number;
16
+ /** Health poll interval in ms. Default: `2000`. */
17
+ intervalMs?: number;
18
+ }
19
+ export interface FlociDownArgs {
20
+ /** Container name to remove. Default: `chant-floci`. */
21
+ name?: string;
22
+ }
23
+ /** `docker ps -q -f name=<name>` — non-empty stdout means the container is running. */
24
+ export declare function flociExistsCommand(name: string): string;
25
+ /** Build the `docker run` command that boots Floci. */
26
+ export declare function flociRunCommand(args: FlociUpArgs): string;
27
+ /** Build the `docker rm -f` command. */
28
+ export declare function flociRmCommand(name: string): string;
29
+ /** The Floci health endpoint URL for a host port. */
30
+ export declare function flociHealthUrl(port: number): string;
31
+ /** The AWS env vars that point the `aws` CLI / SDK at a local Floci endpoint. */
32
+ export declare function flociEnv(port: number, region: string): Record<string, string>;
33
+ /** True once the health body reports the required service (e.g. `"cloudformation"`). */
34
+ export declare function isFlociReady(healthBody: string, service: string): boolean;
35
+ /**
36
+ * Boot a local Floci AWS emulator in Docker and point subsequent steps at it.
37
+ *
38
+ * Idempotent: reuses a running container of the same name. Waits for the health
39
+ * endpoint to report `readyService`, then sets `AWS_ENDPOINT_URL` + test creds in
40
+ * the process environment so a following `nativeApply`/`cfn-deploy` targets the
41
+ * emulator. Env injection assumes the in-process **local executor**; under a
42
+ * distributed Temporal worker, pass the endpoint explicitly instead.
43
+ *
44
+ * Uses longInfra profile — 20m timeout, heartbeat every poll (the image may pull).
45
+ */
46
+ export declare function flociUp(args: FlociUpArgs, signal?: AbortSignal): Promise<{
47
+ endpoint: string;
48
+ }>;
49
+ /**
50
+ * Stop and remove the local Floci emulator container. A no-op success when the
51
+ * container is already gone. Uses fastIdempotent profile — 5m timeout.
52
+ */
53
+ export declare function flociDown(args: FlociDownArgs, signal?: AbortSignal): Promise<void>;
54
+ //# sourceMappingURL=floci.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"floci.d.ts","sourceRoot":"","sources":["../../../src/op/activities/floci.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,WAAW;IAC1B,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+FAA+F;IAC/F,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mDAAmD;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,aAAa;IAC5B,wDAAwD;IACxD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,uFAAuF;AACvF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,uDAAuD;AACvD,wBAAgB,eAAe,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAQzD;AAED,wCAAwC;AACxC,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,qDAAqD;AACrD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED,iFAAiF;AACjF,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAO7E;AAED,wFAAwF;AACxF,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAEzE;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC,CA+CpG;AAED;;;GAGG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAOxF"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * AWS Op activities — resolved by the core activity registry when a project's
3
+ * `chant.config.ts` lists the `aws` lexicon. Contributes the local Floci AWS
4
+ * emulator lifecycle (`flociUp`/`flociDown`).
5
+ */
6
+ export { flociUp, flociDown, flociRunCommand, flociRmCommand, flociExistsCommand, flociHealthUrl, flociEnv, isFlociReady, } from "./floci.js";
7
+ export type { FlociUpArgs, FlociDownArgs } from "./floci.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/op/activities/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;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"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The aws lexicon's ownership tag convention. AWS tag keys allow `:`, so
3
+ * chant's markers use the `chant:<name>` form (distinct from the label-based
4
+ * convention core keeps for k8s/gcp). Core owns the generic stamp/detect logic
5
+ * (@intentius/chant/ownership); this is the aws-specific key naming it stamps.
6
+ */
7
+ import type { ChannelKeys } from "@intentius/chant/ownership";
8
+ /** AWS tag keys for chant's ownership markers. */
9
+ export declare const AWS_TAG_OWNERSHIP_KEYS: ChannelKeys;
10
+ //# sourceMappingURL=ownership.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ownership.d.ts","sourceRoot":"","sources":["../src/ownership.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D,kDAAkD;AAClD,eAAO,MAAM,sBAAsB,EAAE,WAIpC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAuF,MAAM,0BAA0B,CAAC;AAmBnJ;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,aA2pBvB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAuF,MAAM,0BAA0B,CAAC;AAoBnJ;;;;;GAKG;AACH,eAAO,MAAM,SAAS,EAAE,aA6pBvB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../src/serializer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAsC,MAAM,6BAA6B,CAAC;AAqUlG;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,UAoE3B,CAAC"}
1
+ {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../src/serializer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAsC,MAAM,6BAA6B,CAAC;AAsUlG;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,UAoE3B,CAAC"}