@keystrokehq/cli 0.0.7 → 0.0.8
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/{accept.handler-CudtwdDV.mjs → accept.handler-PpOOUemk.mjs} +3 -3
- package/dist/{admin-ByNq50FH.mjs → admin-Bhm7VkGG.mjs} +10 -10
- package/dist/{agents-DbekD_Vx.mjs → agents-DYP6fmGE.mjs} +8 -8
- package/dist/{api-keys-kvwq9Jb4.mjs → api-keys-CC5yevJn.mjs} +6 -6
- package/dist/{auth-D2vYD0E8.mjs → auth-KRUcoMkk.mjs} +6 -6
- package/dist/{auth.handler-BFnFI2fQ.mjs → auth.handler-BLU7LnW2.mjs} +2 -3
- package/dist/{build-agents-DfbiMZ_e-in-if4_C.mjs → build-agents-DfbiMZ_e-CLHxZKOg.mjs} +5 -5
- package/dist/{build-metadata-zidV9Cai-BAS0FMxT.mjs → build-metadata-zidV9Cai-BNC_-zub.mjs} +7 -7
- package/dist/{build-progress-Cn2j1LqF.mjs → build-progress-Mzsk4RKr.mjs} +2 -2
- package/dist/{build-tasks-O1jYtlv1-B2Dm4hFj.mjs → build-tasks-O1jYtlv1-Cr7vs_B_.mjs} +3 -3
- package/dist/{build-workflows-3fdvdHHf-Bg5XV7hM.mjs → build-workflows-3fdvdHHf-DnDmsKuG.mjs} +8 -8
- package/dist/{build.handler-BzQRnkC3.mjs → build.handler-CXqfqwho.mjs} +5 -5
- package/dist/{clear.handler-U9n_V1IM.mjs → clear.handler-DgIXlYTs.mjs} +2 -2
- package/dist/{commander-pxSPDCZ4.mjs → commander-Wr7RrODw.mjs} +3 -3
- package/dist/{connect-B_uc0wqI.mjs → connect-CbzAP3Zo.mjs} +3 -3
- package/dist/{connect.handler-VJgm2ZQG.mjs → connect.handler-BmOVKYSN.mjs} +5 -5
- package/dist/{context-D-YKFNxL.mjs → context-DT06adrn.mjs} +3 -4
- package/dist/{create.handler-d9nfcKfp.mjs → create.handler-BWaULspg.mjs} +3 -3
- package/dist/{credential-requirements-DjDFthio.mjs → credential-requirements-BCW8aQWS.mjs} +3 -3
- package/dist/{credential-schema-mismatch-B-wwbCvw.mjs → credential-schema-mismatch-C-4kBAFw.mjs} +1 -1
- package/dist/{credentials-CL_PCuhM.mjs → credentials-BpfWiGuG.mjs} +7 -7
- package/dist/{credentials-DHlK_O4L.mjs → credentials-DAQfKqn0.mjs} +7 -7
- package/dist/{current-deployment-workflow-BRYuEubW.mjs → current-deployment-workflow-C5oiOVsx.mjs} +6 -6
- package/dist/{current.handler-vJG2Dohx.mjs → current.handler-CUVgMZ-O.mjs} +1 -1
- package/dist/{declared-credential-requirements-Bwlb-KZE.mjs → declared-credential-requirements-BtlcsEVn.mjs} +1 -1
- package/dist/{delete.handler-RsYTkJLV.mjs → delete.handler-CzW7Rm5M.mjs} +2 -2
- package/dist/{deploy-BE3F62Mz.mjs → deploy-B7BCgf_y.mjs} +2 -2
- package/dist/{deploy-B_bkUlIL.mjs → deploy-CHfWGM32.mjs} +1 -1
- package/dist/{deploy-progress-CZ2rPlOj.mjs → deploy-progress-BkpuGfGt.mjs} +1 -1
- package/dist/{deploy.handler-Dlyd8Zqs.mjs → deploy.handler-BLp-JNV2.mjs} +17 -18
- package/dist/{detect-env-access-CwkOYeYM-CsrSOCcj.mjs → detect-env-access-CwkOYeYM-KtEle6I3.mjs} +1 -1
- package/dist/{diff-utils-DWNcRA8g.mjs → diff-utils-D1jYu6ny.mjs} +1 -1
- package/dist/{diff.handler-CH0xP8pk.mjs → diff.handler-zVbHzE1Q.mjs} +5 -5
- package/dist/{dist-C2Dq_nx3.mjs → dist-DvO0q6Fo.mjs} +12 -12
- package/dist/{env.handler-BkCO2vjR.mjs → env.handler-CqfOZEou.mjs} +8 -8
- package/dist/{error-boundary-B9PgBkv8.mjs → error-boundary-D6KTx1HL.mjs} +3 -3
- package/dist/{file-metadata-CdFXMMIw.mjs → file-metadata-BvGM-B2v.mjs} +1 -1
- package/dist/{iam-command-utils-CNC8JfZ5.mjs → iam-command-utils-B5G-N3Hx.mjs} +2 -2
- package/dist/{import-module-DDPnzlJ1-CYJD2n2b.mjs → import-module-DDPnzlJ1-BIBSgOhK.mjs} +8 -8
- package/dist/{init-BXwx0QA4.mjs → init-DwVARQud.mjs} +2 -2
- package/dist/{init.handler-Cs5YXM5Z.mjs → init.handler-HsCte00n.mjs} +5 -5
- package/dist/{inspect.handler-DRMKUJsh.mjs → inspect.handler-CcyFNUJP.mjs} +5 -5
- package/dist/{integration-catalog-ClP7YGqM.mjs → integration-catalog-4T5Yad-n.mjs} +3 -3
- package/dist/{integrations-CoBzLNEe.mjs → integrations-DCMkBcjI.mjs} +5 -5
- package/dist/{invites-BmNy1RHp.mjs → invites-DpJjZznC.mjs} +5 -5
- package/dist/{invites.list.handler-ICP2V3p4.mjs → invites.list.handler-CBtOq8W4.mjs} +3 -3
- package/dist/{invites.resend.handler-BGaTTMka.mjs → invites.resend.handler-D-E2NxY1.mjs} +3 -3
- package/dist/{invites.revoke.handler-DBwF5Lxc.mjs → invites.revoke.handler-DFTxBZcm.mjs} +3 -3
- package/dist/keystroke.mjs +276 -28
- package/dist/{list-enrichment-CTqx0Rk_.mjs → list-enrichment-Bou_BqL0.mjs} +2 -2
- package/dist/{list.handler-Vv9KmhB9.mjs → list.handler-BFjtABDv.mjs} +4 -4
- package/dist/{list.handler-B2bN8NsQ.mjs → list.handler-BHmG2GY8.mjs} +1 -1
- package/dist/{list.handler-DO0PnyWP.mjs → list.handler-BWGnEnM8.mjs} +3 -3
- package/dist/{list.handler-b4qYQtwn.mjs → list.handler-CXT-te4G.mjs} +3 -3
- package/dist/{list.handler-BXTGPazY.mjs → list.handler-Val6EmGK.mjs} +5 -5
- package/dist/{list.handler-BjihvxHn.mjs → list.handler-fGaEAMUZ.mjs} +7 -8
- package/dist/{list.handler-rnyzLJDy.mjs → list.handler-gjAg1aM6.mjs} +3 -3
- package/dist/{listen-DVV1fp5c.mjs → listen-C_YrC5Go.mjs} +3 -3
- package/dist/{listen.handler-CyFpUSOu.mjs → listen.handler-BKfcYsfv.mjs} +4 -4
- package/dist/{logs-BRticZ00.mjs → logs-C1f6RjQ7.mjs} +3 -3
- package/dist/{logs.handler-CsnG7Bb0.mjs → logs.handler-BNFUmakA.mjs} +4 -4
- package/dist/{logs.handler-ddQu_MXN.mjs → logs.handler-CB2FtCvP.mjs} +1 -1
- package/dist/{members.add.handler-CH0RhbgE.mjs → members.add.handler-BXldE_ec.mjs} +3 -3
- package/dist/{members.invite.handler-CYB7RQ9A.mjs → members.invite.handler-CWFsj5Gz.mjs} +3 -3
- package/dist/{members.list.handler-DrDtmMei.mjs → members.list.handler-DFg6VThp.mjs} +3 -3
- package/dist/{members.remove.handler-uGoZt2Me.mjs → members.remove.handler-lStbH_4M.mjs} +3 -3
- package/dist/{members.update.handler-DXCWkzOc.mjs → members.update.handler-CzcdsbtG.mjs} +3 -3
- package/dist/{normalize-path-CojS-CgQ-BKRFUzWW.mjs → normalize-path-CojS-CgQ-D_WTiHKw.mjs} +1 -1
- package/dist/{org-GdHhuSNk.mjs → org-8Dsab2dz.mjs} +16 -16
- package/dist/{orgs.create.handler-5AaPgTZV.mjs → orgs.create.handler-CiYGUXBZ.mjs} +3 -3
- package/dist/{orgs.get.handler-BTfopRVm.mjs → orgs.get.handler-BgFsnpme.mjs} +3 -3
- package/dist/{orgs.list.handler-DKJgs6x0.mjs → orgs.list.handler-BuyOTc8K.mjs} +3 -3
- package/dist/{output-q4KljAhu.mjs → output-BCDZb3Gy.mjs} +1 -1
- package/dist/{paused.handler-BUifVTyQ.mjs → paused.handler-wgaf8sse.mjs} +3 -3
- package/dist/{projects-BjnCG-pc.mjs → projects-CZbAqlPQ.mjs} +5 -5
- package/dist/{projects-Bdl6-Z8l.mjs → projects-DN7dX6nN.mjs} +2 -2
- package/dist/{register.handler-WzpvVXHx.mjs → register.handler-BA6p-TmU.mjs} +2 -2
- package/dist/{requirements.handler-coArDE8x.mjs → requirements.handler-DI4mgZ2l.mjs} +7 -8
- package/dist/{resolve-project-DgfftdPm.mjs → resolve-project-BREjwFKO.mjs} +2 -2
- package/dist/{runs-2BdRfql3.mjs → runs-C7uqumfa.mjs} +4 -4
- package/dist/{schemas-DsvCZfF0.mjs → schemas-9FmGqrPT.mjs} +2 -2
- package/dist/{skills-sync.handler-CwwnzDiO.mjs → skills-sync.handler-CuuCiUGT.mjs} +3 -3
- package/dist/{skills.command-C2NXqc5h.mjs → skills.command-23jSicQp.mjs} +4 -4
- package/dist/{source-analysis-DEEChuND-eixwPnPP.mjs → source-analysis-DEEChuND-Csu0oOlw.mjs} +3 -3
- package/dist/{spinner-progress-bvKd1jXc.mjs → spinner-progress-BB2EHL-l.mjs} +1 -1
- package/dist/{src-CBL7AJ0H.mjs → src--fCtOxNX.mjs} +1 -1
- package/dist/{status.handler-D9GBEmao.mjs → status.handler-Bh0MtNu1.mjs} +1 -1
- package/dist/{switch.handler-DV0wiJP8.mjs → switch.handler-CSOycIbR.mjs} +2 -2
- package/dist/{sync-D098Vbv2.mjs → sync-Pzb3od7n.mjs} +2 -2
- package/dist/{sync.handler-BocldSG_.mjs → sync.handler-bEzSgeTW.mjs} +7 -8
- package/dist/{task-DsrXI6XH.mjs → task-1qz1XNq7.mjs} +4 -4
- package/dist/{task-target-build-Di8gflnj.mjs → task-target-build-BA67W_6d.mjs} +4 -4
- package/dist/{task-target-deploy-Bf5i3ox1-BU16VPsE.mjs → task-target-deploy-Bf5i3ox1-2K0hAwzk.mjs} +1 -1
- package/dist/{task-target-deploy-BzGRNDiv.mjs → task-target-deploy-DqX7bJ55.mjs} +1 -1
- package/dist/task-target-deploy-runner.mjs +5 -5
- package/dist/{test-BZt0Duhs.mjs → test-B4uana86.mjs} +13 -14
- package/dist/{test.handler-iCUotLes.mjs → test.handler-Duqj67Qi.mjs} +1 -1
- package/dist/{trigger-artifacts-B3OCTX9K-Cgt51KLh.mjs → trigger-artifacts-B3OCTX9K-37Ca-ELC.mjs} +4 -4
- package/dist/{trigger-manifest-CXD9I7Rb.mjs → trigger-manifest-B3Gq1739.mjs} +1 -1
- package/dist/{try-deploy.handler-YDOirkk1.mjs → try-deploy.handler-BCvwi1jc.mjs} +10 -11
- package/dist/{upgrade-Bdez-X6_.mjs → upgrade-Bp9gnslY.mjs} +2 -2
- package/dist/{upgrade.handler-DhH_Cuza.mjs → upgrade.handler-D82k9CHa.mjs} +1 -1
- package/dist/{upload.handler-BmqZAPxZ.mjs → upload.handler-BMJiaCzk.mjs} +10 -11
- package/dist/{users.get.handler-uoEgEwI-.mjs → users.get.handler-eJtaB-2G.mjs} +3 -3
- package/dist/{users.list.handler-DLWPOIHD.mjs → users.list.handler-DE6s08i0.mjs} +3 -3
- package/dist/{users.set-role.handler-BCJhTsyb.mjs → users.set-role.handler-BVNvaKKS.mjs} +3 -3
- package/dist/{utils-DlYHjGg9.mjs → utils-C_qCshBA.mjs} +2 -2
- package/dist/{validate.handler-ROzzUI85.mjs → validate.handler-BiToUknO.mjs} +5 -5
- package/dist/{workflow-build-DD8TLlPu.mjs → workflow-build-KCdasPyU.mjs} +21 -21
- package/dist/{workflow-bundler-BzHk73PM-Bt-poFqX.mjs → workflow-bundler-BzHk73PM-C1NWDEju.mjs} +2 -2
- package/dist/{workflow-manifest-CAW5FlX0.mjs → workflow-manifest-BfL74mjp.mjs} +4 -4
- package/dist/{workflows-DypSJM0t.mjs → workflows-Bhd_vuCI.mjs} +16 -16
- package/dist/{writer-CtvttJdP-DrJruQgR.mjs → writer-CtvttJdP-DZJ0mZCm.mjs} +5 -5
- package/package.json +2 -2
- package/dist/env-YTZGKGIu.mjs +0 -139
- package/dist/{agent-bundle-package-DWV6B_5q-FPT0bJaA.mjs → agent-bundle-package-DWV6B_5q-B-qzc3zC.mjs} +0 -0
- package/dist/{agent-manifest-Bfa3DBgc.mjs → agent-manifest-sJFbH5H8.mjs} +0 -0
- package/dist/{browser-gddMccBQ.mjs → browser-CvuyMLhI.mjs} +0 -0
- package/dist/{clear-cache.handler-BDV-a3ku.mjs → clear-cache.handler-BuSx_ZDn.mjs} +0 -0
- package/dist/{clear.handler-Dh6QoVO1.mjs → clear.handler-BC6pz0x-.mjs} +0 -0
- package/dist/{common-BrVAdUyD.mjs → common-B3bLe3Mk.mjs} +0 -0
- package/dist/{concurrency-gXn9Rw8x-BTlfau8D.mjs → concurrency-gXn9Rw8x-CnBnF2cg.mjs} +0 -0
- package/dist/{constants-DHdiT5hc.mjs → constants-BUgIAu2a.mjs} +0 -0
- package/dist/{credential-env-map-C8P7uTD-.mjs → credential-env-map-C23GV6LN.mjs} +0 -0
- package/dist/{get-intrinsic-ZMBBjBEr.mjs → get-intrinsic-BjqiGgLt.mjs} +0 -0
- package/dist/{hosted-action-dispatcher-registry-TOVzMhUR.mjs → hosted-action-dispatcher-registry-BWEtn13o.mjs} +0 -0
- package/dist/{layout-B95Tku8F.mjs → layout-CXkZEsXI.mjs} +0 -0
- package/dist/{metadata-layout-C6ed-9dl-aBmqqvD5.mjs → metadata-layout-C6ed-9dl-C6Bylr_z.mjs} +0 -0
- package/dist/{options-BhB9qA5P.mjs → options-CIVqkc8V.mjs} +0 -0
- package/dist/{oxc-B3KI3rf_-BeimiQ2U.mjs → oxc-B3KI3rf_-ghZc3xZ5.mjs} +0 -0
- package/dist/{project-config-opj6DsPF.mjs → project-config-D9eFU8Jk.mjs} +1 -1
- /package/dist/{read-credential-keys-77a91T8M-aLuQvlIq.mjs → read-credential-keys-77a91T8M-DMmY6oDW.mjs} +0 -0
- /package/dist/{rolldown-runtime-twds-ZHy-8uqgIurC.mjs → rolldown-runtime-twds-ZHy-RuJszab7.mjs} +0 -0
- /package/dist/{run-polling-CF9OeLWl.mjs → run-polling-DDpkIvwy.mjs} +0 -0
- /package/dist/{schedule-BRN4hzQM.mjs → schedule-BWAI6qLx.mjs} +0 -0
- /package/dist/{schema-kbMHVnhm.mjs → schema-B-Wgo4rJ.mjs} +0 -0
- /package/dist/{schema-Di90TXoX.mjs → schema-BgGlAs8a.mjs} +0 -0
- /package/dist/{schema-display-D4A1gQEM.mjs → schema-display-DuWBmkwk.mjs} +0 -0
- /package/dist/{skills.handler-BTUhxO37.mjs → skills.handler-BQ3Qfej3.mjs} +0 -0
- /package/dist/{source-analysis-BspLa3E5.mjs → source-analysis-CHkWMC40.mjs} +0 -0
- /package/dist/{sync-keystroke-agent-skills-CBMQ4fh_.mjs → sync-keystroke-agent-skills-D746f2W_.mjs} +0 -0
- /package/dist/{upload-B8fiWveA.mjs → upload-C1qFWMm0.mjs} +0 -0
package/dist/env-YTZGKGIu.mjs
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { n as DEFAULT_CLI_WEB_URL, t as DEFAULT_CLI_SERVER_URL } from "./default-urls-BS4twrsS.mjs";
|
|
4
|
-
import { existsSync, writeFileSync } from "node:fs";
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
import { fileURLToPath } from "node:url";
|
|
8
|
-
import { config } from "dotenv";
|
|
9
|
-
//#region ../../packages/env-utils/dist/index.mjs
|
|
10
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
11
|
-
const __dirname = path.dirname(__filename);
|
|
12
|
-
function findMonorepoRoot() {
|
|
13
|
-
let currentDir = __dirname;
|
|
14
|
-
while (currentDir !== "/") {
|
|
15
|
-
const turboPath = path.join(currentDir, "turbo.json");
|
|
16
|
-
const pnpmWorkspacePath = path.join(currentDir, "pnpm-workspace.yaml");
|
|
17
|
-
if (existsSync(turboPath) && existsSync(pnpmWorkspacePath)) return currentDir;
|
|
18
|
-
currentDir = path.dirname(currentDir);
|
|
19
|
-
}
|
|
20
|
-
throw new Error("Could not find monorepo root (turbo.json + pnpm-workspace.yaml)");
|
|
21
|
-
}
|
|
22
|
-
function ensureRootEnvFile(rootEnvPath) {
|
|
23
|
-
try {
|
|
24
|
-
writeFileSync(rootEnvPath, "# Temporary root env file generated by @keystroke/env-utils\n", { flag: "wx" });
|
|
25
|
-
} catch (error) {
|
|
26
|
-
const fsError = error;
|
|
27
|
-
if (fsError.code === "EEXIST") return;
|
|
28
|
-
throw new Error(`Could not create temporary root env file at ${rootEnvPath}: ${fsError.message ?? "unknown error"}`);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function resolveEnvPath(options = {}) {
|
|
32
|
-
const fallbackToDefault = options.fallbackToDefault ?? true;
|
|
33
|
-
if (options.absolutePath) {
|
|
34
|
-
if (existsSync(options.absolutePath)) return options.absolutePath;
|
|
35
|
-
if (!fallbackToDefault) throw new Error(`Could not find env file at explicit path: ${options.absolutePath}`);
|
|
36
|
-
}
|
|
37
|
-
const fileName = options.fileName ?? ".env";
|
|
38
|
-
let rootDir = null;
|
|
39
|
-
try {
|
|
40
|
-
rootDir = findMonorepoRoot();
|
|
41
|
-
} catch {}
|
|
42
|
-
if (rootDir) {
|
|
43
|
-
const rootEnvPath = path.join(rootDir, fileName);
|
|
44
|
-
if (existsSync(rootEnvPath)) return rootEnvPath;
|
|
45
|
-
if (fileName === ".env") {
|
|
46
|
-
ensureRootEnvFile(rootEnvPath);
|
|
47
|
-
return rootEnvPath;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
if (!fallbackToDefault) throw new Error(`Could not find env file in monorepo root: ${fileName}`);
|
|
51
|
-
return path.join(process.cwd(), fileName);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Load environment variables from a file in the monorepo root.
|
|
55
|
-
*
|
|
56
|
-
* This function finds the monorepo root by looking for turbo.json and pnpm-workspace.yaml,
|
|
57
|
-
* then loads the requested env file from that location. For the default `.env`, this utility
|
|
58
|
-
* creates a temporary root `.env` file if one does not exist. Other file names can fall back
|
|
59
|
-
* to the current working directory when allowed.
|
|
60
|
-
*
|
|
61
|
-
* All dotenv logs are suppressed to keep output clean.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* import { loadRootEnv } from '@keystroke/env-utils';
|
|
66
|
-
*
|
|
67
|
-
* // Load env vars before accessing process.env
|
|
68
|
-
* loadRootEnv();
|
|
69
|
-
*
|
|
70
|
-
* // Explicit integration env file (use `fallbackToDefault: false` only when a missing file must hard-fail):
|
|
71
|
-
* loadRootEnv({ fileName: '.env.test', fallbackToDefault: true });
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
function loadRootEnv(options) {
|
|
75
|
-
config({
|
|
76
|
-
path: resolveEnvPath(options),
|
|
77
|
-
quiet: true,
|
|
78
|
-
debug: false
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
const EnvironmentSchema = z.enum([
|
|
82
|
-
"development",
|
|
83
|
-
"staging",
|
|
84
|
-
"production"
|
|
85
|
-
]);
|
|
86
|
-
z.enum([
|
|
87
|
-
"development",
|
|
88
|
-
"production",
|
|
89
|
-
"test"
|
|
90
|
-
]);
|
|
91
|
-
z.enum([
|
|
92
|
-
"cli",
|
|
93
|
-
"server",
|
|
94
|
-
"worker"
|
|
95
|
-
]);
|
|
96
|
-
z.enum([
|
|
97
|
-
"development",
|
|
98
|
-
"test",
|
|
99
|
-
"staging",
|
|
100
|
-
"production"
|
|
101
|
-
]);
|
|
102
|
-
//#endregion
|
|
103
|
-
//#region src/lib/env.ts
|
|
104
|
-
loadRootEnv();
|
|
105
|
-
const cliEnvSchema = z.object({
|
|
106
|
-
WEB_URL: z.url().optional().default(DEFAULT_CLI_WEB_URL),
|
|
107
|
-
SERVER_URL: z.url().optional().default(DEFAULT_CLI_SERVER_URL),
|
|
108
|
-
KEYSTROKE_API_KEY: z.string().min(1).optional(),
|
|
109
|
-
KEYSTROKE_ORG_ID: z.string().min(1).optional(),
|
|
110
|
-
ENVIRONMENT: EnvironmentSchema.optional().default("production")
|
|
111
|
-
});
|
|
112
|
-
let cachedEnv;
|
|
113
|
-
/**
|
|
114
|
-
* Returns the process environment for credential resolution.
|
|
115
|
-
* Used by credentials upload and other features that need KEYSTROKE_* vars.
|
|
116
|
-
*/
|
|
117
|
-
function getProcessEnv() {
|
|
118
|
-
return process.env;
|
|
119
|
-
}
|
|
120
|
-
function getEnv() {
|
|
121
|
-
if (cachedEnv) return cachedEnv;
|
|
122
|
-
cachedEnv = cliEnvSchema.parse(process.env);
|
|
123
|
-
return cachedEnv;
|
|
124
|
-
}
|
|
125
|
-
function resolveCliWebUrl(override, saved) {
|
|
126
|
-
if (override) return override;
|
|
127
|
-
if (saved) return saved;
|
|
128
|
-
return getEnv().WEB_URL;
|
|
129
|
-
}
|
|
130
|
-
function isLocalMode() {
|
|
131
|
-
return getEnv().ENVIRONMENT === "development";
|
|
132
|
-
}
|
|
133
|
-
function resolveCliServerUrl(override, saved) {
|
|
134
|
-
if (override) return override;
|
|
135
|
-
if (saved) return saved;
|
|
136
|
-
return getEnv().SERVER_URL;
|
|
137
|
-
}
|
|
138
|
-
//#endregion
|
|
139
|
-
export { resolveCliWebUrl as a, resolveCliServerUrl as i, getProcessEnv as n, isLocalMode as r, getEnv as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/{metadata-layout-C6ed-9dl-aBmqqvD5.mjs → metadata-layout-C6ed-9dl-C6Bylr_z.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { access, mkdir, stat, writeFile } from "node:fs/promises";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
import { z } from "zod";
|
|
6
5
|
import { pathToFileURL } from "node:url";
|
|
6
|
+
import { z } from "zod";
|
|
7
7
|
//#region ../../packages/core/src/config.ts
|
|
8
8
|
/**
|
|
9
9
|
* Canonical schema for the `build` field of a `keystroke.config.ts` file.
|
|
File without changes
|
/package/dist/{rolldown-runtime-twds-ZHy-8uqgIurC.mjs → rolldown-runtime-twds-ZHy-RuJszab7.mjs}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{sync-keystroke-agent-skills-CBMQ4fh_.mjs → sync-keystroke-agent-skills-D746f2W_.mjs}
RENAMED
|
File without changes
|
|
File without changes
|