getmyenv 0.9.7 → 0.9.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/README.md CHANGED
@@ -35,7 +35,7 @@ Prompts and status lines go to stderr, so `export --stdout > .env` stays clean.
35
35
  Commit `.getmyenv/project.json`. `token.json` and `claim.json` stay local and are gitignored.
36
36
 
37
37
  <!-- cli:help -->
38
- Output of `npx getmyenv --help` (0.9.7):
38
+ Output of `npx getmyenv --help` (0.9.8):
39
39
 
40
40
  ```text
41
41
  Usage: getmyenv [options] [command]
@@ -13,4 +13,6 @@ export declare function createGuestProject(opts?: GuestOpts): Promise<{
13
13
  projectName: string;
14
14
  guestExpiresAt: string;
15
15
  }>;
16
+ /** The steps printed after guest, in plain text. Runtime first, export only as an alternative. */
17
+ export declare function guestNextLines(): string[];
16
18
  export declare function guestCommand(opts?: GuestOpts): Promise<void>;
@@ -61,13 +61,34 @@ export async function createGuestProject(opts = {}) {
61
61
  }
62
62
  return created;
63
63
  }
64
+ /** The steps printed after guest, in plain text. Runtime first, export only as an alternative. */
65
+ export function guestNextLines() {
66
+ return [
67
+ "Next:",
68
+ " npx getmyenv import # from .env",
69
+ " npx getmyenv set API_KEY # or one at a time",
70
+ " npx getmyenv run -- npm start # your start command, no .env file on disk",
71
+ " npx getmyenv claim # keep it, with an account",
72
+ "",
73
+ "Only if a tool needs a .env file:",
74
+ " npx getmyenv export # writes a plaintext .env",
75
+ "",
76
+ `For AI agents: ${FACTS.agentRunOrExport}`,
77
+ ];
78
+ }
79
+ function colorNextLine(line) {
80
+ const hash = line.indexOf("# ");
81
+ if (line.startsWith(" npx ") && hash > 0) {
82
+ return pc.cyan(line.slice(0, hash)) + pc.dim(line.slice(hash));
83
+ }
84
+ if (line.startsWith("For AI agents:"))
85
+ return pc.dim(line);
86
+ return line;
87
+ }
64
88
  export async function guestCommand(opts = {}) {
65
89
  console.error(pc.bold("\ngetmyenv guest\n"));
66
90
  await createGuestProject(opts);
67
- console.error("Next:");
68
- console.error(pc.cyan(" npx getmyenv import ") + pc.dim("# from .env"));
69
- console.error(pc.cyan(" npx getmyenv set API_KEY ") + pc.dim("# or one at a time"));
70
- console.error(pc.cyan(" npx getmyenv run -- npm start ") + pc.dim("# your start command"));
71
- console.error(pc.cyan(" npx getmyenv claim ") + pc.dim("# keep it, with an account"));
91
+ for (const line of guestNextLines())
92
+ console.error(colorNextLine(line));
72
93
  console.error("");
73
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getmyenv",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "CLI for getmyenv, an encrypted store for environment variables and secrets. We store ciphertext only.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@getmyenv/crypto": "0.4.1",
37
- "@getmyenv/shared": "0.8.3",
37
+ "@getmyenv/shared": "0.8.4",
38
38
  "@napi-rs/keyring": "^2.1.0",
39
39
  "commander": "^15.0.0",
40
40
  "dotenv": "^16.4.7",