alchemy 0.70.0 → 0.70.2
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/bin/alchemy.js +97 -60
- package/bin/alchemy.ts +2 -0
- package/bin/commands/telemetry.ts +33 -0
- package/bin/services/execute-alchemy.ts +7 -0
- package/lib/alchemy.d.ts +4 -0
- package/lib/alchemy.d.ts.map +1 -1
- package/lib/alchemy.js +1 -0
- package/lib/alchemy.js.map +1 -1
- package/lib/clickhouse/organization.d.ts +1 -1
- package/lib/clickhouse/organization.js +2 -2
- package/lib/clickhouse/organization.js.map +1 -1
- package/lib/clickhouse/service.d.ts +28 -18
- package/lib/clickhouse/service.d.ts.map +1 -1
- package/lib/clickhouse/service.js +61 -9
- package/lib/clickhouse/service.js.map +1 -1
- package/lib/cloudflare/account-api-token.js +1 -1
- package/lib/cloudflare/account-api-token.js.map +1 -1
- package/lib/cloudflare/api.d.ts.map +1 -1
- package/lib/cloudflare/api.js +2 -0
- package/lib/cloudflare/api.js.map +1 -1
- package/lib/cloudflare/bun-spa/bun-spa.d.ts +6 -8
- package/lib/cloudflare/bun-spa/bun-spa.d.ts.map +1 -1
- package/lib/cloudflare/bun-spa/bun-spa.js +3 -3
- package/lib/cloudflare/bun-spa/bun-spa.js.map +1 -1
- package/lib/cloudflare/d1-database.d.ts +1 -1
- package/lib/cloudflare/d1-database.d.ts.map +1 -1
- package/lib/cloudflare/d1-database.js +1 -1
- package/lib/cloudflare/d1-database.js.map +1 -1
- package/lib/cloudflare/miniflare/build-worker-options.d.ts.map +1 -1
- package/lib/cloudflare/miniflare/build-worker-options.js +30 -3
- package/lib/cloudflare/miniflare/build-worker-options.js.map +1 -1
- package/lib/cloudflare/permission-groups.d.ts +1489 -26
- package/lib/cloudflare/permission-groups.d.ts.map +1 -1
- package/lib/cloudflare/permission-groups.js +1787 -6
- package/lib/cloudflare/permission-groups.js.map +1 -1
- package/lib/cloudflare/worker-metadata.d.ts +14 -2
- package/lib/cloudflare/worker-metadata.d.ts.map +1 -1
- package/lib/cloudflare/worker-metadata.js +4 -1
- package/lib/cloudflare/worker-metadata.js.map +1 -1
- package/lib/cloudflare/worker-stub.d.ts +3 -1
- package/lib/cloudflare/worker-stub.d.ts.map +1 -1
- package/lib/cloudflare/worker-stub.js +19 -7
- package/lib/cloudflare/worker-stub.js.map +1 -1
- package/lib/cloudflare/worker.d.ts +74 -10
- package/lib/cloudflare/worker.d.ts.map +1 -1
- package/lib/cloudflare/worker.js +16 -7
- package/lib/cloudflare/worker.js.map +1 -1
- package/lib/scope.d.ts +5 -0
- package/lib/scope.d.ts.map +1 -1
- package/lib/scope.js +3 -1
- package/lib/scope.js.map +1 -1
- package/lib/util/camel-to-snake.d.ts +12 -0
- package/lib/util/camel-to-snake.d.ts.map +1 -0
- package/lib/util/camel-to-snake.js +16 -0
- package/lib/util/camel-to-snake.js.map +1 -0
- package/lib/util/idempotent-spawn.js +1 -1
- package/lib/util/idempotent-spawn.js.map +1 -1
- package/lib/util/telemetry.d.ts +3 -2
- package/lib/util/telemetry.d.ts.map +1 -1
- package/lib/util/telemetry.js +34 -10
- package/lib/util/telemetry.js.map +1 -1
- package/package.json +1 -1
- package/src/alchemy.ts +5 -0
- package/src/clickhouse/organization.ts +2 -2
- package/src/clickhouse/service.ts +124 -33
- package/src/cloudflare/account-api-token.ts +1 -1
- package/src/cloudflare/api.ts +2 -0
- package/src/cloudflare/bun-spa/bun-spa.ts +5 -9
- package/src/cloudflare/d1-database.ts +2 -2
- package/src/cloudflare/miniflare/build-worker-options.ts +32 -4
- package/src/cloudflare/permission-groups.ts +1832 -45
- package/src/cloudflare/worker-metadata.ts +20 -3
- package/src/cloudflare/worker-stub.ts +28 -11
- package/src/cloudflare/worker.ts +98 -17
- package/src/scope.ts +7 -0
- package/src/util/camel-to-snake.ts +88 -0
- package/src/util/idempotent-spawn.ts +1 -1
- package/src/util/telemetry.ts +41 -10
- package/templates/tanstack-start/package.json +2 -2
- package/workers/tunnel-proxy.js +1 -1
package/bin/alchemy.js
CHANGED
|
@@ -11,7 +11,7 @@ import * as g from "node:readline";
|
|
|
11
11
|
import O from "node:readline";
|
|
12
12
|
import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
|
|
13
13
|
import pc from "picocolors";
|
|
14
|
-
import fs$1, { access, constants
|
|
14
|
+
import fs$1, { access, constants } from "node:fs/promises";
|
|
15
15
|
import os, { constants as constants$1 } from "node:os";
|
|
16
16
|
import lockfile from "proper-lockfile";
|
|
17
17
|
import crypto$1, { createHash } from "node:crypto";
|
|
@@ -36733,7 +36733,7 @@ function envPaths(name$1, { suffix = "nodejs" } = {}) {
|
|
|
36733
36733
|
//#endregion
|
|
36734
36734
|
//#region package.json
|
|
36735
36735
|
var name = "alchemy";
|
|
36736
|
-
var version = "0.70.
|
|
36736
|
+
var version = "0.70.2";
|
|
36737
36737
|
var license = "Apache-2.0";
|
|
36738
36738
|
var author = "Sam Goodwin <sam@alchemy.run>";
|
|
36739
36739
|
var homepage = "https://alchemy.run";
|
|
@@ -37048,26 +37048,38 @@ const logger = new Proxy({}, { get: (_$2, prop) => {
|
|
|
37048
37048
|
|
|
37049
37049
|
//#endregion
|
|
37050
37050
|
//#region src/util/telemetry.ts
|
|
37051
|
-
const
|
|
37052
|
-
const
|
|
37051
|
+
const ALCHEMY_DIR = path$1.join(os.homedir(), ".alchemy");
|
|
37052
|
+
const ID_PATH = path$1.join(ALCHEMY_DIR, "id");
|
|
37053
|
+
const ID_PATH_LEGACY = path$1.join(envPaths("alchemy", { suffix: "" }).config, "id");
|
|
37054
|
+
const DISABLED_PATH = path$1.join(ALCHEMY_DIR, "telemetry-disabled");
|
|
37053
37055
|
const TELEMETRY_DISABLED = !!process.env.ALCHEMY_TELEMETRY_DISABLED || !!process.env.DO_NOT_TRACK;
|
|
37054
37056
|
const TELEMETRY_API_URL = process.env.ALCHEMY_TELEMETRY_API_URL ?? "https://telemetry.alchemy.run";
|
|
37055
37057
|
const SUPPRESS_TELEMETRY_ERRORS = !!process.env.ALCHEMY_TELEMETRY_SUPPRESS_ERRORS;
|
|
37058
|
+
const getGlobalTelemetryDisabled = memoize(async () => {
|
|
37059
|
+
return await fs$1.readFile(DISABLED_PATH, "utf-8").then((data) => data.trim() === "true").catch(() => false);
|
|
37060
|
+
});
|
|
37061
|
+
async function setGlobalTelemetryDisabled() {
|
|
37062
|
+
await fs$1.mkdir(ALCHEMY_DIR, { recursive: true });
|
|
37063
|
+
await fs$1.writeFile(DISABLED_PATH, "true");
|
|
37064
|
+
}
|
|
37065
|
+
async function setGlobalTelemetryEnabled() {
|
|
37066
|
+
await fs$1.rm(DISABLED_PATH, { force: true });
|
|
37067
|
+
}
|
|
37056
37068
|
async function getOrCreateUserId() {
|
|
37057
37069
|
async function readUserId(path$33) {
|
|
37058
37070
|
try {
|
|
37059
|
-
return (await readFile(path$33, "utf-8")).trim();
|
|
37071
|
+
return (await fs$1.readFile(path$33, "utf-8")).trim();
|
|
37060
37072
|
} catch {
|
|
37061
37073
|
return null;
|
|
37062
37074
|
}
|
|
37063
37075
|
}
|
|
37064
|
-
const id = await readUserId(
|
|
37076
|
+
const id = await readUserId(ID_PATH);
|
|
37065
37077
|
if (id) return id;
|
|
37066
|
-
const legacyId = await readUserId(
|
|
37078
|
+
const legacyId = await readUserId(ID_PATH_LEGACY);
|
|
37067
37079
|
try {
|
|
37068
37080
|
const id$1 = legacyId ?? crypto.randomUUID();
|
|
37069
|
-
await
|
|
37070
|
-
await writeFile(
|
|
37081
|
+
await fs$1.mkdir(ALCHEMY_DIR, { recursive: true });
|
|
37082
|
+
await fs$1.writeFile(ID_PATH, id$1);
|
|
37071
37083
|
if (!legacyId) console.warn(["Attention: To help improve Alchemy, we collect anonymous usage, performance, and error data.", "You can opt out by setting the ALCHEMY_TELEMETRY_DISABLED or DO_NOT_TRACK environment variable to a truthy value."].join("\n"));
|
|
37072
37084
|
return id$1;
|
|
37073
37085
|
} catch {
|
|
@@ -37076,7 +37088,8 @@ async function getOrCreateUserId() {
|
|
|
37076
37088
|
}
|
|
37077
37089
|
async function getRootCommitHash() {
|
|
37078
37090
|
return new Promise((resolve$1) => {
|
|
37079
|
-
|
|
37091
|
+
const command = process.platform === "win32" ? `git rev-list --max-parents=0 HEAD | ForEach-Object { if (-not (git cat-file -p $_ | Select-String "^parent ")) { $_ } }` : `git rev-list --max-parents=0 HEAD | xargs -r -I{} sh -c 'git cat-file -p {} | grep -q "^parent " || echo {}'`;
|
|
37092
|
+
exec(command, (err, stdout$1) => {
|
|
37080
37093
|
if (err) {
|
|
37081
37094
|
resolve$1(null);
|
|
37082
37095
|
return;
|
|
@@ -37203,8 +37216,11 @@ const collectData = memoize(async () => {
|
|
|
37203
37216
|
alchemyVersion: package_default.version
|
|
37204
37217
|
};
|
|
37205
37218
|
});
|
|
37219
|
+
async function isTelemetryDisabled() {
|
|
37220
|
+
return Scope.getScope()?.noTrack || TELEMETRY_DISABLED || await getGlobalTelemetryDisabled();
|
|
37221
|
+
}
|
|
37206
37222
|
async function createAndSendEvent(data, error$83) {
|
|
37207
|
-
if (
|
|
37223
|
+
if (await isTelemetryDisabled()) return;
|
|
37208
37224
|
try {
|
|
37209
37225
|
const eventData = {
|
|
37210
37226
|
...data,
|
|
@@ -37469,7 +37485,7 @@ async function idempotentSpawn({ cmd, cwd: cwd$1, env: env$2, stateFile = "state
|
|
|
37469
37485
|
shell: true,
|
|
37470
37486
|
cwd: cwd$1,
|
|
37471
37487
|
stdio: [
|
|
37472
|
-
"
|
|
37488
|
+
"inherit",
|
|
37473
37489
|
out.fd,
|
|
37474
37490
|
out.fd
|
|
37475
37491
|
],
|
|
@@ -37680,6 +37696,7 @@ var Scope = class Scope {
|
|
|
37680
37696
|
rootDir;
|
|
37681
37697
|
dotAlchemy;
|
|
37682
37698
|
isSelected;
|
|
37699
|
+
profile;
|
|
37683
37700
|
providerCredentials;
|
|
37684
37701
|
isErrored = false;
|
|
37685
37702
|
isSkipped = false;
|
|
@@ -37692,7 +37709,7 @@ var Scope = class Scope {
|
|
|
37692
37709
|
return this.scopeName;
|
|
37693
37710
|
}
|
|
37694
37711
|
constructor(options) {
|
|
37695
|
-
const { scopeName, parent, stage, password, stateStore, quiet, phase, local, watch: watch$1, tunnel, force: force$1, destroyStrategy, logger: logger$1, adopt: adopt$1, dotAlchemy, rootDir, isSelected, noTrack,...providerCredentials } = options;
|
|
37712
|
+
const { scopeName, parent, stage, password, stateStore, quiet, phase, local, watch: watch$1, tunnel, force: force$1, destroyStrategy, logger: logger$1, adopt: adopt$1, dotAlchemy, rootDir, isSelected, noTrack, profile,...providerCredentials } = options;
|
|
37696
37713
|
this.scopeName = scopeName;
|
|
37697
37714
|
this.name = this.scopeName;
|
|
37698
37715
|
this.parent = parent ?? Scope.getScope();
|
|
@@ -37703,6 +37720,7 @@ var Scope = class Scope {
|
|
|
37703
37720
|
const isChild = this.parent !== void 0;
|
|
37704
37721
|
if (this.scopeName?.includes(":") && isChild) throw new Error(`Scope name "${this.scopeName}" cannot contain double colons`);
|
|
37705
37722
|
this.stage = stage ?? this.parent?.stage ?? DEFAULT_STAGE;
|
|
37723
|
+
this.profile = profile ?? this.parent?.profile;
|
|
37706
37724
|
this.parent?.children.set(this.scopeName, this);
|
|
37707
37725
|
this.quiet = quiet ?? this.parent?.quiet ?? false;
|
|
37708
37726
|
if (this.parent && !this.scopeName) throw new Error("Scope name is required when creating a child scope");
|
|
@@ -38244,6 +38262,7 @@ async function _alchemy(appName, options) {
|
|
|
38244
38262
|
password: process.env.ALCHEMY_PASSWORD,
|
|
38245
38263
|
adopt: cliArgs.includes("--adopt"),
|
|
38246
38264
|
rootDir: path.resolve(parseOption("--root-dir", ALCHEMY_ROOT)),
|
|
38265
|
+
profile: parseOption("--profile"),
|
|
38247
38266
|
...options
|
|
38248
38267
|
};
|
|
38249
38268
|
if (mergedOptions.stateStore === void 0 && process.env.CI && process.env.ALCHEMY_CI_STATE_STORE_CHECK !== "false") throw new Error(`You are running Alchemy in a CI environment with the default local state store.
|
|
@@ -40261,8 +40280,8 @@ var require_graceful_fs = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/g
|
|
|
40261
40280
|
fs$36.createReadStream = createReadStream$1;
|
|
40262
40281
|
fs$36.createWriteStream = createWriteStream$1;
|
|
40263
40282
|
var fs$readFile = fs$36.readFile;
|
|
40264
|
-
fs$36.readFile = readFile$
|
|
40265
|
-
function readFile$
|
|
40283
|
+
fs$36.readFile = readFile$1;
|
|
40284
|
+
function readFile$1(path$33, options, cb) {
|
|
40266
40285
|
if (typeof options === "function") cb = options, options = null;
|
|
40267
40286
|
return go$readFile(path$33, options, cb);
|
|
40268
40287
|
function go$readFile(path$34, options$1, cb$1, startTime) {
|
|
@@ -40283,8 +40302,8 @@ var require_graceful_fs = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/g
|
|
|
40283
40302
|
}
|
|
40284
40303
|
}
|
|
40285
40304
|
var fs$writeFile = fs$36.writeFile;
|
|
40286
|
-
fs$36.writeFile = writeFile$
|
|
40287
|
-
function writeFile$
|
|
40305
|
+
fs$36.writeFile = writeFile$1;
|
|
40306
|
+
function writeFile$1(path$33, data, options, cb) {
|
|
40288
40307
|
if (typeof options === "function") cb = options, options = null;
|
|
40289
40308
|
return go$writeFile(path$33, data, options, cb);
|
|
40290
40309
|
function go$writeFile(path$34, data$1, options$1, cb$1, startTime) {
|
|
@@ -41144,14 +41163,14 @@ var require_empty = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/fs-extr
|
|
|
41144
41163
|
const u$9 = require_universalify().fromPromise;
|
|
41145
41164
|
const fs$25 = require_fs$4();
|
|
41146
41165
|
const path$27 = __require("path");
|
|
41147
|
-
const mkdir$
|
|
41166
|
+
const mkdir$3 = require_mkdirs();
|
|
41148
41167
|
const remove$1 = require_remove();
|
|
41149
41168
|
const emptyDir = u$9(async function emptyDir$1(dir) {
|
|
41150
41169
|
let items;
|
|
41151
41170
|
try {
|
|
41152
41171
|
items = await fs$25.readdir(dir);
|
|
41153
41172
|
} catch {
|
|
41154
|
-
return mkdir$
|
|
41173
|
+
return mkdir$3.mkdirs(dir);
|
|
41155
41174
|
}
|
|
41156
41175
|
return Promise.all(items.map((item) => remove$1.remove(path$27.join(dir, item))));
|
|
41157
41176
|
});
|
|
@@ -41160,7 +41179,7 @@ var require_empty = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/fs-extr
|
|
|
41160
41179
|
try {
|
|
41161
41180
|
items = fs$25.readdirSync(dir);
|
|
41162
41181
|
} catch {
|
|
41163
|
-
return mkdir$
|
|
41182
|
+
return mkdir$3.mkdirsSync(dir);
|
|
41164
41183
|
}
|
|
41165
41184
|
items.forEach((item) => {
|
|
41166
41185
|
item = path$27.join(dir, item);
|
|
@@ -41181,7 +41200,7 @@ var require_file = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/fs-extra
|
|
|
41181
41200
|
const u$8 = require_universalify().fromPromise;
|
|
41182
41201
|
const path$26 = __require("path");
|
|
41183
41202
|
const fs$24 = require_fs$4();
|
|
41184
|
-
const mkdir$
|
|
41203
|
+
const mkdir$2 = require_mkdirs();
|
|
41185
41204
|
async function createFile$1(file$2) {
|
|
41186
41205
|
let stats;
|
|
41187
41206
|
try {
|
|
@@ -41194,7 +41213,7 @@ var require_file = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/fs-extra
|
|
|
41194
41213
|
dirStats = await fs$24.stat(dir);
|
|
41195
41214
|
} catch (err) {
|
|
41196
41215
|
if (err.code === "ENOENT") {
|
|
41197
|
-
await mkdir$
|
|
41216
|
+
await mkdir$2.mkdirs(dir);
|
|
41198
41217
|
await fs$24.writeFile(file$2, "");
|
|
41199
41218
|
return;
|
|
41200
41219
|
} else throw err;
|
|
@@ -41212,7 +41231,7 @@ var require_file = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/fs-extra
|
|
|
41212
41231
|
try {
|
|
41213
41232
|
if (!fs$24.statSync(dir).isDirectory()) fs$24.readdirSync(dir);
|
|
41214
41233
|
} catch (err) {
|
|
41215
|
-
if (err && err.code === "ENOENT") mkdir$
|
|
41234
|
+
if (err && err.code === "ENOENT") mkdir$2.mkdirsSync(dir);
|
|
41216
41235
|
else throw err;
|
|
41217
41236
|
}
|
|
41218
41237
|
fs$24.writeFileSync(file$2, "");
|
|
@@ -41229,7 +41248,7 @@ var require_link = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/fs-extra
|
|
|
41229
41248
|
const u$7 = require_universalify().fromPromise;
|
|
41230
41249
|
const path$25 = __require("path");
|
|
41231
41250
|
const fs$23 = require_fs$4();
|
|
41232
|
-
const mkdir$
|
|
41251
|
+
const mkdir$1 = require_mkdirs();
|
|
41233
41252
|
const { pathExists: pathExists$4 } = require_path_exists();
|
|
41234
41253
|
const { areIdentical: areIdentical$1 } = require_stat();
|
|
41235
41254
|
async function createLink$1(srcpath, dstpath) {
|
|
@@ -41246,7 +41265,7 @@ var require_link = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/fs-extra
|
|
|
41246
41265
|
}
|
|
41247
41266
|
if (dstStat && areIdentical$1(srcStat, dstStat)) return;
|
|
41248
41267
|
const dir = path$25.dirname(dstpath);
|
|
41249
|
-
if (!await pathExists$4(dir)) await mkdir$
|
|
41268
|
+
if (!await pathExists$4(dir)) await mkdir$1.mkdirs(dir);
|
|
41250
41269
|
await fs$23.link(srcpath, dstpath);
|
|
41251
41270
|
}
|
|
41252
41271
|
function createLinkSync$1(srcpath, dstpath) {
|
|
@@ -41263,7 +41282,7 @@ var require_link = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/fs-extra
|
|
|
41263
41282
|
}
|
|
41264
41283
|
const dir = path$25.dirname(dstpath);
|
|
41265
41284
|
if (fs$23.existsSync(dir)) return fs$23.linkSync(srcpath, dstpath);
|
|
41266
|
-
mkdir$
|
|
41285
|
+
mkdir$1.mkdirsSync(dir);
|
|
41267
41286
|
return fs$23.linkSync(srcpath, dstpath);
|
|
41268
41287
|
}
|
|
41269
41288
|
module.exports = {
|
|
@@ -41505,7 +41524,7 @@ var require_jsonfile$1 = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/js
|
|
|
41505
41524
|
}
|
|
41506
41525
|
return obj;
|
|
41507
41526
|
}
|
|
41508
|
-
const readFile
|
|
41527
|
+
const readFile = universalify.fromPromise(_readFile);
|
|
41509
41528
|
function readFileSync$1(file$2, options = {}) {
|
|
41510
41529
|
if (typeof options === "string") options = { encoding: options };
|
|
41511
41530
|
const fs$36 = options.fs || _fs;
|
|
@@ -41526,16 +41545,16 @@ var require_jsonfile$1 = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/js
|
|
|
41526
41545
|
const str = stringify$6(obj, options);
|
|
41527
41546
|
await universalify.fromCallback(fs$36.writeFile)(file$2, str, options);
|
|
41528
41547
|
}
|
|
41529
|
-
const writeFile
|
|
41548
|
+
const writeFile = universalify.fromPromise(_writeFile);
|
|
41530
41549
|
function writeFileSync$1(file$2, obj, options = {}) {
|
|
41531
41550
|
const fs$36 = options.fs || _fs;
|
|
41532
41551
|
const str = stringify$6(obj, options);
|
|
41533
41552
|
return fs$36.writeFileSync(file$2, str, options);
|
|
41534
41553
|
}
|
|
41535
41554
|
module.exports = {
|
|
41536
|
-
readFile
|
|
41555
|
+
readFile,
|
|
41537
41556
|
readFileSync: readFileSync$1,
|
|
41538
|
-
writeFile
|
|
41557
|
+
writeFile,
|
|
41539
41558
|
writeFileSync: writeFileSync$1
|
|
41540
41559
|
};
|
|
41541
41560
|
}) });
|
|
@@ -41558,16 +41577,16 @@ var require_output_file = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/f
|
|
|
41558
41577
|
const u$3 = require_universalify().fromPromise;
|
|
41559
41578
|
const fs$19 = require_fs$4();
|
|
41560
41579
|
const path$22 = __require("path");
|
|
41561
|
-
const mkdir
|
|
41580
|
+
const mkdir = require_mkdirs();
|
|
41562
41581
|
const pathExists$1 = require_path_exists().pathExists;
|
|
41563
41582
|
async function outputFile$1(file$2, data, encoding = "utf-8") {
|
|
41564
41583
|
const dir = path$22.dirname(file$2);
|
|
41565
|
-
if (!await pathExists$1(dir)) await mkdir
|
|
41584
|
+
if (!await pathExists$1(dir)) await mkdir.mkdirs(dir);
|
|
41566
41585
|
return fs$19.writeFile(file$2, data, encoding);
|
|
41567
41586
|
}
|
|
41568
41587
|
function outputFileSync$1(file$2, ...args) {
|
|
41569
41588
|
const dir = path$22.dirname(file$2);
|
|
41570
|
-
if (!fs$19.existsSync(dir)) mkdir
|
|
41589
|
+
if (!fs$19.existsSync(dir)) mkdir.mkdirsSync(dir);
|
|
41571
41590
|
fs$19.writeFileSync(file$2, ...args);
|
|
41572
41591
|
}
|
|
41573
41592
|
module.exports = {
|
|
@@ -55256,9 +55275,10 @@ const execArgs = {
|
|
|
55256
55275
|
inspectWait: zod_default.boolean().optional().describe("Enable inspector and wait for connection"),
|
|
55257
55276
|
envFile: zod_default.string().optional().describe("Path to environment file to load"),
|
|
55258
55277
|
app: zod_default.string().optional().describe("Select a specific application to target"),
|
|
55259
|
-
rootDir: zod_default.string().optional().describe("Path to the root directory of the project")
|
|
55278
|
+
rootDir: zod_default.string().optional().describe("Path to the root directory of the project"),
|
|
55279
|
+
profile: zod_default.string().optional().describe("Alchemy profile to use for authoriziing requests")
|
|
55260
55280
|
};
|
|
55261
|
-
async function execAlchemy(main, { cwd: cwd$1 = process.cwd(), quiet, force: force$1, stage, destroy: destroy$2, watch: watch$1, envFile, read: read$5, dev: dev$1, inspect: inspect$1, inspectBrk, inspectWait, adopt: adopt$1, app, rootDir }) {
|
|
55281
|
+
async function execAlchemy(main, { cwd: cwd$1 = process.cwd(), quiet, force: force$1, stage, destroy: destroy$2, watch: watch$1, envFile, read: read$5, dev: dev$1, inspect: inspect$1, inspectBrk, inspectWait, adopt: adopt$1, app, rootDir, profile }) {
|
|
55262
55282
|
const args = [];
|
|
55263
55283
|
const execArgs$1 = [];
|
|
55264
55284
|
const shouldInspect = (inspect$1 || inspectBrk || inspectWait) ?? false;
|
|
@@ -55277,6 +55297,7 @@ async function execAlchemy(main, { cwd: cwd$1 = process.cwd(), quiet, force: for
|
|
|
55277
55297
|
if (inspectWait) execArgs$1.push("--inspect-wait");
|
|
55278
55298
|
if (inspectBrk) execArgs$1.push("--inspect-brk");
|
|
55279
55299
|
if (adopt$1) args.push("--adopt");
|
|
55300
|
+
if (profile) args.push(`--profile ${profile}`);
|
|
55280
55301
|
if (app) args.push(`--app ${app}`);
|
|
55281
55302
|
if (rootDir) args.push(`--root-dir ${rootDir}`);
|
|
55282
55303
|
else if (app) {
|
|
@@ -60252,7 +60273,7 @@ var require_typescript = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/@t
|
|
|
60252
60273
|
walkUpParenthesizedTypesAndGetParentAndChild: () => walkUpParenthesizedTypesAndGetParentAndChild,
|
|
60253
60274
|
whitespaceOrMapCommentRegExp: () => whitespaceOrMapCommentRegExp,
|
|
60254
60275
|
writeCommentRange: () => writeCommentRange,
|
|
60255
|
-
writeFile: () => writeFile$
|
|
60276
|
+
writeFile: () => writeFile$1,
|
|
60256
60277
|
writeFileEnsuringDirectories: () => writeFileEnsuringDirectories,
|
|
60257
60278
|
zipWith: () => zipWith
|
|
60258
60279
|
});
|
|
@@ -65355,7 +65376,7 @@ ${lanes.join("\n")}
|
|
|
65355
65376
|
writeOutputIsTTY() {
|
|
65356
65377
|
return process.stdout.isTTY;
|
|
65357
65378
|
},
|
|
65358
|
-
readFile: readFile$
|
|
65379
|
+
readFile: readFile$1,
|
|
65359
65380
|
writeFile: writeFile2,
|
|
65360
65381
|
watchFile: watchFile2,
|
|
65361
65382
|
watchDirectory,
|
|
@@ -65537,7 +65558,7 @@ ${lanes.join("\n")}
|
|
|
65537
65558
|
recursive: !!recursive
|
|
65538
65559
|
} : { persistent: true }, callback);
|
|
65539
65560
|
}
|
|
65540
|
-
function readFile$
|
|
65561
|
+
function readFile$1(fileName, _encoding) {
|
|
65541
65562
|
let buffer;
|
|
65542
65563
|
try {
|
|
65543
65564
|
buffer = _fs$1.readFileSync(fileName);
|
|
@@ -80313,7 +80334,7 @@ ${lanes.join("\n")}
|
|
|
80313
80334
|
sourceFilePath = getCanonicalFileName(sourceFilePath).indexOf(getCanonicalFileName(commonSourceDirectory)) === 0 ? sourceFilePath.substring(commonSourceDirectory.length) : sourceFilePath;
|
|
80314
80335
|
return combinePaths(newDirPath, sourceFilePath);
|
|
80315
80336
|
}
|
|
80316
|
-
function writeFile$
|
|
80337
|
+
function writeFile$1(host, diagnostics, fileName, text, writeByteOrderMark, sourceFiles, data) {
|
|
80317
80338
|
host.writeFile(fileName, text, writeByteOrderMark, (hostErrorMessage) => {
|
|
80318
80339
|
diagnostics.add(createCompilerDiagnostic(Diagnostics.Could_not_write_file_0_Colon_1, fileName, hostErrorMessage));
|
|
80319
80340
|
}, sourceFiles, data);
|
|
@@ -97595,7 +97616,7 @@ ${lanes.join("\n")}
|
|
|
97595
97616
|
const possibleOption = getSpellingSuggestion(unknownOption, diagnostics.optionDeclarations, getOptionName$1);
|
|
97596
97617
|
return possibleOption ? createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownDidYouMeanDiagnostic, unknownOptionErrorText || unknownOption, possibleOption.name) : createDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile, node, diagnostics.unknownOptionDiagnostic, unknownOptionErrorText || unknownOption);
|
|
97597
97618
|
}
|
|
97598
|
-
function parseCommandLineWorker(diagnostics, commandLine, readFile$
|
|
97619
|
+
function parseCommandLineWorker(diagnostics, commandLine, readFile$1) {
|
|
97599
97620
|
const options = {};
|
|
97600
97621
|
let watchOptions;
|
|
97601
97622
|
const fileNames = [];
|
|
@@ -97626,7 +97647,7 @@ ${lanes.join("\n")}
|
|
|
97626
97647
|
}
|
|
97627
97648
|
}
|
|
97628
97649
|
function parseResponseFile(fileName) {
|
|
97629
|
-
const text = tryReadFile(fileName, readFile$
|
|
97650
|
+
const text = tryReadFile(fileName, readFile$1 || ((fileName2) => sys.readFile(fileName2)));
|
|
97630
97651
|
if (!isString$2(text)) {
|
|
97631
97652
|
errors$1.push(text);
|
|
97632
97653
|
return;
|
|
@@ -97713,8 +97734,8 @@ ${lanes.join("\n")}
|
|
|
97713
97734
|
unknownDidYouMeanDiagnostic: Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,
|
|
97714
97735
|
optionTypeMismatchDiagnostic: Diagnostics.Compiler_option_0_expects_an_argument
|
|
97715
97736
|
};
|
|
97716
|
-
function parseCommandLine(commandLine, readFile$
|
|
97717
|
-
return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine, readFile$
|
|
97737
|
+
function parseCommandLine(commandLine, readFile$1) {
|
|
97738
|
+
return parseCommandLineWorker(compilerOptionsDidYouMeanDiagnostics, commandLine, readFile$1);
|
|
97718
97739
|
}
|
|
97719
97740
|
function getOptionFromName(optionName, allowShort) {
|
|
97720
97741
|
return getOptionDeclarationFromName(getOptionsNameMap, optionName, allowShort);
|
|
@@ -97774,8 +97795,8 @@ ${lanes.join("\n")}
|
|
|
97774
97795
|
result.originalFileName = result.fileName;
|
|
97775
97796
|
return parseJsonSourceFileConfigFileContent(result, host, getNormalizedAbsolutePath(getDirectoryPath(configFileName), cwd$1), optionsToExtend, getNormalizedAbsolutePath(configFileName, cwd$1), void 0, extraFileExtensions, extendedConfigCache, watchOptionsToExtend);
|
|
97776
97797
|
}
|
|
97777
|
-
function readConfigFile(fileName, readFile$
|
|
97778
|
-
const textOrDiagnostic = tryReadFile(fileName, readFile$
|
|
97798
|
+
function readConfigFile(fileName, readFile$1) {
|
|
97799
|
+
const textOrDiagnostic = tryReadFile(fileName, readFile$1);
|
|
97779
97800
|
return isString$2(textOrDiagnostic) ? parseConfigFileTextToJson(fileName, textOrDiagnostic) : {
|
|
97780
97801
|
config: {},
|
|
97781
97802
|
error: textOrDiagnostic
|
|
@@ -97788,17 +97809,17 @@ ${lanes.join("\n")}
|
|
|
97788
97809
|
error: jsonSourceFile.parseDiagnostics.length ? jsonSourceFile.parseDiagnostics[0] : void 0
|
|
97789
97810
|
};
|
|
97790
97811
|
}
|
|
97791
|
-
function readJsonConfigFile(fileName, readFile$
|
|
97792
|
-
const textOrDiagnostic = tryReadFile(fileName, readFile$
|
|
97812
|
+
function readJsonConfigFile(fileName, readFile$1) {
|
|
97813
|
+
const textOrDiagnostic = tryReadFile(fileName, readFile$1);
|
|
97793
97814
|
return isString$2(textOrDiagnostic) ? parseJsonText(fileName, textOrDiagnostic) : {
|
|
97794
97815
|
fileName,
|
|
97795
97816
|
parseDiagnostics: [textOrDiagnostic]
|
|
97796
97817
|
};
|
|
97797
97818
|
}
|
|
97798
|
-
function tryReadFile(fileName, readFile$
|
|
97819
|
+
function tryReadFile(fileName, readFile$1) {
|
|
97799
97820
|
let text;
|
|
97800
97821
|
try {
|
|
97801
|
-
text = readFile$
|
|
97822
|
+
text = readFile$1(fileName);
|
|
97802
97823
|
} catch (e) {
|
|
97803
97824
|
return createCompilerDiagnostic(Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message);
|
|
97804
97825
|
}
|
|
@@ -147327,7 +147348,7 @@ ${lanes.join("\n")}
|
|
|
147327
147348
|
return;
|
|
147328
147349
|
}
|
|
147329
147350
|
const buildInfo = host.getBuildInfo() || { version: version$2 };
|
|
147330
|
-
writeFile$
|
|
147351
|
+
writeFile$1(host, emitterDiagnostics, buildInfoPath, getBuildInfoText(buildInfo), false, void 0, { buildInfo });
|
|
147331
147352
|
emittedFilesList?.push(buildInfoPath);
|
|
147332
147353
|
}
|
|
147333
147354
|
function emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath) {
|
|
@@ -147457,7 +147478,7 @@ ${lanes.join("\n")}
|
|
|
147457
147478
|
}
|
|
147458
147479
|
if (sourceMapFilePath) {
|
|
147459
147480
|
const sourceMap = sourceMapGenerator.toString();
|
|
147460
|
-
writeFile$
|
|
147481
|
+
writeFile$1(host, emitterDiagnostics, sourceMapFilePath, sourceMap, false, sourceFiles);
|
|
147461
147482
|
}
|
|
147462
147483
|
} else writer.writeLine();
|
|
147463
147484
|
const text = writer.getText();
|
|
@@ -147465,7 +147486,7 @@ ${lanes.join("\n")}
|
|
|
147465
147486
|
sourceMapUrlPos,
|
|
147466
147487
|
diagnostics: transform2.diagnostics
|
|
147467
147488
|
};
|
|
147468
|
-
writeFile$
|
|
147489
|
+
writeFile$1(host, emitterDiagnostics, jsFilePath, text, !!compilerOptions.emitBOM, sourceFiles, data);
|
|
147469
147490
|
writer.clear();
|
|
147470
147491
|
return !data.skippedDtsWrite;
|
|
147471
147492
|
}
|
|
@@ -151163,12 +151184,12 @@ ${lanes.join("\n")}
|
|
|
151163
151184
|
function createCompilerHost(options, setParentNodes) {
|
|
151164
151185
|
return createCompilerHostWorker(options, setParentNodes);
|
|
151165
151186
|
}
|
|
151166
|
-
function createGetSourceFile(readFile$
|
|
151187
|
+
function createGetSourceFile(readFile$1, setParentNodes) {
|
|
151167
151188
|
return (fileName, languageVersionOrOptions, onError) => {
|
|
151168
151189
|
let text;
|
|
151169
151190
|
try {
|
|
151170
151191
|
mark("beforeIORead");
|
|
151171
|
-
text = readFile$
|
|
151192
|
+
text = readFile$1(fileName);
|
|
151172
151193
|
mark("afterIORead");
|
|
151173
151194
|
measure("I/O Read", "beforeIORead", "afterIORead");
|
|
151174
151195
|
} catch (e) {
|
|
@@ -151898,7 +151919,7 @@ ${lanes.join("\n")}
|
|
|
151898
151919
|
getSourceOfProjectReferenceRedirect,
|
|
151899
151920
|
forEachResolvedProjectReference: forEachResolvedProjectReference2
|
|
151900
151921
|
});
|
|
151901
|
-
const readFile$
|
|
151922
|
+
const readFile$1 = host.readFile.bind(host);
|
|
151902
151923
|
(_e = tracing) == null || _e.push(tracing.Phase.Program, "shouldProgramCreateNewSourceFiles", { hasOldProgram: !!oldProgram });
|
|
151903
151924
|
const shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options);
|
|
151904
151925
|
(_f = tracing) == null || _f.pop();
|
|
@@ -152061,7 +152082,7 @@ ${lanes.join("\n")}
|
|
|
152061
152082
|
shouldTransformImportCall,
|
|
152062
152083
|
emitBuildInfo,
|
|
152063
152084
|
fileExists,
|
|
152064
|
-
readFile: readFile$
|
|
152085
|
+
readFile: readFile$1,
|
|
152065
152086
|
directoryExists,
|
|
152066
152087
|
getSymlinkCache,
|
|
152067
152088
|
realpath: (_o = host.realpath) == null ? void 0 : _o.bind(host),
|
|
@@ -195856,7 +195877,7 @@ ${options.prefix}` : "\n" : options.prefix
|
|
|
195856
195877
|
walkUpParenthesizedTypesAndGetParentAndChild: () => walkUpParenthesizedTypesAndGetParentAndChild,
|
|
195857
195878
|
whitespaceOrMapCommentRegExp: () => whitespaceOrMapCommentRegExp,
|
|
195858
195879
|
writeCommentRange: () => writeCommentRange,
|
|
195859
|
-
writeFile: () => writeFile$
|
|
195880
|
+
writeFile: () => writeFile$1,
|
|
195860
195881
|
writeFileEnsuringDirectories: () => writeFileEnsuringDirectories,
|
|
195861
195882
|
zipWith: () => zipWith
|
|
195862
195883
|
});
|
|
@@ -227157,8 +227178,8 @@ var require_ts_morph = /* @__PURE__ */ __commonJS$1({ "../node_modules/.bun/ts-m
|
|
|
227157
227178
|
}
|
|
227158
227179
|
#emit(options = {}) {
|
|
227159
227180
|
const targetSourceFile = options.targetSourceFile != null ? options.targetSourceFile.compilerNode : void 0;
|
|
227160
|
-
const { emitOnlyDtsFiles, customTransformers, writeFile: writeFile$
|
|
227161
|
-
return this.compilerObject.emit(targetSourceFile, writeFile$
|
|
227181
|
+
const { emitOnlyDtsFiles, customTransformers, writeFile: writeFile$1 } = options;
|
|
227182
|
+
return this.compilerObject.emit(targetSourceFile, writeFile$1, void 0, emitOnlyDtsFiles, customTransformers);
|
|
227162
227183
|
}
|
|
227163
227184
|
getSyntacticDiagnostics(sourceFile) {
|
|
227164
227185
|
return this.compilerObject.getSyntacticDiagnostics(sourceFile == null ? void 0 : sourceFile.compilerNode).map((d$2) => this.#context.compilerFactory.getDiagnosticWithLocation(d$2));
|
|
@@ -231885,6 +231906,21 @@ const run = loggedProcedure.meta({ description: "run alchemy in read-only mode"
|
|
|
231885
231906
|
read: true
|
|
231886
231907
|
}));
|
|
231887
231908
|
|
|
231909
|
+
//#endregion
|
|
231910
|
+
//#region bin/commands/telemetry.ts
|
|
231911
|
+
const telemetry = t.router({
|
|
231912
|
+
disable: t.procedure.meta({ description: "disable telemetry" }).mutation(async () => {
|
|
231913
|
+
Ie(pc.cyan("🧪 Telemetry"));
|
|
231914
|
+
await setGlobalTelemetryDisabled();
|
|
231915
|
+
Se(`Telemetry disabled. ${pc.dim(`To re-enable, run ${pc.bold("alchemy telemetry enable")}`)}`);
|
|
231916
|
+
}),
|
|
231917
|
+
enable: t.procedure.meta({ description: "enable telemetry" }).mutation(async () => {
|
|
231918
|
+
Ie(pc.cyan("🧪 Telemetry"));
|
|
231919
|
+
await setGlobalTelemetryEnabled();
|
|
231920
|
+
Se(`Telemetry enabled. ${pc.dim(`To disable, run ${pc.bold("alchemy telemetry disable")}`)}`);
|
|
231921
|
+
})
|
|
231922
|
+
});
|
|
231923
|
+
|
|
231888
231924
|
//#endregion
|
|
231889
231925
|
//#region bin/alchemy.ts
|
|
231890
231926
|
var import_dist = /* @__PURE__ */ __toESM$1(require_dist(), 1);
|
|
@@ -231897,7 +231933,8 @@ const router = t.router({
|
|
|
231897
231933
|
login,
|
|
231898
231934
|
logout,
|
|
231899
231935
|
configure,
|
|
231900
|
-
run
|
|
231936
|
+
run,
|
|
231937
|
+
telemetry
|
|
231901
231938
|
});
|
|
231902
231939
|
(0, import_dist.createCli)({
|
|
231903
231940
|
router,
|
package/bin/alchemy.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { init } from "./commands/init.ts";
|
|
|
8
8
|
import { login } from "./commands/login.ts";
|
|
9
9
|
import { logout } from "./commands/logout.ts";
|
|
10
10
|
import { run } from "./commands/run.ts";
|
|
11
|
+
import { telemetry } from "./commands/telemetry.ts";
|
|
11
12
|
import { getPackageVersion } from "./services/get-package-version.ts";
|
|
12
13
|
import { t } from "./trpc.ts";
|
|
13
14
|
|
|
@@ -21,6 +22,7 @@ const router = t.router({
|
|
|
21
22
|
logout,
|
|
22
23
|
configure,
|
|
23
24
|
run,
|
|
25
|
+
telemetry,
|
|
24
26
|
});
|
|
25
27
|
|
|
26
28
|
export type AppRouter = typeof router;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as prompts from "@clack/prompts";
|
|
2
|
+
import pc from "picocolors";
|
|
3
|
+
import {
|
|
4
|
+
setGlobalTelemetryDisabled,
|
|
5
|
+
setGlobalTelemetryEnabled,
|
|
6
|
+
} from "../../src/util/telemetry.ts";
|
|
7
|
+
import { t } from "../trpc.ts";
|
|
8
|
+
|
|
9
|
+
export const telemetry = t.router({
|
|
10
|
+
disable: t.procedure
|
|
11
|
+
.meta({
|
|
12
|
+
description: "disable telemetry",
|
|
13
|
+
})
|
|
14
|
+
.mutation(async () => {
|
|
15
|
+
prompts.intro(pc.cyan("🧪 Telemetry"));
|
|
16
|
+
await setGlobalTelemetryDisabled();
|
|
17
|
+
prompts.outro(
|
|
18
|
+
`Telemetry disabled. ${pc.dim(`To re-enable, run ${pc.bold("alchemy telemetry enable")}`)}`,
|
|
19
|
+
);
|
|
20
|
+
}),
|
|
21
|
+
|
|
22
|
+
enable: t.procedure
|
|
23
|
+
.meta({
|
|
24
|
+
description: "enable telemetry",
|
|
25
|
+
})
|
|
26
|
+
.mutation(async () => {
|
|
27
|
+
prompts.intro(pc.cyan("🧪 Telemetry"));
|
|
28
|
+
await setGlobalTelemetryEnabled();
|
|
29
|
+
prompts.outro(
|
|
30
|
+
`Telemetry enabled. ${pc.dim(`To disable, run ${pc.bold("alchemy telemetry disable")}`)}`,
|
|
31
|
+
);
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
@@ -72,6 +72,10 @@ export const execArgs = {
|
|
|
72
72
|
.string()
|
|
73
73
|
.optional()
|
|
74
74
|
.describe("Path to the root directory of the project"),
|
|
75
|
+
profile: z
|
|
76
|
+
.string()
|
|
77
|
+
.optional()
|
|
78
|
+
.describe("Alchemy profile to use for authoriziing requests"),
|
|
75
79
|
} as const;
|
|
76
80
|
|
|
77
81
|
export async function execAlchemy(
|
|
@@ -92,6 +96,7 @@ export async function execAlchemy(
|
|
|
92
96
|
adopt,
|
|
93
97
|
app,
|
|
94
98
|
rootDir,
|
|
99
|
+
profile,
|
|
95
100
|
}: {
|
|
96
101
|
cwd?: string;
|
|
97
102
|
quiet?: boolean;
|
|
@@ -108,6 +113,7 @@ export async function execAlchemy(
|
|
|
108
113
|
inspectWait?: boolean;
|
|
109
114
|
app?: string;
|
|
110
115
|
rootDir?: string;
|
|
116
|
+
profile?: string;
|
|
111
117
|
},
|
|
112
118
|
) {
|
|
113
119
|
const args: string[] = [];
|
|
@@ -132,6 +138,7 @@ export async function execAlchemy(
|
|
|
132
138
|
if (inspectWait) execArgs.push("--inspect-wait");
|
|
133
139
|
if (inspectBrk) execArgs.push("--inspect-brk");
|
|
134
140
|
if (adopt) args.push("--adopt");
|
|
141
|
+
if (profile) args.push(`--profile ${profile}`);
|
|
135
142
|
if (app) args.push(`--app ${app}`);
|
|
136
143
|
if (rootDir) {
|
|
137
144
|
args.push(`--root-dir ${rootDir}`);
|
package/lib/alchemy.d.ts
CHANGED
|
@@ -170,6 +170,10 @@ export interface AlchemyOptions {
|
|
|
170
170
|
* @default process.cwd()
|
|
171
171
|
*/
|
|
172
172
|
rootDir?: string;
|
|
173
|
+
/**
|
|
174
|
+
* The Alchemy profile to use for authoriziing requests.
|
|
175
|
+
*/
|
|
176
|
+
profile?: string;
|
|
173
177
|
/**
|
|
174
178
|
* Whether this is the application that was selected with `--app`
|
|
175
179
|
*
|
package/lib/alchemy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alchemy.d.ts","sourceRoot":"","sources":["../src/alchemy.ts"],"names":[],"mappings":"AAIA,OAAO,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,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,UAAW,SAAQ,cAAc,EAAE,mBAAmB;IACrE;;OAEG;IAEH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;;;;;;;;;;;;GAcG;AACH,iBAAe,GAAG,CAAC,CAAC,EAClB,GAAG,IAAI,EACH,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,GAC3D;IACE,EAAE,EAAE,MAAM;IACV,OAAO,EAAE,UAAU;IACnB,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC;CAC9C,GACJ,OAAO,CAAC,CAAC,CAAC,CAiEZ"}
|
package/lib/alchemy.js
CHANGED
|
@@ -47,6 +47,7 @@ async function _alchemy(appName, options) {
|
|
|
47
47
|
password: process.env.ALCHEMY_PASSWORD,
|
|
48
48
|
adopt: cliArgs.includes("--adopt"),
|
|
49
49
|
rootDir: path.resolve(parseOption("--root-dir", ALCHEMY_ROOT)),
|
|
50
|
+
profile: parseOption("--profile"),
|
|
50
51
|
};
|
|
51
52
|
const mergedOptions = {
|
|
52
53
|
...cliOptions,
|
package/lib/alchemy.js.map
CHANGED
|
@@ -1 +1 @@
|
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M,CAAC,CAAC,CAAC;IAC/D,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAC3D,MAAM,CAAC,IAAI,EAAE,CAAC;QAChB,CAAC;QACD,IAAI,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC;YAC7B,IAAI,GAAG,IAAI,IAAI,KAAK,CAAC,IAAI,CAAC;QAC5B,CAAC;QACD,MAAM,KAAK,CAAC;IACd,CAAC;YAAS,CAAC;QACT,MAAM,MAAM,CAAC,QAAQ,CAAC;YACpB,IAAI;SACL,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { Secret } from "../secret.ts";
|
|
|
3
3
|
* Get an organization by name.
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
|
-
* const organization = await
|
|
6
|
+
* const organization = await OrganizationRef("Alchemy's Organization");
|
|
7
7
|
*
|
|
8
8
|
* @param name The name of the organization to get.
|
|
9
9
|
* @param options The api credentials to use.
|