@nautorun/nauto 0.1.0 → 0.1.1
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 +2 -2
- package/dist/commands/bay-install.d.ts +2 -0
- package/dist/commands/bay-install.d.ts.map +1 -0
- package/dist/commands/bay-install.js +293 -0
- package/dist/commands/bay-install.js.map +1 -0
- package/dist/commands/help.d.ts +1 -1
- package/dist/commands/help.d.ts.map +1 -1
- package/dist/commands/help.js +1 -1
- package/dist/main.js +4 -4
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# nauto
|
|
2
2
|
|
|
3
|
-
Nautorun CLI for scaffolding, migrations, and a
|
|
3
|
+
Nautorun CLI for scaffolding, migrations, and a Bay-like Docker environment.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
```bash
|
|
@@ -9,6 +9,6 @@ npm i -g @nautorun/nauto
|
|
|
9
9
|
|
|
10
10
|
## Use in a project
|
|
11
11
|
```bash
|
|
12
|
-
nauto
|
|
12
|
+
nauto bay:install
|
|
13
13
|
./nauto up
|
|
14
14
|
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bay-install.d.ts","sourceRoot":"","sources":["../../src/commands/bay-install.ts"],"names":[],"mappings":"AAmPA,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,iBA4B9C"}
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.installBay = installBay;
|
|
4
|
+
const promises_1 = require("node:fs/promises");
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const dockerignore = `.git
|
|
8
|
+
.github
|
|
9
|
+
.pnpm-store
|
|
10
|
+
.cache
|
|
11
|
+
.corepack
|
|
12
|
+
.bin
|
|
13
|
+
node_modules
|
|
14
|
+
dist
|
|
15
|
+
coverage
|
|
16
|
+
.env
|
|
17
|
+
.env.*
|
|
18
|
+
*.log
|
|
19
|
+
**/*.tsbuildinfo
|
|
20
|
+
`;
|
|
21
|
+
const dockerfile = `FROM node:20-bookworm-slim
|
|
22
|
+
|
|
23
|
+
ENV PNPM_HOME=/pnpm
|
|
24
|
+
ENV PATH=$PNPM_HOME:$PATH
|
|
25
|
+
|
|
26
|
+
RUN corepack enable
|
|
27
|
+
|
|
28
|
+
WORKDIR /app
|
|
29
|
+
|
|
30
|
+
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
|
|
31
|
+
COPY tsconfig.base.json tsconfig.tsbuildinfo ./
|
|
32
|
+
COPY apps ./apps
|
|
33
|
+
COPY packages ./packages
|
|
34
|
+
COPY db ./db
|
|
35
|
+
COPY docs ./docs
|
|
36
|
+
COPY *.md ./
|
|
37
|
+
|
|
38
|
+
RUN pnpm install --frozen-lockfile
|
|
39
|
+
`;
|
|
40
|
+
const compose = `version: "3.9"
|
|
41
|
+
|
|
42
|
+
services:
|
|
43
|
+
postgres:
|
|
44
|
+
image: postgres:16-alpine
|
|
45
|
+
container_name: nautorun-postgres
|
|
46
|
+
environment:
|
|
47
|
+
POSTGRES_USER: \${POSTGRES_USER:-nautorun}
|
|
48
|
+
POSTGRES_PASSWORD: \${POSTGRES_PASSWORD:-nautorun}
|
|
49
|
+
POSTGRES_DB: \${POSTGRES_DB:-nautorun}
|
|
50
|
+
ports:
|
|
51
|
+
- "\${POSTGRES_PORT:-5432}:5432"
|
|
52
|
+
volumes:
|
|
53
|
+
- nautorun-postgres:/var/lib/postgresql/data
|
|
54
|
+
healthcheck:
|
|
55
|
+
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
|
|
56
|
+
interval: 5s
|
|
57
|
+
timeout: 3s
|
|
58
|
+
retries: 10
|
|
59
|
+
|
|
60
|
+
redis:
|
|
61
|
+
image: redis:7-alpine
|
|
62
|
+
container_name: nautorun-redis
|
|
63
|
+
ports:
|
|
64
|
+
- "\${REDIS_PORT:-6379}:6379"
|
|
65
|
+
volumes:
|
|
66
|
+
- nautorun-redis:/data
|
|
67
|
+
healthcheck:
|
|
68
|
+
test: ["CMD", "redis-cli", "ping"]
|
|
69
|
+
interval: 5s
|
|
70
|
+
timeout: 3s
|
|
71
|
+
retries: 10
|
|
72
|
+
|
|
73
|
+
api:
|
|
74
|
+
build:
|
|
75
|
+
context: .
|
|
76
|
+
dockerfile: Dockerfile.nauto
|
|
77
|
+
container_name: nautorun-api
|
|
78
|
+
command: pnpm --filter @nautorun/api dev
|
|
79
|
+
environment:
|
|
80
|
+
DATABASE_URL: \${DATABASE_URL:-postgres://nautorun:nautorun@postgres:5432/nautorun}
|
|
81
|
+
REDIS_URL: \${REDIS_URL:-redis://redis:6379}
|
|
82
|
+
PORT: \${PORT:-3333}
|
|
83
|
+
ports:
|
|
84
|
+
- "\${PORT:-3333}:3333"
|
|
85
|
+
depends_on:
|
|
86
|
+
postgres:
|
|
87
|
+
condition: service_healthy
|
|
88
|
+
redis:
|
|
89
|
+
condition: service_healthy
|
|
90
|
+
volumes:
|
|
91
|
+
- .:/app
|
|
92
|
+
- nautorun-pnpm-store:/pnpm/store
|
|
93
|
+
- /app/node_modules
|
|
94
|
+
|
|
95
|
+
worker:
|
|
96
|
+
build:
|
|
97
|
+
context: .
|
|
98
|
+
dockerfile: Dockerfile.nauto
|
|
99
|
+
container_name: nautorun-worker
|
|
100
|
+
command: pnpm --filter @nautorun/worker dev
|
|
101
|
+
environment:
|
|
102
|
+
DATABASE_URL: \${DATABASE_URL:-postgres://nautorun:nautorun@postgres:5432/nautorun}
|
|
103
|
+
REDIS_URL: \${REDIS_URL:-redis://redis:6379}
|
|
104
|
+
OUTBOX_HANDLER_MODULES: \${OUTBOX_HANDLER_MODULES:-/app/apps/worker/src/outbox-handlers.ts}
|
|
105
|
+
depends_on:
|
|
106
|
+
postgres:
|
|
107
|
+
condition: service_healthy
|
|
108
|
+
redis:
|
|
109
|
+
condition: service_healthy
|
|
110
|
+
volumes:
|
|
111
|
+
- .:/app
|
|
112
|
+
- nautorun-pnpm-store:/pnpm/store
|
|
113
|
+
- /app/node_modules
|
|
114
|
+
|
|
115
|
+
tooling:
|
|
116
|
+
build:
|
|
117
|
+
context: .
|
|
118
|
+
dockerfile: Dockerfile.nauto
|
|
119
|
+
container_name: nautorun-tooling
|
|
120
|
+
command: ["sleep", "infinity"]
|
|
121
|
+
environment:
|
|
122
|
+
DATABASE_URL: \${DATABASE_URL:-postgres://nautorun:nautorun@postgres:5432/nautorun}
|
|
123
|
+
REDIS_URL: \${REDIS_URL:-redis://redis:6379}
|
|
124
|
+
depends_on:
|
|
125
|
+
postgres:
|
|
126
|
+
condition: service_healthy
|
|
127
|
+
redis:
|
|
128
|
+
condition: service_healthy
|
|
129
|
+
volumes:
|
|
130
|
+
- .:/app
|
|
131
|
+
- nautorun-pnpm-store:/pnpm/store
|
|
132
|
+
- /app/node_modules
|
|
133
|
+
tty: true
|
|
134
|
+
stdin_open: true
|
|
135
|
+
|
|
136
|
+
volumes:
|
|
137
|
+
nautorun-postgres:
|
|
138
|
+
nautorun-redis:
|
|
139
|
+
nautorun-pnpm-store:
|
|
140
|
+
`;
|
|
141
|
+
const envExample = `POSTGRES_USER=nautorun
|
|
142
|
+
POSTGRES_PASSWORD=nautorun
|
|
143
|
+
POSTGRES_DB=nautorun
|
|
144
|
+
POSTGRES_PORT=5432
|
|
145
|
+
|
|
146
|
+
REDIS_PORT=6379
|
|
147
|
+
|
|
148
|
+
DATABASE_URL=postgres://nautorun:nautorun@postgres:5432/nautorun
|
|
149
|
+
REDIS_URL=redis://redis:6379
|
|
150
|
+
PORT=3333
|
|
151
|
+
|
|
152
|
+
OUTBOX_HANDLER_MODULES=/app/apps/worker/src/outbox-handlers.ts
|
|
153
|
+
`;
|
|
154
|
+
const wrapper = `#!/usr/bin/env bash
|
|
155
|
+
set -euo pipefail
|
|
156
|
+
|
|
157
|
+
COMPOSE_FILE="\${NAUTO_COMPOSE_FILE:-docker-compose.yml}"
|
|
158
|
+
COMPOSE_BIN="\${NAUTO_COMPOSE_BIN:-docker compose}"
|
|
159
|
+
|
|
160
|
+
if [[ ! -f "$COMPOSE_FILE" ]]; then
|
|
161
|
+
echo "Compose file not found: $COMPOSE_FILE" >&2
|
|
162
|
+
exit 1
|
|
163
|
+
fi
|
|
164
|
+
|
|
165
|
+
usage() {
|
|
166
|
+
cat <<'EOF'
|
|
167
|
+
Usage: ./nauto <command> [args...]
|
|
168
|
+
|
|
169
|
+
Common commands:
|
|
170
|
+
up Start containers (detached)
|
|
171
|
+
down Stop containers
|
|
172
|
+
build Build images
|
|
173
|
+
ps Show container status
|
|
174
|
+
logs [svc] Tail logs
|
|
175
|
+
shell [svc] Shell into service (default: tooling)
|
|
176
|
+
exec <svc> <cmd> Execute a command in a service
|
|
177
|
+
pnpm <args...> Run pnpm in tooling container
|
|
178
|
+
nauto <args...> Run the nauto CLI in tooling container
|
|
179
|
+
migrate Run db:migrate via nauto CLI
|
|
180
|
+
|
|
181
|
+
Pass-through:
|
|
182
|
+
Any other command is forwarded to docker compose.
|
|
183
|
+
EOF
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if [[ "\${1:-}" == "" ]]; then
|
|
187
|
+
usage
|
|
188
|
+
exit 1
|
|
189
|
+
fi
|
|
190
|
+
|
|
191
|
+
cmd="$1"
|
|
192
|
+
shift || true
|
|
193
|
+
|
|
194
|
+
case "$cmd" in
|
|
195
|
+
up)
|
|
196
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" up -d "$@"
|
|
197
|
+
;;
|
|
198
|
+
down)
|
|
199
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" down "$@"
|
|
200
|
+
;;
|
|
201
|
+
build)
|
|
202
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" build "$@"
|
|
203
|
+
;;
|
|
204
|
+
ps|start|stop|restart)
|
|
205
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" "$cmd" "$@"
|
|
206
|
+
;;
|
|
207
|
+
logs)
|
|
208
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" logs -f "$@"
|
|
209
|
+
;;
|
|
210
|
+
shell)
|
|
211
|
+
service="\${1:-tooling}"
|
|
212
|
+
shift || true
|
|
213
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" exec "$service" "\${SHELL:-/bin/sh}" "$@"
|
|
214
|
+
;;
|
|
215
|
+
exec)
|
|
216
|
+
if [[ "\${1:-}" == "" ]]; then
|
|
217
|
+
echo "Usage: ./nauto exec <service> <cmd> [args...]" >&2
|
|
218
|
+
exit 1
|
|
219
|
+
fi
|
|
220
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" exec "$@"
|
|
221
|
+
;;
|
|
222
|
+
pnpm)
|
|
223
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" exec tooling pnpm "$@"
|
|
224
|
+
;;
|
|
225
|
+
nauto)
|
|
226
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" exec tooling pnpm --filter nauto exec nauto "$@"
|
|
227
|
+
;;
|
|
228
|
+
migrate)
|
|
229
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" exec tooling pnpm --filter nauto exec nauto db:migrate
|
|
230
|
+
;;
|
|
231
|
+
*)
|
|
232
|
+
$COMPOSE_BIN -f "$COMPOSE_FILE" "$cmd" "$@"
|
|
233
|
+
;;
|
|
234
|
+
esac
|
|
235
|
+
`;
|
|
236
|
+
async function installBay(args) {
|
|
237
|
+
const options = parseOptions(args);
|
|
238
|
+
const targetDir = options.targetDir;
|
|
239
|
+
await (0, promises_1.mkdir)(targetDir, { recursive: true });
|
|
240
|
+
const tasks = [
|
|
241
|
+
writeIfMissing((0, node_path_1.join)(targetDir, ".dockerignore"), dockerignore, options.force),
|
|
242
|
+
writeIfMissing((0, node_path_1.join)(targetDir, "Dockerfile.nauto"), dockerfile, options.force),
|
|
243
|
+
writeIfMissing((0, node_path_1.join)(targetDir, "docker-compose.yml"), compose, options.force),
|
|
244
|
+
writeIfMissing((0, node_path_1.join)(targetDir, ".env.example"), envExample, options.force),
|
|
245
|
+
writeIfMissing((0, node_path_1.join)(targetDir, "nauto"), wrapper, options.force)
|
|
246
|
+
];
|
|
247
|
+
const results = await Promise.all(tasks);
|
|
248
|
+
for (const result of results) {
|
|
249
|
+
if (result.written) {
|
|
250
|
+
process.stdout.write(`Created ${result.path}\n`);
|
|
251
|
+
if ((0, node_path_1.basename)(result.path) === "nauto") {
|
|
252
|
+
await (0, promises_1.chmod)(result.path, 0o755);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
process.stdout.write(`Skipped ${result.path} (exists)\n`);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
process.stdout.write("Done.\n");
|
|
260
|
+
}
|
|
261
|
+
function parseOptions(args) {
|
|
262
|
+
let force = false;
|
|
263
|
+
let targetDir = process.cwd();
|
|
264
|
+
for (const arg of args) {
|
|
265
|
+
if (arg === "--force") {
|
|
266
|
+
force = true;
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
if (arg.startsWith("--path=")) {
|
|
270
|
+
targetDir = arg.slice("--path=".length);
|
|
271
|
+
continue;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return { force, targetDir };
|
|
275
|
+
}
|
|
276
|
+
async function writeIfMissing(path, contents, force) {
|
|
277
|
+
const exists = await fileExists(path);
|
|
278
|
+
if (exists && !force) {
|
|
279
|
+
return { path, written: false };
|
|
280
|
+
}
|
|
281
|
+
await (0, promises_1.writeFile)(path, contents, "utf8");
|
|
282
|
+
return { path, written: true };
|
|
283
|
+
}
|
|
284
|
+
async function fileExists(path) {
|
|
285
|
+
try {
|
|
286
|
+
await (0, promises_1.access)(path, node_fs_1.constants.F_OK);
|
|
287
|
+
return true;
|
|
288
|
+
}
|
|
289
|
+
catch {
|
|
290
|
+
return false;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
//# sourceMappingURL=bay-install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bay-install.js","sourceRoot":"","sources":["../../src/commands/bay-install.ts"],"names":[],"mappings":";;AAmPA,gCA4BC;AA/QD,+CAAmE;AACnE,qCAAmD;AACnD,yCAA2C;AAO3C,MAAM,YAAY,GAAG;;;;;;;;;;;;;CAapB,CAAC;AAEF,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;CAkBlB,CAAC;AAEF,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGf,CAAC;AAEF,MAAM,UAAU,GAAG;;;;;;;;;;;;CAYlB,CAAC;AAEF,MAAM,OAAO,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFf,CAAC;AAEK,KAAK,UAAU,UAAU,CAAC,IAAc;IAC7C,MAAM,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACnC,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAEpC,MAAM,IAAA,gBAAK,EAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5C,MAAM,KAAK,GAAG;QACZ,cAAc,CAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,eAAe,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,KAAK,CAAC;QAC7E,cAAc,CAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,kBAAkB,CAAC,EAAE,UAAU,EAAE,OAAO,CAAC,KAAK,CAAC;QAC9E,cAAc,CAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,oBAAoB,CAAC,EAAE,OAAO,EA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AAS,CAAC,MAAM,CAAC,CAAC;YACxC,SAAS;QACX,CAAC;IACH,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AAC9B,CAAC;AAED,KAAK,UAAU,cAAc,CAAC,IAAY,EAAE,QAAgB,EAAE,KAAc;IAC1E,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,CAAC;IACtC,IAAI,MAAM,IAAI,CAAC,KAAK,EAAE,CAAC;QACrB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IAClC,CAAC;IACD,MAAM,IAAA,oBAAS,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACxC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AACjC,CAAC;AAED,KAAK,UAAU,UAAU,CAAC,IAAY;IACpC,IAAI,CAAC;QACH,MAAM,IAAA,iBAAM,EAAC,IAAI,EAAE,mBAAW,CAAC,IAAI,CAAC,CAAC;QACrC,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
package/dist/commands/help.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const helpText = "\nnauto - Nautorun CLI\n\nUsage:\n nauto help\n nauto make:workflow <Name>\n nauto make:step <Name>\n nauto db:migrate\n nauto
|
|
1
|
+
export declare const helpText = "\nnauto - Nautorun CLI\n\nUsage:\n nauto help\n nauto make:workflow <Name>\n nauto make:step <Name>\n nauto db:migrate\n nauto bay:install [--force] [--path=<dir>]\n nauto queue:worker\n nauto queue:replay [limit] [workflowName]\n";
|
|
2
2
|
//# sourceMappingURL=help.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../src/commands/help.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,kPAWpB,CAAC"}
|
package/dist/commands/help.js
CHANGED
package/dist/main.js
CHANGED
|
@@ -7,7 +7,7 @@ const queue_worker_1 = require("./commands/queue-worker");
|
|
|
7
7
|
const queue_replay_1 = require("./commands/queue-replay");
|
|
8
8
|
const make_workflow_1 = require("./commands/make-workflow");
|
|
9
9
|
const make_step_1 = require("./commands/make-step");
|
|
10
|
-
const
|
|
10
|
+
const bay_install_1 = require("./commands/bay-install");
|
|
11
11
|
function run(args) {
|
|
12
12
|
const command = args[0] ?? "help";
|
|
13
13
|
switch (command) {
|
|
@@ -38,9 +38,9 @@ function run(args) {
|
|
|
38
38
|
case "make:step":
|
|
39
39
|
(0, make_step_1.makeStep)(args[1]);
|
|
40
40
|
break;
|
|
41
|
-
case "
|
|
42
|
-
(0,
|
|
43
|
-
process.stderr.write(`
|
|
41
|
+
case "bay:install":
|
|
42
|
+
(0, bay_install_1.installBay)(args.slice(1)).catch((error) => {
|
|
43
|
+
process.stderr.write(`Bay install failed: ${error instanceof Error ? error.message : error}\n`);
|
|
44
44
|
process.exit(1);
|
|
45
45
|
});
|
|
46
46
|
break;
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAQA,kBAiDC;AAzDD,0CAA2C;AAC3C,sDAAsD;AACtD,0DAAoD;AACpD,0DAAoD;AACpD,4DAAwD;AACxD,oDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;AAQA,kBAiDC;AAzDD,0CAA2C;AAC3C,sDAAsD;AACtD,0DAAoD;AACpD,0DAAoD;AACpD,4DAAwD;AACxD,oDAAgD;AAChD,wDAAoD;AAEpD,SAAgB,GAAG,CAAC,IAAc;IACh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