superlean-codex 0.1.0 → 0.2.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/README.md CHANGED
@@ -29,21 +29,21 @@ The launcher:
29
29
  4. Saves your Superlean identity key and starts Codex in the current project.
30
30
 
31
31
  If the first check fails, run `codex login` directly and choose **Sign in with
32
- ChatGPT**, then run `superlean-codex` again. Superlean does not read, copy, or
32
+ ChatGPT**, then run `scodex` again. Superlean does not read, copy, or
33
33
  store the ChatGPT tokens in Codex's credential store.
34
34
 
35
35
  After setup, use the launcher just like Codex:
36
36
 
37
37
  ```sh
38
- superlean-codex
39
- superlean-codex --resume
40
- superlean-codex exec "Explain this repository"
38
+ scodex
39
+ scodex --resume
40
+ scodex exec "Explain this repository"
41
41
  ```
42
42
 
43
43
  Reconnect to Superlean after a key expires or is revoked:
44
44
 
45
45
  ```sh
46
- superlean-codex login
46
+ scodex login
47
47
  ```
48
48
 
49
49
  Reconnects reuse the existing usable Codex key entry. A new entry is created
package/bin/superlean.js CHANGED
@@ -10,7 +10,7 @@ const help = `Usage:
10
10
  npx superlean-codex@latest --no-profile Leave shell profiles unchanged
11
11
  npx superlean-codex@latest -- [args] Pass arguments to Codex
12
12
 
13
- After setup, use superlean-codex in a new terminal.
13
+ After setup, use scodex in a new terminal.
14
14
  Requires macOS, Linux, or WSL and Node.js 22+ with npm.`;
15
15
 
16
16
  async function main() {
@@ -28,7 +28,7 @@ async function main() {
28
28
  if (process.platform === 'win32') throw new Error('Use WSL for the Superlean shell launcher.');
29
29
  const result = await install({ home: homedir(), shell: process.env.SHELL, profile });
30
30
  console.log(`Superlean installed. Environment: ${result.envPath}`);
31
- if (result.profiles.length) console.log('Next time, open a new terminal and run superlean-codex.');
31
+ if (result.profiles.length) console.log('Next time, open a new terminal and run scodex.');
32
32
  else console.log(`Add the launcher to this shell: export PATH=${shellQuote(result.binDir)}:"$PATH"`);
33
33
  if (!launch) return;
34
34
  console.log('Checking your Codex login before applying Superlean settings.');
@@ -18,7 +18,7 @@ export async function configureCodex({ directory, baseUrl = 'https://api.superle
18
18
  }
19
19
  await mkdir(directory, { recursive: true, mode: 0o700 });
20
20
  const path = join(directory, 'codex.env.sh');
21
- const contents = `# Generated by Superlean. Reconnect with: superlean-codex login\nunset OPENAI_API_KEY\nexport SUPERLEANAI_CODEX_KEY=${shellQuote(userKey)}\n`;
21
+ const contents = `# Generated by Superlean. Reconnect with: scodex login\nunset OPENAI_API_KEY\nexport SUPERLEANAI_CODEX_KEY=${shellQuote(userKey)}\n`;
22
22
  await writeFile(path, contents, { mode: 0o600 });
23
23
  await chmod(path, 0o600);
24
24
  return path;
package/lib/install.js CHANGED
@@ -41,7 +41,7 @@ export async function install({ home, shell = '', profile = true }) {
41
41
  const envPath = join(directory, 'codex-user.env.sh');
42
42
  try { await writeFile(envPath, '# Personal Codex overrides. Preserved when Superlean is reinstalled.\n', { flag: 'wx', mode: 0o600 }); }
43
43
  catch (error) { if (error.code !== 'EEXIST') throw error; }
44
- const launcherPath = join(binDir, 'superlean-codex');
44
+ const launcherPath = join(binDir, 'scodex');
45
45
  const script = (await readFile(new URL('../shell/launcher.sh', import.meta.url), 'utf8'))
46
46
  .replaceAll('__SUPERLEAN_DIR__', shellQuote(directory))
47
47
  .replaceAll('__SUPERLEAN_LIB_DIR__', shellQuote(libDir));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superlean-codex",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "One-command setup and shell launcher for Codex through SuperleanAI.",
5
5
  "license": "MIT",
6
6
  "author": "SuperleanAI",