varlock 1.1.0 → 1.3.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.
- package/dist/audit.command-LLD5UIAW.js +16 -0
- package/dist/audit.command-LLD5UIAW.js.map +1 -0
- package/dist/auto-load.js +6 -6
- package/dist/{chunk-QSYH5IDD.js → chunk-5DRCCFKV.js} +3 -3
- package/dist/{chunk-QSYH5IDD.js.map → chunk-5DRCCFKV.js.map} +1 -1
- package/dist/{chunk-E3F6QKDZ.js → chunk-C5LW5EET.js} +6 -6
- package/dist/{chunk-E3F6QKDZ.js.map → chunk-C5LW5EET.js.map} +1 -1
- package/dist/chunk-CESFJIM4.js +198 -0
- package/dist/chunk-CESFJIM4.js.map +1 -0
- package/dist/{chunk-5DUWGI2N.js → chunk-DIPEXEIL.js} +3 -3
- package/dist/{chunk-5DUWGI2N.js.map → chunk-DIPEXEIL.js.map} +1 -1
- package/dist/{chunk-SDN53OAC.js → chunk-F6ZYIWAR.js} +160 -72
- package/dist/chunk-F6ZYIWAR.js.map +1 -0
- package/dist/{chunk-2PFIYNFA.js → chunk-FA5SNEKN.js} +30 -13
- package/dist/chunk-FA5SNEKN.js.map +1 -0
- package/dist/{chunk-XWYFSG46.js → chunk-GKN3UJNE.js} +651 -821
- package/dist/chunk-GKN3UJNE.js.map +1 -0
- package/dist/{chunk-TQXYC3G3.js → chunk-HH647LSU.js} +5 -5
- package/dist/{chunk-TQXYC3G3.js.map → chunk-HH647LSU.js.map} +1 -1
- package/dist/{chunk-6RF54KKR.js → chunk-HMWAOBZR.js} +78 -24
- package/dist/chunk-HMWAOBZR.js.map +1 -0
- package/dist/{chunk-H6NILU2I.js → chunk-INGOLNLE.js} +4 -4
- package/dist/{chunk-H6NILU2I.js.map → chunk-INGOLNLE.js.map} +1 -1
- package/dist/{chunk-JIUWL2NT.js → chunk-IO2OGZQU.js} +9 -9
- package/dist/chunk-IO2OGZQU.js.map +1 -0
- package/dist/chunk-IRXBCLL2.js +2045 -0
- package/dist/chunk-IRXBCLL2.js.map +1 -0
- package/dist/{chunk-QP7TS4SU.js → chunk-JOGGSYT2.js} +6 -6
- package/dist/chunk-JOGGSYT2.js.map +1 -0
- package/dist/{chunk-F6RTQ5QX.js → chunk-KFALDUEO.js} +3 -3
- package/dist/{chunk-F6RTQ5QX.js.map → chunk-KFALDUEO.js.map} +1 -1
- package/dist/{chunk-VN4LKYXR.js → chunk-KI5QLKPU.js} +6 -6
- package/dist/{chunk-VN4LKYXR.js.map → chunk-KI5QLKPU.js.map} +1 -1
- package/dist/{chunk-JUPAI2X4.js → chunk-M6QE3D2O.js} +7 -7
- package/dist/{chunk-JUPAI2X4.js.map → chunk-M6QE3D2O.js.map} +1 -1
- package/dist/{chunk-CDLU5P62.js → chunk-MPHVA4WC.js} +3 -3
- package/dist/{chunk-CDLU5P62.js.map → chunk-MPHVA4WC.js.map} +1 -1
- package/dist/{chunk-U2O3AUM2.js → chunk-NW4KR67N.js} +8 -8
- package/dist/{chunk-U2O3AUM2.js.map → chunk-NW4KR67N.js.map} +1 -1
- package/dist/{chunk-S5O4AAVX.js → chunk-OGGTDFVX.js} +8 -8
- package/dist/{chunk-S5O4AAVX.js.map → chunk-OGGTDFVX.js.map} +1 -1
- package/dist/chunk-P33JXOU6.js +523 -0
- package/dist/chunk-P33JXOU6.js.map +1 -0
- package/dist/{chunk-R73FENLU.js → chunk-QDEAHBCB.js} +3 -3
- package/dist/{chunk-R73FENLU.js.map → chunk-QDEAHBCB.js.map} +1 -1
- package/dist/{chunk-RBFS2QGC.js → chunk-RQZZDYWL.js} +8 -8
- package/dist/{chunk-RBFS2QGC.js.map → chunk-RQZZDYWL.js.map} +1 -1
- package/dist/{chunk-MGWUDHT5.js → chunk-UUJK65RS.js} +11 -3
- package/dist/chunk-UUJK65RS.js.map +1 -0
- package/dist/{chunk-A6THM3IR.js → chunk-WJLMLKSG.js} +5 -5
- package/dist/{chunk-A6THM3IR.js.map → chunk-WJLMLKSG.js.map} +1 -1
- package/dist/{chunk-YO6WHPM4.js → chunk-WTBUNHUJ.js} +5 -5
- package/dist/{chunk-YO6WHPM4.js.map → chunk-WTBUNHUJ.js.map} +1 -1
- package/dist/chunk-XUY3HAO2.js +171 -0
- package/dist/chunk-XUY3HAO2.js.map +1 -0
- package/dist/{chunk-ZJNDICC4.js → chunk-XXSPHSF7.js} +6 -6
- package/dist/{chunk-ZJNDICC4.js.map → chunk-XXSPHSF7.js.map} +1 -1
- package/dist/{chunk-GURKQO4J.js → chunk-YWTIKDGU.js} +7 -2
- package/dist/chunk-YWTIKDGU.js.map +1 -0
- package/dist/{chunk-F5H5MJ6U.js → chunk-ZTFQ7ZVH.js} +2 -5
- package/dist/chunk-ZTFQ7ZVH.js.map +1 -0
- package/dist/cli/cli-executable.js +54 -51
- package/dist/cli/cli-executable.js.map +1 -1
- package/dist/config-item-SQFJ2BJ2.js +7 -0
- package/dist/{config-item-6LTV4PNH.js.map → config-item-SQFJ2BJ2.js.map} +1 -1
- package/dist/dist-ZBZ52DPW.js +4 -0
- package/dist/{dist-WGIHRGBZ.js.map → dist-ZBZ52DPW.js.map} +1 -1
- package/dist/dotenv-compat.js +6 -6
- package/dist/encrypt.command-WISNYCTG.js +14 -0
- package/dist/{encrypt.command-F2OTB6HD.js.map → encrypt.command-WISNYCTG.js.map} +1 -1
- package/dist/{env-graph-iNQyTcya.d.ts → env-graph-DImkUkjl.d.ts} +30 -19
- package/dist/explain.command-THO6CRHD.js +15 -0
- package/dist/{explain.command-TEIPRC7Q.js.map → explain.command-THO6CRHD.js.map} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -15
- package/dist/index.js.map +1 -1
- package/dist/init.command-3EDACW36.js +14 -0
- package/dist/{init.command-5LP3UFKD.js.map → init.command-3EDACW36.js.map} +1 -1
- package/dist/install-plugin.command-MXBZTBTE.js +13 -0
- package/dist/{install-plugin.command-X7RSLPUJ.js.map → install-plugin.command-MXBZTBTE.js.map} +1 -1
- package/dist/lib/exec-sync-varlock.js +1 -1
- package/dist/load.command-XRABTXAE.js +15 -0
- package/dist/{load.command-7SQRDQ3E.js.map → load.command-XRABTXAE.js.map} +1 -1
- package/dist/lock.command-O5MPBQ2I.js +7 -0
- package/dist/{lock.command-4LTGMJA3.js.map → lock.command-O5MPBQ2I.js.map} +1 -1
- package/dist/plugin-lib.d.ts +2 -2
- package/dist/plugin-lib.js +2 -2
- package/dist/printenv.command-DLCI4IPZ.js +15 -0
- package/dist/{printenv.command-ON7RMFEU.js.map → printenv.command-DLCI4IPZ.js.map} +1 -1
- package/dist/reveal.command-6BTK3FJZ.js +15 -0
- package/dist/{reveal.command-BW6XYVXH.js.map → reveal.command-6BTK3FJZ.js.map} +1 -1
- package/dist/run.command-5CIHZECD.js +16 -0
- package/dist/{run.command-5QADABYL.js.map → run.command-5CIHZECD.js.map} +1 -1
- package/dist/runtime/env.d.ts +1 -1
- package/dist/runtime/env.js +1 -1
- package/dist/runtime/init-edge.cjs +9 -1
- package/dist/runtime/init-server.cjs +9 -1
- package/dist/runtime/patch-console.js +2 -2
- package/dist/runtime/patch-response.js +2 -2
- package/dist/runtime/patch-server-response.js +2 -2
- package/dist/scan.command-PW3OOLQY.js +16 -0
- package/dist/{scan.command-ZVW3XAUG.js.map → scan.command-PW3OOLQY.js.map} +1 -1
- package/dist/telemetry.command-TZDNG2WR.js +13 -0
- package/dist/{telemetry.command-PY6E4QSH.js.map → telemetry.command-TZDNG2WR.js.map} +1 -1
- package/dist/typegen.command-QD26Q3MP.js +14 -0
- package/dist/{typegen.command-KZ4O5IKQ.js.map → typegen.command-QD26Q3MP.js.map} +1 -1
- package/native-bins/darwin/VarlockEnclave.app/Contents/CodeResources +0 -0
- package/native-bins/darwin/VarlockEnclave.app/Contents/MacOS/varlock-local-encrypt +0 -0
- package/native-bins/win32-x64/varlock-local-encrypt.exe +0 -0
- package/package.json +2 -2
- package/dist/chunk-2PFIYNFA.js.map +0 -1
- package/dist/chunk-6RF54KKR.js.map +0 -1
- package/dist/chunk-7GFD2ATN.js +0 -136
- package/dist/chunk-7GFD2ATN.js.map +0 -1
- package/dist/chunk-F5H5MJ6U.js.map +0 -1
- package/dist/chunk-GURKQO4J.js.map +0 -1
- package/dist/chunk-HDKXXS2X.js +0 -1959
- package/dist/chunk-HDKXXS2X.js.map +0 -1
- package/dist/chunk-JIUWL2NT.js.map +0 -1
- package/dist/chunk-MGWUDHT5.js.map +0 -1
- package/dist/chunk-QP7TS4SU.js.map +0 -1
- package/dist/chunk-SDN53OAC.js.map +0 -1
- package/dist/chunk-XWYFSG46.js.map +0 -1
- package/dist/config-item-6LTV4PNH.js +0 -7
- package/dist/dist-WGIHRGBZ.js +0 -4
- package/dist/encrypt.command-F2OTB6HD.js +0 -14
- package/dist/explain.command-TEIPRC7Q.js +0 -15
- package/dist/init.command-5LP3UFKD.js +0 -13
- package/dist/install-plugin.command-X7RSLPUJ.js +0 -13
- package/dist/load.command-7SQRDQ3E.js +0 -15
- package/dist/lock.command-4LTGMJA3.js +0 -7
- package/dist/printenv.command-ON7RMFEU.js +0 -15
- package/dist/reveal.command-BW6XYVXH.js +0 -15
- package/dist/run.command-5QADABYL.js +0 -16
- package/dist/scan.command-ZVW3XAUG.js +0 -16
- package/dist/telemetry.command-PY6E4QSH.js +0 -13
- package/dist/typegen.command-KZ4O5IKQ.js +0 -15
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EnvGraph, e as DotEnvFileDataSource, f as ConfigLoadError, S as SchemaError, b as ValidationError, C as CoercionError, R as ResolutionError } from './env-graph-
|
|
2
|
-
export { D as Debugger, d as SerializedEnvGraph, c as createDebug } from './env-graph-
|
|
1
|
+
import { E as EnvGraph, e as DotEnvFileDataSource, f as ConfigLoadError, S as SchemaError, b as ValidationError, C as CoercionError, R as ResolutionError } from './env-graph-DImkUkjl.js';
|
|
2
|
+
export { D as Debugger, d as SerializedEnvGraph, c as createDebug } from './env-graph-DImkUkjl.js';
|
|
3
3
|
import { initVarlockEnv } from './runtime/env.js';
|
|
4
4
|
export { ENV } from './runtime/env.js';
|
|
5
5
|
export { patchGlobalConsole } from './runtime/patch-console.js';
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
export { patchGlobalResponse } from './chunk-
|
|
2
|
-
export { patchGlobalServerResponse } from './chunk-
|
|
3
|
-
import { checkBunVersion } from './chunk-
|
|
4
|
-
import { checkForConfigErrors } from './chunk-
|
|
5
|
-
import { loadVarlockEnvGraph } from './chunk-
|
|
6
|
-
import './chunk-
|
|
7
|
-
import './chunk-
|
|
8
|
-
import {
|
|
9
|
-
import { DotEnvFileDataSource, EnvGraph } from './chunk-XWYFSG46.js';
|
|
1
|
+
export { patchGlobalResponse } from './chunk-KFALDUEO.js';
|
|
2
|
+
export { patchGlobalServerResponse } from './chunk-DIPEXEIL.js';
|
|
3
|
+
import { checkBunVersion } from './chunk-MPHVA4WC.js';
|
|
4
|
+
import { checkForConfigErrors } from './chunk-XUY3HAO2.js';
|
|
5
|
+
import { loadVarlockEnvGraph } from './chunk-C5LW5EET.js';
|
|
6
|
+
import './chunk-YWTIKDGU.js';
|
|
7
|
+
import { loadEnvGraph } from './chunk-JOGGSYT2.js';
|
|
8
|
+
import { DotEnvFileDataSource, EnvGraph } from './chunk-GKN3UJNE.js';
|
|
10
9
|
import './chunk-O3WTD6L4.js';
|
|
11
|
-
import './chunk-
|
|
12
|
-
import { ResolutionError, CoercionError, ValidationError, SchemaError, ConfigLoadError } from './chunk-
|
|
13
|
-
export { createDebug } from './chunk-
|
|
14
|
-
export { patchGlobalConsole } from './chunk-
|
|
15
|
-
import { initVarlockEnv } from './chunk-
|
|
16
|
-
export { ENV } from './chunk-
|
|
10
|
+
import './chunk-IRXBCLL2.js';
|
|
11
|
+
import { ResolutionError, CoercionError, ValidationError, SchemaError, ConfigLoadError } from './chunk-FA5SNEKN.js';
|
|
12
|
+
export { createDebug } from './chunk-FA5SNEKN.js';
|
|
13
|
+
export { patchGlobalConsole } from './chunk-QDEAHBCB.js';
|
|
14
|
+
import { initVarlockEnv } from './chunk-UUJK65RS.js';
|
|
15
|
+
export { ENV } from './chunk-UUJK65RS.js';
|
|
17
16
|
import './chunk-XLYSNOR3.js';
|
|
18
17
|
import { __name } from './chunk-6PEHRAEP.js';
|
|
19
18
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,eAAsB,IAAA,GAAO;AAC3B,EAAA,eAAA,EAAgB;AAEhB,EAAA,MAAM,QAAA,GAAW,MAAM,mBAAA,EAAoB;AAC3C,EAAA,MAAM,SAAS,gBAAA,EAAiB;AAChC,EAAA,oBAAA,CAAqB,QAAQ,CAAA;AAG7B,EAAA,OAAA,CAAQ,IAAI,aAAA,GAAgB,IAAA,CAAK,SAAA,CAAU,QAAA,CAAS,oBAAoB,CAAA;AACxE,EAAA,cAAA,EAAe;AAEjB;AAXsB,MAAA,CAAA,IAAA,EAAA,MAAA,CAAA;AAcf,SAAS,yBAAyB,IAAA,EAGtC;AACD,EAAA,IAAI,CAAC,OAAA,CAAQ,GAAA,CAAI,aAAA,SAAsB,EAAC;AACxC,EAAA,MAAM,OAAA,GAAU,IAAA,CAAK,KAAA,CAAM,OAAA,CAAQ,IAAI,aAAa,CAAA;AACpD,EAAA,MAAM,eAAe,EAAC;AACtB,EAAA,KAAA,MAAW,GAAA,IAAO,QAAQ,MAAA,EAAQ;AAChC,IAAA,MAAM,QAAA,GAAW,OAAA,CAAQ,MAAA,CAAO,GAAG,CAAA;AACnC,IAAA,MAAM,WAAA,GAAc,CAAC,QAAA,CAAS,WAAA,IAAe,IAAA,EAAM,gBAAA;AACnD,IAAA,IAAI,CAAC,WAAA,EAAa;AAClB,IAAA,YAAA,CAAa,CAAA,EAAG,IAAA,EAAM,SAAA,IAAa,KAAK,IAAI,GAAG,CAAA,CAAE,CAAA,GAAI,IAAA,CAAK,SAAA,CAAU,OAAA,CAAQ,MAAA,CAAO,GAAG,EAAE,KAAK,CAAA;AAAA,EAC/F;AACA,EAAA,OAAO,YAAA;AACT;AAdgB,MAAA,CAAA,wBAAA,EAAA,0BAAA,CAAA;AAiBT,IAAM,QAAA,GAAW;AAAA;AAAA,EAEtB,QAAA;AAAA,EACA,oBAAA;AAAA;AAAA,EAGA,YAAA;AAAA;AAAA,EAGA,eAAA;AAAA,EACA,WAAA;AAAA,EACA,eAAA;AAAA,EACA,aAAA;AAAA,EACA,eAAA;AAAA;AAAA,EAGA,mBAAA;AAAA,EACA,oBAAA;AAAA,EACA;AACF","file":"index.js","sourcesContent":["import { checkForConfigErrors } from './cli/helpers/error-checks';\nimport { loadVarlockEnvGraph } from './lib/load-graph';\nimport { initVarlockEnv } from './runtime/env';\nimport { checkBunVersion } from './lib/check-bun-version';\n\n// Import env-graph components for internal API\nimport {\n EnvGraph,\n loadEnvGraph,\n DotEnvFileDataSource,\n ConfigLoadError,\n SchemaError,\n ValidationError,\n CoercionError,\n ResolutionError,\n type SerializedEnvGraph,\n} from './env-graph';\n\nexport async function load() {\n checkBunVersion();\n // TODO: add some options\n const envGraph = await loadVarlockEnvGraph();\n await envGraph.resolveEnvValues();\n checkForConfigErrors(envGraph);\n\n // loadFromSerializedGraph(envGraph.getSerializedGraph());\n process.env.__VARLOCK_ENV = JSON.stringify(envGraph.getSerializedGraph());\n initVarlockEnv();\n // TODO: return resolved env and schema / meta info\n}\n\n\nexport function getBuildTimeReplacements(opts?: {\n objectKey?: string,\n includeSensitive?: boolean,\n}) {\n if (!process.env.__VARLOCK_ENV) return {};\n const envInfo = JSON.parse(process.env.__VARLOCK_ENV) as SerializedEnvGraph;\n const replacements = {} as Record<string, string>;\n for (const key in envInfo.config) {\n const itemInfo = envInfo.config[key];\n const replaceItem = !itemInfo.isSensitive || opts?.includeSensitive;\n if (!replaceItem) continue;\n replacements[`${opts?.objectKey || 'ENV'}.${key}`] = JSON.stringify(envInfo.config[key].value);\n }\n return replacements;\n}\n\n// Internal API for direct env graph manipulation\nexport const internal = {\n // Core classes\n EnvGraph,\n DotEnvFileDataSource,\n\n // Loader function\n loadEnvGraph,\n\n // Error classes\n ConfigLoadError,\n SchemaError,\n ValidationError,\n CoercionError,\n ResolutionError,\n\n // Varlock-specific utilities\n loadVarlockEnvGraph,\n checkForConfigErrors,\n initVarlockEnv,\n};\n\nexport { patchGlobalConsole } from './runtime/patch-console';\nexport { patchGlobalServerResponse } from './runtime/patch-server-response';\nexport { patchGlobalResponse } from './runtime/patch-response';\nexport { ENV } from './runtime/env';\nexport { createDebug, type Debugger } from './lib/debug';\nexport type { SerializedEnvGraph };\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { commandFn, commandSpec } from './chunk-F6ZYIWAR.js';
|
|
2
|
+
import './chunk-P33JXOU6.js';
|
|
3
|
+
import './chunk-INGOLNLE.js';
|
|
4
|
+
import './chunk-CHQDS2PI.js';
|
|
5
|
+
import './chunk-4A54P4EM.js';
|
|
6
|
+
import './chunk-JOGGSYT2.js';
|
|
7
|
+
import './chunk-GKN3UJNE.js';
|
|
8
|
+
import './chunk-O3WTD6L4.js';
|
|
9
|
+
import './chunk-IRXBCLL2.js';
|
|
10
|
+
import './chunk-FA5SNEKN.js';
|
|
11
|
+
import './chunk-XLYSNOR3.js';
|
|
12
|
+
import './chunk-6PEHRAEP.js';
|
|
13
|
+
//# sourceMappingURL=init.command-3EDACW36.js.map
|
|
14
|
+
//# sourceMappingURL=init.command-3EDACW36.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"init.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"init.command-3EDACW36.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { commandFn, commandSpec } from './chunk-WJLMLKSG.js';
|
|
2
|
+
import './chunk-GXNQVEXD.js';
|
|
3
|
+
import './chunk-INGOLNLE.js';
|
|
4
|
+
import './chunk-4A54P4EM.js';
|
|
5
|
+
import './chunk-JOGGSYT2.js';
|
|
6
|
+
import './chunk-GKN3UJNE.js';
|
|
7
|
+
import './chunk-O3WTD6L4.js';
|
|
8
|
+
import './chunk-IRXBCLL2.js';
|
|
9
|
+
import './chunk-FA5SNEKN.js';
|
|
10
|
+
import './chunk-XLYSNOR3.js';
|
|
11
|
+
import './chunk-6PEHRAEP.js';
|
|
12
|
+
//# sourceMappingURL=install-plugin.command-MXBZTBTE.js.map
|
|
13
|
+
//# sourceMappingURL=install-plugin.command-MXBZTBTE.js.map
|
package/dist/{install-plugin.command-X7RSLPUJ.js.map → install-plugin.command-MXBZTBTE.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"install-plugin.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"install-plugin.command-MXBZTBTE.js"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VarlockExecError, execSyncVarlock } from '../chunk-
|
|
1
|
+
export { VarlockExecError, execSyncVarlock } from '../chunk-ZTFQ7ZVH.js';
|
|
2
2
|
import '../chunk-6PEHRAEP.js';
|
|
3
3
|
//# sourceMappingURL=exec-sync-varlock.js.map
|
|
4
4
|
//# sourceMappingURL=exec-sync-varlock.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { commandFn, commandSpec, formatShellValue } from './chunk-HMWAOBZR.js';
|
|
2
|
+
import './chunk-CHQDS2PI.js';
|
|
3
|
+
import './chunk-4A54P4EM.js';
|
|
4
|
+
import './chunk-XUY3HAO2.js';
|
|
5
|
+
import './chunk-C5LW5EET.js';
|
|
6
|
+
import './chunk-YWTIKDGU.js';
|
|
7
|
+
import './chunk-JOGGSYT2.js';
|
|
8
|
+
import './chunk-GKN3UJNE.js';
|
|
9
|
+
import './chunk-O3WTD6L4.js';
|
|
10
|
+
import './chunk-IRXBCLL2.js';
|
|
11
|
+
import './chunk-FA5SNEKN.js';
|
|
12
|
+
import './chunk-XLYSNOR3.js';
|
|
13
|
+
import './chunk-6PEHRAEP.js';
|
|
14
|
+
//# sourceMappingURL=load.command-XRABTXAE.js.map
|
|
15
|
+
//# sourceMappingURL=load.command-XRABTXAE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"load.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"load.command-XRABTXAE.js"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { commandFn, commandSpec } from './chunk-5DRCCFKV.js';
|
|
2
|
+
import './chunk-4A54P4EM.js';
|
|
3
|
+
import './chunk-YWTIKDGU.js';
|
|
4
|
+
import './chunk-O3WTD6L4.js';
|
|
5
|
+
import './chunk-6PEHRAEP.js';
|
|
6
|
+
//# sourceMappingURL=lock.command-O5MPBQ2I.js.map
|
|
7
|
+
//# sourceMappingURL=lock.command-O5MPBQ2I.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"lock.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"lock.command-O5MPBQ2I.js"}
|
package/dist/plugin-lib.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VarlockPlugin } from './env-graph-
|
|
2
|
-
export { C as CoercionError, D as Debugger, R as ResolutionError, a as Resolver, S as SchemaError, b as ValidationError, c as createDebug } from './env-graph-
|
|
1
|
+
import { V as VarlockPlugin } from './env-graph-DImkUkjl.js';
|
|
2
|
+
export { C as CoercionError, D as Debugger, R as ResolutionError, a as Resolver, S as SchemaError, b as ValidationError, c as createDebug } from './env-graph-DImkUkjl.js';
|
|
3
3
|
import '@env-spec/parser';
|
|
4
4
|
import '@env-spec/utils/type-utils';
|
|
5
5
|
|
package/dist/plugin-lib.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { pluginProxy } from './chunk-
|
|
2
|
-
export { CoercionError, ResolutionError, SchemaError, ValidationError, createDebug } from './chunk-
|
|
1
|
+
import { pluginProxy } from './chunk-FA5SNEKN.js';
|
|
2
|
+
export { CoercionError, ResolutionError, SchemaError, ValidationError, createDebug } from './chunk-FA5SNEKN.js';
|
|
3
3
|
import './chunk-6PEHRAEP.js';
|
|
4
4
|
|
|
5
5
|
// src/plugin-lib.ts
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { commandFn, commandSpec } from './chunk-XXSPHSF7.js';
|
|
2
|
+
import './chunk-CHQDS2PI.js';
|
|
3
|
+
import './chunk-4A54P4EM.js';
|
|
4
|
+
import './chunk-XUY3HAO2.js';
|
|
5
|
+
import './chunk-C5LW5EET.js';
|
|
6
|
+
import './chunk-YWTIKDGU.js';
|
|
7
|
+
import './chunk-JOGGSYT2.js';
|
|
8
|
+
import './chunk-GKN3UJNE.js';
|
|
9
|
+
import './chunk-O3WTD6L4.js';
|
|
10
|
+
import './chunk-IRXBCLL2.js';
|
|
11
|
+
import './chunk-FA5SNEKN.js';
|
|
12
|
+
import './chunk-XLYSNOR3.js';
|
|
13
|
+
import './chunk-6PEHRAEP.js';
|
|
14
|
+
//# sourceMappingURL=printenv.command-DLCI4IPZ.js.map
|
|
15
|
+
//# sourceMappingURL=printenv.command-DLCI4IPZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"printenv.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"printenv.command-DLCI4IPZ.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { commandFn, commandSpec } from './chunk-RQZZDYWL.js';
|
|
2
|
+
import './chunk-CHQDS2PI.js';
|
|
3
|
+
import './chunk-4A54P4EM.js';
|
|
4
|
+
import './chunk-XUY3HAO2.js';
|
|
5
|
+
import './chunk-C5LW5EET.js';
|
|
6
|
+
import './chunk-YWTIKDGU.js';
|
|
7
|
+
import './chunk-JOGGSYT2.js';
|
|
8
|
+
import './chunk-GKN3UJNE.js';
|
|
9
|
+
import './chunk-O3WTD6L4.js';
|
|
10
|
+
import './chunk-IRXBCLL2.js';
|
|
11
|
+
import './chunk-FA5SNEKN.js';
|
|
12
|
+
import './chunk-XLYSNOR3.js';
|
|
13
|
+
import './chunk-6PEHRAEP.js';
|
|
14
|
+
//# sourceMappingURL=reveal.command-6BTK3FJZ.js.map
|
|
15
|
+
//# sourceMappingURL=reveal.command-6BTK3FJZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"reveal.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"reveal.command-6BTK3FJZ.js"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { commandFn, commandSpec } from './chunk-KI5QLKPU.js';
|
|
2
|
+
import './chunk-CHQDS2PI.js';
|
|
3
|
+
import './chunk-4A54P4EM.js';
|
|
4
|
+
import './chunk-XUY3HAO2.js';
|
|
5
|
+
import './chunk-C5LW5EET.js';
|
|
6
|
+
import './chunk-YWTIKDGU.js';
|
|
7
|
+
import './chunk-JOGGSYT2.js';
|
|
8
|
+
import './chunk-GKN3UJNE.js';
|
|
9
|
+
import './chunk-O3WTD6L4.js';
|
|
10
|
+
import './chunk-IRXBCLL2.js';
|
|
11
|
+
import './chunk-FA5SNEKN.js';
|
|
12
|
+
import './chunk-UUJK65RS.js';
|
|
13
|
+
import './chunk-XLYSNOR3.js';
|
|
14
|
+
import './chunk-6PEHRAEP.js';
|
|
15
|
+
//# sourceMappingURL=run.command-5CIHZECD.js.map
|
|
16
|
+
//# sourceMappingURL=run.command-5CIHZECD.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"run.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"run.command-5CIHZECD.js"}
|
package/dist/runtime/env.d.ts
CHANGED
package/dist/runtime/env.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ENV, getRedactionMapInfo, initVarlockEnv, redactSensitiveConfig, resetRedactionMap, revealSensitiveConfig, scanForLeaks, varlockSettings } from '../chunk-
|
|
1
|
+
export { ENV, getRedactionMapInfo, initVarlockEnv, redactSensitiveConfig, resetRedactionMap, revealSensitiveConfig, scanForLeaks, varlockSettings } from '../chunk-UUJK65RS.js';
|
|
2
2
|
import '../chunk-XLYSNOR3.js';
|
|
3
3
|
import '../chunk-6PEHRAEP.js';
|
|
4
4
|
//# sourceMappingURL=env.js.map
|
|
@@ -150,6 +150,7 @@ function scanForLeaks(toScan, meta) {
|
|
|
150
150
|
return toScan;
|
|
151
151
|
}
|
|
152
152
|
var initializedEnv = false;
|
|
153
|
+
var configHasErrors = false;
|
|
153
154
|
var envValues = {};
|
|
154
155
|
var varlockSettings = {};
|
|
155
156
|
var processExists = !!globalThis.process;
|
|
@@ -177,6 +178,7 @@ function initVarlockEnv(opts) {
|
|
|
177
178
|
throw new Error("initVarlockEnv failed");
|
|
178
179
|
}
|
|
179
180
|
Object.assign(varlockSettings, serializedEnvData.settings);
|
|
181
|
+
configHasErrors = !!serializedEnvData.errors;
|
|
180
182
|
resetRedactionMap(serializedEnvData);
|
|
181
183
|
const setProcessEnv = processExists;
|
|
182
184
|
if (setProcessEnv) {
|
|
@@ -211,7 +213,13 @@ var EnvProxy = new Proxy({}, {
|
|
|
211
213
|
if (typeof prop === "symbol") return;
|
|
212
214
|
if (IGNORED_PROXY_KEYS.includes(prop)) return;
|
|
213
215
|
if (!initializedEnv) {
|
|
214
|
-
throw new Error(
|
|
216
|
+
throw new Error(
|
|
217
|
+
"varlock ENV not initialized \u2014 make sure varlock is set up correctly.\nSee https://varlock.dev/docs/get-started for setup instructions."
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
if (configHasErrors) {
|
|
221
|
+
console.error(`[varlock] \u26A0\uFE0F ENV.${prop} accessed but config has errors \u2014 values may be missing or incorrect`);
|
|
222
|
+
return void 0;
|
|
215
223
|
}
|
|
216
224
|
if (prop in envValues) return envValues[prop];
|
|
217
225
|
if (globalThis.__varlockThrowOnMissingKeys) {
|
|
@@ -157,6 +157,7 @@ function scanForLeaks(toScan, meta) {
|
|
|
157
157
|
return toScan;
|
|
158
158
|
}
|
|
159
159
|
var initializedEnv = false;
|
|
160
|
+
var configHasErrors = false;
|
|
160
161
|
var envValues = {};
|
|
161
162
|
var varlockSettings = {};
|
|
162
163
|
var processExists = !!globalThis.process;
|
|
@@ -184,6 +185,7 @@ function initVarlockEnv(opts) {
|
|
|
184
185
|
throw new Error("initVarlockEnv failed");
|
|
185
186
|
}
|
|
186
187
|
Object.assign(varlockSettings, serializedEnvData.settings);
|
|
188
|
+
configHasErrors = !!serializedEnvData.errors;
|
|
187
189
|
resetRedactionMap(serializedEnvData);
|
|
188
190
|
const setProcessEnv = processExists;
|
|
189
191
|
if (setProcessEnv) {
|
|
@@ -218,7 +220,13 @@ var EnvProxy = new Proxy({}, {
|
|
|
218
220
|
if (typeof prop === "symbol") return;
|
|
219
221
|
if (IGNORED_PROXY_KEYS.includes(prop)) return;
|
|
220
222
|
if (!initializedEnv) {
|
|
221
|
-
throw new Error(
|
|
223
|
+
throw new Error(
|
|
224
|
+
"varlock ENV not initialized \u2014 make sure varlock is set up correctly.\nSee https://varlock.dev/docs/get-started for setup instructions."
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
if (configHasErrors) {
|
|
228
|
+
console.error(`[varlock] \u26A0\uFE0F ENV.${prop} accessed but config has errors \u2014 values may be missing or incorrect`);
|
|
229
|
+
return void 0;
|
|
222
230
|
}
|
|
223
231
|
if (prop in envValues) return envValues[prop];
|
|
224
232
|
if (globalThis.__varlockThrowOnMissingKeys) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { patchGlobalConsole, unpatchGlobalConsole } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { patchGlobalConsole, unpatchGlobalConsole } from '../chunk-QDEAHBCB.js';
|
|
2
|
+
import '../chunk-UUJK65RS.js';
|
|
3
3
|
import '../chunk-XLYSNOR3.js';
|
|
4
4
|
import '../chunk-6PEHRAEP.js';
|
|
5
5
|
//# sourceMappingURL=patch-console.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { patchGlobalResponse } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { patchGlobalResponse } from '../chunk-KFALDUEO.js';
|
|
2
|
+
import '../chunk-UUJK65RS.js';
|
|
3
3
|
import '../chunk-XLYSNOR3.js';
|
|
4
4
|
import '../chunk-6PEHRAEP.js';
|
|
5
5
|
//# sourceMappingURL=patch-response.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { patchGlobalServerResponse } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { patchGlobalServerResponse } from '../chunk-DIPEXEIL.js';
|
|
2
|
+
import '../chunk-UUJK65RS.js';
|
|
3
3
|
import '../chunk-XLYSNOR3.js';
|
|
4
4
|
import '../chunk-6PEHRAEP.js';
|
|
5
5
|
//# sourceMappingURL=patch-server-response.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { commandFn, commandSpec, getGitFiles, resolveTargetPaths, scanFileForValues, walkDirectory, walkDirectoryAll } from './chunk-NW4KR67N.js';
|
|
2
|
+
import './chunk-GXNQVEXD.js';
|
|
3
|
+
import './chunk-INGOLNLE.js';
|
|
4
|
+
import './chunk-CHQDS2PI.js';
|
|
5
|
+
import './chunk-4A54P4EM.js';
|
|
6
|
+
import './chunk-C5LW5EET.js';
|
|
7
|
+
import './chunk-YWTIKDGU.js';
|
|
8
|
+
import './chunk-JOGGSYT2.js';
|
|
9
|
+
import './chunk-GKN3UJNE.js';
|
|
10
|
+
import './chunk-O3WTD6L4.js';
|
|
11
|
+
import './chunk-IRXBCLL2.js';
|
|
12
|
+
import './chunk-FA5SNEKN.js';
|
|
13
|
+
import './chunk-XLYSNOR3.js';
|
|
14
|
+
import './chunk-6PEHRAEP.js';
|
|
15
|
+
//# sourceMappingURL=scan.command-PW3OOLQY.js.map
|
|
16
|
+
//# sourceMappingURL=scan.command-PW3OOLQY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"scan.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"scan.command-PW3OOLQY.js"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { commandFn, commandSpec } from './chunk-WTBUNHUJ.js';
|
|
2
|
+
import './chunk-INGOLNLE.js';
|
|
3
|
+
import './chunk-CHQDS2PI.js';
|
|
4
|
+
import './chunk-4A54P4EM.js';
|
|
5
|
+
import './chunk-JOGGSYT2.js';
|
|
6
|
+
import './chunk-GKN3UJNE.js';
|
|
7
|
+
import './chunk-O3WTD6L4.js';
|
|
8
|
+
import './chunk-IRXBCLL2.js';
|
|
9
|
+
import './chunk-FA5SNEKN.js';
|
|
10
|
+
import './chunk-XLYSNOR3.js';
|
|
11
|
+
import './chunk-6PEHRAEP.js';
|
|
12
|
+
//# sourceMappingURL=telemetry.command-TZDNG2WR.js.map
|
|
13
|
+
//# sourceMappingURL=telemetry.command-TZDNG2WR.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"telemetry.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"telemetry.command-TZDNG2WR.js"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { commandFn, commandSpec } from './chunk-HH647LSU.js';
|
|
2
|
+
import './chunk-4A54P4EM.js';
|
|
3
|
+
import './chunk-XUY3HAO2.js';
|
|
4
|
+
import './chunk-C5LW5EET.js';
|
|
5
|
+
import './chunk-YWTIKDGU.js';
|
|
6
|
+
import './chunk-JOGGSYT2.js';
|
|
7
|
+
import './chunk-GKN3UJNE.js';
|
|
8
|
+
import './chunk-O3WTD6L4.js';
|
|
9
|
+
import './chunk-IRXBCLL2.js';
|
|
10
|
+
import './chunk-FA5SNEKN.js';
|
|
11
|
+
import './chunk-XLYSNOR3.js';
|
|
12
|
+
import './chunk-6PEHRAEP.js';
|
|
13
|
+
//# sourceMappingURL=typegen.command-QD26Q3MP.js.map
|
|
14
|
+
//# sourceMappingURL=typegen.command-QD26Q3MP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"typegen.command-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"typegen.command-QD26Q3MP.js"}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "varlock",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "AI-safe .env files: Schemas for agents, Secrets for humans.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"devDependencies": {
|
|
131
131
|
"@clack/core": "^1.0.0",
|
|
132
132
|
"@clack/prompts": "^1.0.0",
|
|
133
|
-
"@env-spec/parser": "0.3.
|
|
133
|
+
"@env-spec/parser": "0.3.2",
|
|
134
134
|
"@env-spec/utils": "0.0.0",
|
|
135
135
|
"@sindresorhus/is": "^7.2.0",
|
|
136
136
|
"@types/bun": "^1.3.11",
|