alchemy 0.1.3 → 0.1.5
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/package.json +5 -2
- package/src/alchemize.ts +0 -8
- package/src/aws/auto/cfn.json +225310 -0
- package/src/aws/auto/docs.ts +73 -0
- package/src/aws/auto/index.ts +4 -0
- package/src/aws/auto/resource.ts +269 -0
- package/src/aws/auto/service.ts +51 -0
- package/src/aws/auto/spec.ts +160 -0
- package/src/markdown/design.ts +2 -2
- package/src/stripe/price.ts +244 -0
- package/src/stripe/product.ts +193 -0
- package/src/stripe/webhook.ts +184 -0
- package/src/typescript/install-dependencies.ts +61 -0
- package/test/aws/function.test.ts +4 -4
- package/test/aws/queue.test.ts +1 -1
- package/test/aws/role.test.ts +2 -2
- package/test/aws/table.test.ts +1 -1
- package/test/esbuild.test.ts +1 -1
- package/test/scope.test.ts +3 -3
- package/test/stripe/stripe.test.ts +136 -0
- package/README.md +0 -324
- package/src/typescript/install-packages.ts +0 -50
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alchemy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"module": "index.ts",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"publish": "cp ../README.md ./README.md && npm publish && rm ./README.md"
|
|
7
|
+
"publish:npm": "cp ../README.md ./README.md && npm publish && rm ./README.md"
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
10
10
|
".": "./src/index.ts",
|
|
11
11
|
"./agent": "./src/agent/index.ts",
|
|
12
12
|
"./aws": "./src/aws/index.ts",
|
|
13
|
+
"./aws/auto": "./src/aws/auto/index.ts",
|
|
13
14
|
"./esbuild": "./src/esbuild.ts",
|
|
14
15
|
"./markdown": "./src/markdown/index.ts",
|
|
15
16
|
"./fs": "./src/fs.ts",
|
|
17
|
+
"./stripe": "./src/stripe/index.ts",
|
|
16
18
|
"./typescript": "./src/typescript/index.ts"
|
|
17
19
|
},
|
|
18
20
|
"devDependencies": {
|
|
@@ -29,6 +31,7 @@
|
|
|
29
31
|
"ai": "^4.1.16",
|
|
30
32
|
"diff": "^7.0.0",
|
|
31
33
|
"jszip": "^3.0.0",
|
|
34
|
+
"stripe": "^17.7.0",
|
|
32
35
|
"esbuild": "^0.24.2",
|
|
33
36
|
"turndown": "^7.2.0",
|
|
34
37
|
"zod": "^3.24.1"
|
package/src/alchemize.ts
CHANGED
|
@@ -91,10 +91,6 @@ export async function alchemize(options?: AlchemizeOptions) {
|
|
|
91
91
|
|
|
92
92
|
const orphanIDs = Array.from(priorIDs).filter((id) => !aliveIDs.has(id));
|
|
93
93
|
|
|
94
|
-
console.log("orphanIDs", orphanIDs);
|
|
95
|
-
console.log("priorIDs", priorIDs);
|
|
96
|
-
console.log("aliveIDs", aliveIDs);
|
|
97
|
-
|
|
98
94
|
const orphanStates = Object.fromEntries(
|
|
99
95
|
orphanIDs.map((id) => [id, priorStates[id]] as const),
|
|
100
96
|
);
|
|
@@ -106,10 +102,6 @@ export async function alchemize(options?: AlchemizeOptions) {
|
|
|
106
102
|
(orphanGraph[dep] ??= new Set()).add(orphanID);
|
|
107
103
|
}
|
|
108
104
|
}
|
|
109
|
-
if (Object.keys(orphanGraph).length > 0) {
|
|
110
|
-
console.log(stateStore.path);
|
|
111
|
-
console.log(orphanGraph);
|
|
112
|
-
}
|
|
113
105
|
|
|
114
106
|
// Start deletion from each orphan that has no dependents (nothing depends on it)
|
|
115
107
|
await Promise.all(
|