envibe 0.2.1 → 0.2.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/dist/cli/index.js +15 -15
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -15545,7 +15545,7 @@ function serializeManifest(manifest) {
|
|
|
15545
15545
|
version: manifest.version,
|
|
15546
15546
|
variables: manifest.variables
|
|
15547
15547
|
});
|
|
15548
|
-
const header = `#
|
|
15548
|
+
const header = `# envibe manifest - AI access control for environment variables
|
|
15549
15549
|
# Access levels:
|
|
15550
15550
|
# full - AI can see and modify the value
|
|
15551
15551
|
# read-only - AI can see but not modify
|
|
@@ -15866,9 +15866,9 @@ function filterForAI(env, manifest) {
|
|
|
15866
15866
|
}
|
|
15867
15867
|
function generateAIEnvContent(variables) {
|
|
15868
15868
|
const lines = [
|
|
15869
|
-
"# Generated by
|
|
15869
|
+
"# Generated by envibe - AI-safe view of environment variables",
|
|
15870
15870
|
"# See .env.manifest.yaml for access rules",
|
|
15871
|
-
"# DO NOT EDIT - regenerate with:
|
|
15871
|
+
"# DO NOT EDIT - regenerate with: envibe generate",
|
|
15872
15872
|
""
|
|
15873
15873
|
];
|
|
15874
15874
|
for (const variable of variables) {
|
|
@@ -16059,8 +16059,8 @@ Created ${manifestPath}`);
|
|
|
16059
16059
|
console.log(`
|
|
16060
16060
|
Next steps:`);
|
|
16061
16061
|
console.log(` 1. Review and adjust access levels in ${manifestPath}`);
|
|
16062
|
-
console.log(" 2. Run:
|
|
16063
|
-
console.log(" 3. Run:
|
|
16062
|
+
console.log(" 2. Run: envibe generate");
|
|
16063
|
+
console.log(" 3. Run: envibe setup (to configure Claude Code)");
|
|
16064
16064
|
});
|
|
16065
16065
|
|
|
16066
16066
|
// src/cli/commands/generate.ts
|
|
@@ -16087,7 +16087,7 @@ Access level summary:`);
|
|
|
16087
16087
|
}
|
|
16088
16088
|
} catch (error) {
|
|
16089
16089
|
if (error instanceof Error && error.message.includes("not found")) {
|
|
16090
|
-
console.error("Error: No manifest found. Run '
|
|
16090
|
+
console.error("Error: No manifest found. Run 'envibe init' first.");
|
|
16091
16091
|
process.exit(1);
|
|
16092
16092
|
}
|
|
16093
16093
|
throw error;
|
|
@@ -16151,7 +16151,7 @@ var viewCommand = new Command("view").description("Display environment variables
|
|
|
16151
16151
|
}
|
|
16152
16152
|
} catch (error) {
|
|
16153
16153
|
if (error instanceof Error && error.message.includes("not found")) {
|
|
16154
|
-
console.error("Error: No manifest found. Run '
|
|
16154
|
+
console.error("Error: No manifest found. Run 'envibe init' first.");
|
|
16155
16155
|
process.exit(1);
|
|
16156
16156
|
}
|
|
16157
16157
|
throw error;
|
|
@@ -16193,7 +16193,7 @@ To bypass access control, use --force (not recommended)`);
|
|
|
16193
16193
|
}
|
|
16194
16194
|
} catch (error) {
|
|
16195
16195
|
if (error instanceof Error && error.message.includes("not found")) {
|
|
16196
|
-
console.error("Error: No manifest found. Run '
|
|
16196
|
+
console.error("Error: No manifest found. Run 'envibe init' first.");
|
|
16197
16197
|
process.exit(1);
|
|
16198
16198
|
}
|
|
16199
16199
|
throw error;
|
|
@@ -16268,7 +16268,7 @@ Summary: ${errors2.length} errors, ${warnings.length} warnings`);
|
|
|
16268
16268
|
}
|
|
16269
16269
|
} catch (error) {
|
|
16270
16270
|
if (error instanceof Error && error.message.includes("not found")) {
|
|
16271
|
-
console.error("Error: No manifest found. Run '
|
|
16271
|
+
console.error("Error: No manifest found. Run 'envibe init' first.");
|
|
16272
16272
|
process.exit(1);
|
|
16273
16273
|
}
|
|
16274
16274
|
throw error;
|
|
@@ -16424,7 +16424,7 @@ var EXAMPLE_FILES = [
|
|
|
16424
16424
|
".env.development.example"
|
|
16425
16425
|
];
|
|
16426
16426
|
var GITIGNORE_PATTERNS = [
|
|
16427
|
-
"#
|
|
16427
|
+
"# envibe - environment files with secrets",
|
|
16428
16428
|
".env",
|
|
16429
16429
|
".env.local",
|
|
16430
16430
|
".env.development",
|
|
@@ -16434,7 +16434,7 @@ var GITIGNORE_PATTERNS = [
|
|
|
16434
16434
|
".env.secrets",
|
|
16435
16435
|
".env.keys",
|
|
16436
16436
|
"",
|
|
16437
|
-
"#
|
|
16437
|
+
"# envibe - generated AI-safe view (regenerated)",
|
|
16438
16438
|
".env.ai"
|
|
16439
16439
|
];
|
|
16440
16440
|
var FALLBACK_MANIFEST = {
|
|
@@ -16519,7 +16519,7 @@ async function classifyVariablesInteractive(varNames) {
|
|
|
16519
16519
|
return result;
|
|
16520
16520
|
}
|
|
16521
16521
|
var setupCommand = new Command("setup").description("Full setup: init manifest, generate .env.ai, configure Claude Code").option("-i, --interactive", "Interactively configure access levels for each variable").option("--skip-claude", "Skip Claude Code settings configuration").option("--skip-gitignore", "Skip .gitignore configuration").action(async (options) => {
|
|
16522
|
-
console.log(`Setting up
|
|
16522
|
+
console.log(`Setting up envibe...
|
|
16523
16523
|
`);
|
|
16524
16524
|
const manifestPath = getManifestFilename();
|
|
16525
16525
|
const manifestFile = Bun.file(manifestPath);
|
|
@@ -16586,7 +16586,7 @@ var setupCommand = new Command("setup").description("Full setup: init manifest,
|
|
|
16586
16586
|
Setup complete! Next steps:`);
|
|
16587
16587
|
console.log(" 1. Review .env.manifest.yaml and adjust access levels");
|
|
16588
16588
|
console.log(" 2. Create .env with your actual secrets (it's gitignored)");
|
|
16589
|
-
console.log(" 3. Run '
|
|
16589
|
+
console.log(" 3. Run 'envibe generate' to update .env.ai");
|
|
16590
16590
|
console.log(" 4. AI will read .env.ai and use MCP tools (secrets protected)");
|
|
16591
16591
|
});
|
|
16592
16592
|
async function configureGitignore() {
|
|
@@ -22947,8 +22947,8 @@ async function ensureSetup() {
|
|
|
22947
22947
|
}
|
|
22948
22948
|
async function startMCPServer() {
|
|
22949
22949
|
const server = new Server({
|
|
22950
|
-
name: "
|
|
22951
|
-
version: "0.
|
|
22950
|
+
name: "envibe",
|
|
22951
|
+
version: "0.2.2"
|
|
22952
22952
|
}, {
|
|
22953
22953
|
capabilities: {
|
|
22954
22954
|
tools: {},
|
package/dist/index.js
CHANGED
|
@@ -13494,7 +13494,7 @@ function serializeManifest(manifest) {
|
|
|
13494
13494
|
version: manifest.version,
|
|
13495
13495
|
variables: manifest.variables
|
|
13496
13496
|
});
|
|
13497
|
-
const header = `#
|
|
13497
|
+
const header = `# envibe manifest - AI access control for environment variables
|
|
13498
13498
|
# Access levels:
|
|
13499
13499
|
# full - AI can see and modify the value
|
|
13500
13500
|
# read-only - AI can see but not modify
|
|
@@ -13827,9 +13827,9 @@ function filterForAI(env, manifest) {
|
|
|
13827
13827
|
}
|
|
13828
13828
|
function generateAIEnvContent(variables) {
|
|
13829
13829
|
const lines = [
|
|
13830
|
-
"# Generated by
|
|
13830
|
+
"# Generated by envibe - AI-safe view of environment variables",
|
|
13831
13831
|
"# See .env.manifest.yaml for access rules",
|
|
13832
|
-
"# DO NOT EDIT - regenerate with:
|
|
13832
|
+
"# DO NOT EDIT - regenerate with: envibe generate",
|
|
13833
13833
|
""
|
|
13834
13834
|
];
|
|
13835
13835
|
for (const variable of variables) {
|
|
@@ -20456,8 +20456,8 @@ async function ensureSetup() {
|
|
|
20456
20456
|
}
|
|
20457
20457
|
async function startMCPServer() {
|
|
20458
20458
|
const server = new Server({
|
|
20459
|
-
name: "
|
|
20460
|
-
version: "0.
|
|
20459
|
+
name: "envibe",
|
|
20460
|
+
version: "0.2.2"
|
|
20461
20461
|
}, {
|
|
20462
20462
|
capabilities: {
|
|
20463
20463
|
tools: {},
|