enigma-cli 1.9.0 → 1.10.1

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
@@ -134,6 +134,7 @@ enigma codex acme # run Codex as 'acme'
134
134
  enigma account use personal # make 'personal' the active account
135
135
  enigma claude # run the resolved account (profile > active)
136
136
  enigma claude work -- --version # forward args after -- to the tool
137
+ enigma account rename work corp # rename an account (its config dir moves)
137
138
  enigma account remove work # delete an account and its config dir
138
139
  ```
139
140
 
@@ -155,18 +156,20 @@ enigma profile set work claude work # pin claude account 'work'
155
156
  enigma profile set work codex acme # pin codex account 'acme'
156
157
  enigma profile use work # activate (enigma claude/codex now use it)
157
158
  enigma profile list # profiles + mappings (* = active)
159
+ enigma profile rename work corp # rename a profile (mappings stay)
158
160
  enigma profile use none # deactivate
159
161
  ```
160
162
 
161
163
  From the hub TUI (`enigma`), the **Accounts** panel lists every tool's accounts -
162
164
  with the signed-in identity (email for Claude/Codex, connected providers for
163
165
  OpenCode) - and lets you **add** (`a`), set active (`enter`), **connect**/log in
164
- (`c`), or remove (`d`). Adding first asks **which tool** with a searchable
165
- selector (type to filter, like opencode's model picker), then the account name,
166
- then offers to connect right away. The **Profiles** panel manages profiles
167
- end-to-end: `enter` switches the active one (`(none)` deactivates), `a` creates
168
- one, `e` edits its mappings (searchable tool selector, then a searchable account
169
- selector including `(unpin)`), and `d` removes it (accounts are kept).
166
+ (`c`), rename (`r`), or remove (`d`). Adding first asks **which tool** with a
167
+ searchable selector (type to filter, like opencode's model picker), then the
168
+ account name, then offers to connect right away. The **Profiles** panel manages
169
+ profiles end-to-end: `enter` switches the active one (`(none)` deactivates), `a`
170
+ creates one, `e` edits its mappings (searchable tool selector, then a searchable
171
+ account selector including `(unpin)`), `r` renames it, and `d` removes it
172
+ (accounts are kept).
170
173
 
171
174
  ## GitHub CLI telemetry (default off)
172
175
 
@@ -3,6 +3,6 @@
3
3
  "version": "1.0.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Backend/API architecture: controller-service-repository layering, API and request optimization, server-side caching (Redis), and Zod boundary validation.",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "c442bc9e39a7710cb709ef2abb8d15ecd8aa16ed4f5c8af92b7af6877401cba4"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.1.1",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Ciphera code style conventions (formatting, naming, imports, comments, code-level anti-patterns; TypeScript-first, language-agnostic).",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "74f638aec13e8c93257fe1ad604c28b07e9a7c456796a4ceefcc99217d9e7039"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.0.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Pre-delivery self-review gate, prioritized review dimensions, and change-quality criteria.",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "3d3bbe0602d5bbb4afe37648fe3c2fa39376b1bcbac5d8c441f01fad1e866ed0"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.4.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Core engineering execution policy and harness orchestration (highest-authority rules).",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "c9c69c59516794311cb7b306ed4d4ad971824de3689a39c2b86c7669c73f2e8b"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.1.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Senior database architecture policy: query optimization, anti-duplication/normalization, scalability, and RGPD/GDPR encryption.",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "2883bcecb3202683ae6f81b073c3d6a9cec9c55029e011bdd06ba7ac3537297e"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.0.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Reproduce-isolate-fix debugging methodology with root-cause discipline and regression verification.",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "14b0064c8b33a0dc85e51464b05005cf5801c756b1101789a6924b9548420f6b"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.0.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Dependency and supply-chain security: lockfiles and reproducible installs, version pinning, vulnerability auditing, vetting/minimizing packages, vendoring, and SBOM/provenance.",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "6375d835c2aef2c9bd31ce116444dc3d796f510f9970a213aa3ac4696d7e21b9"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.1.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Frontend architecture: reusable components, abstraction thresholds, state management, and optimistic UI with rollback.",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "33fa1e9f667ef26203a3d6c892121efe12b0cddb706c195492fa97e080fba115"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.2.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Git & contribution policy (senior engineering standards).",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "ada4b7eb5bb7e013429e23703c271c0f34b0d76327c059efa148ea2794f96178"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.0.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Application and AI-agent security: secrets, authn/authz (least privilege), OWASP Top 10, transport/crypto baseline, secure logging, and agent/MCP/tool-use safety.",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "9971e9d9127397d0152e89d24aad3191e2935e55a8483db7fd15f5d4d7a60e7a"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.0.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Test strategy, coverage gates, deterministic tests, mocking discipline, and regression-first bug fixing.",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "d19fa8ec7985ed231478be504d3c80360897f555d0bc0624bea19c091f459fb0"
8
8
  }
@@ -3,6 +3,6 @@
3
3
  "version": "1.0.0",
4
4
  "provider": "FJRG2007/enigma",
5
5
  "description": "Strict frontend + backend schema validation, schema consistency, and safe client-facing error handling.",
6
- "cliVersion": "1.9.0",
6
+ "cliVersion": "1.10.1",
7
7
  "sha": "a33622a2f810ee4cea39824cb1a7ca34b355a917d4224025df50d77dd74f0b3a"
8
8
  }
@@ -1,6 +1,6 @@
1
1
  {
2
- "enigma-darwin-arm64": "df336a3c780a74da7a8a6a143bf7963b30088ee4fa19d9121b6dd85ca8d75957",
3
- "enigma-linux-arm64": "2aea3e48792894140792c45b99e07758cebb714dd1d486586ca8d8dbc5be9e0d",
4
- "enigma-linux-x64": "8f12aa2d6349b0337a43673bb01829e5406215d59937a7f61494fe1019d0380e",
5
- "enigma-win32-x64.exe": "66acd7f7e5bd096dc933b9a035d9fc10ca3ccc84abf20fa61700539055fa10fa"
2
+ "enigma-darwin-arm64": "9e042afeaba223ec78eaaea3b90cdd47867990d5ab16e62e007948be18a1befe",
3
+ "enigma-linux-arm64": "1baade9ad29a959234798af9fadd4beb4e246fcc796b74714fe1e6e83e9cf08f",
4
+ "enigma-linux-x64": "9ba250aaea59729627e1ff2eacb4125fb573111d8fda2c60bf2114117b62452b",
5
+ "enigma-win32-x64.exe": "636f392c10fa7b6ae1b2aaaacc8416fb9e507f3343d139ab43353675bbcab6e1"
6
6
  }
package/bin/enigma.mjs CHANGED
@@ -71,12 +71,15 @@ try {
71
71
  }
72
72
 
73
73
  // Tell the binary where the on-disk assets, guard, and version live (its own
74
- // __dirname points into Bun's virtual fs and cannot see these).
74
+ // __dirname points into Bun's virtual fs and cannot see these). Always set them
75
+ // from THIS launcher's package root: shells or tools spawned by an older enigma
76
+ // (e.g. `enigma claude`) inherit the old values, and honoring them would make a
77
+ // nested `enigma` report a stale version (and stale paths) after an update.
75
78
  const env = { ...process.env };
76
- env.ENIGMA_ASSETS_DIR ??= join(pkgRoot, "assets");
77
- env.ENIGMA_GUARD_PATH ??= join(pkgRoot, "dist", "guard.js");
79
+ env.ENIGMA_ASSETS_DIR = join(pkgRoot, "assets");
80
+ env.ENIGMA_GUARD_PATH = join(pkgRoot, "dist", "guard.js");
78
81
  try {
79
- env.ENIGMA_VERSION ??= packageVersion();
82
+ env.ENIGMA_VERSION = packageVersion();
80
83
  } catch { /* version is best-effort */ }
81
84
 
82
85
  const child = spawn(binary, process.argv.slice(2), { stdio: "inherit", env });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enigma-cli",
3
- "version": "1.9.0",
3
+ "version": "1.10.1",
4
4
  "description": "Everything you need to work with a coding agent: install shared policy skills for Claude Code, OpenAI Codex and opencode, and set up portable git security hooks.",
5
5
  "type": "module",
6
6
  "bin": {