litcodex-ai 0.3.1 → 0.3.3

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
@@ -23,15 +23,24 @@
23
23
 
24
24
  ## Install
25
25
 
26
+ **One line, no global install:**
27
+
28
+ ```sh
29
+ npx --yes litcodex-ai install
30
+ ```
31
+
32
+ This registers the marketplace + plugin and installs the hook into Codex, preserving your existing
33
+ `~/.codex/config.toml` — it backs up before any change and never overwrites unrelated keys. Preview
34
+ the plan first with `npx --yes litcodex-ai --dry-run install`.
35
+
36
+ Prefer the `litcodex` command on your `PATH` (for `doctor` / `uninstall` / `loop` later)? Install
37
+ globally instead:
38
+
26
39
  ```sh
27
40
  npm install -g litcodex-ai
28
41
  litcodex install
29
42
  ```
30
43
 
31
- `litcodex install` registers the marketplace + plugin and installs the hook into Codex, preserving
32
- your existing `~/.codex/config.toml` — it backs up before any change and never overwrites unrelated
33
- keys. Preview the plan first with `litcodex --dry-run install`.
34
-
35
44
  ## Commands
36
45
 
37
46
  | Command | Purpose |
package/dist/cli.js CHANGED
@@ -20,6 +20,7 @@ import { runDoctorCli, runInstallCli, runUninstallCli } from "./install/index.js
20
20
  import { LITCODEX_REPO_URL } from "./install/marketplace.js";
21
21
  import { buildInstallPlan } from "./install/plan.js";
22
22
  import { renderInstallPlan } from "./install/render-plan.js";
23
+ import { renderBanner, shouldDecorate } from "./ui.js";
23
24
  /** Error code emitted when a subcommand is not in the routing table. */
24
25
  export const UNKNOWN_COMMAND_CODE = "LITCODEX_INSTALL_UNKNOWN_COMMAND";
25
26
  /** Router usage code (EX_USAGE) for an unknown `config` sub-subcommand. */
@@ -169,7 +170,17 @@ export async function runCli(argv) {
169
170
  return runUserPromptSubmitHookCli(process.stdin, process.stdout, process.stderr);
170
171
  }
171
172
  }
172
- return dispatchExit(dispatch(argv));
173
+ // Reliable post-install greeting: the bare `litcodex` and `litcodex --help` surfaces are where
174
+ // users actually meet the CLI (npm hides postinstall output by default), so decorate them with
175
+ // the fire title banner on an interactive TTY. `--version` and error paths stay plain.
176
+ const result = dispatch(argv);
177
+ if (!isVersion &&
178
+ result.exitCode === 0 &&
179
+ result.stdout.length > 0 &&
180
+ shouldDecorate({ isTty: Boolean(process.stdout.isTTY), env: process.env })) {
181
+ process.stdout.write(renderBanner({ version: manifest.version, color: true }));
182
+ }
183
+ return dispatchExit(result);
173
184
  }
174
185
  /** Write a pure dispatch result to the process streams and return its exit code. */
175
186
  function dispatchExit(result) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litcodex/lit-loop",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "LitCodex Lit-Loop runtime: durable repo-native multi-goal orchestration with embedded success criteria and observable evidence audit.",
5
5
  "type": "module",
6
6
  "bin": {
package/package.json CHANGED
@@ -1,20 +1,21 @@
1
1
  {
2
2
  "name": "litcodex-ai",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Codex loop harness installer. Run `npx litcodex-ai install` to set up the LitCodex Codex platform: the bare `lit` hook and the durable lit-loop runtime.",
5
5
  "keywords": ["codex", "litcodex", "lit-loop", "ai-agents", "orchestration"],
6
6
  "author": "LitCodex Authors",
7
7
  "license": "MIT",
8
- "repository": { "type": "git", "url": "git+https://github.com/<OWNER_PLACEHOLDER>/litcodex.git" },
9
- "bugs": { "url": "https://github.com/<OWNER_PLACEHOLDER>/litcodex/issues" },
10
- "homepage": "https://github.com/<OWNER_PLACEHOLDER>/litcodex#readme",
8
+ "publishConfig": { "access": "public" },
9
+ "repository": { "type": "git", "url": "git+https://github.com/wjgoarxiv/litcodex.git" },
10
+ "bugs": { "url": "https://github.com/wjgoarxiv/litcodex/issues" },
11
+ "homepage": "https://github.com/wjgoarxiv/litcodex#readme",
11
12
  "type": "module",
12
13
  "bin": {
13
14
  "litcodex": "bin/litcodex.js"
14
15
  },
15
16
  "files": ["bin", "dist", "model-catalog.json", "README.md", "LICENSE"],
16
17
  "dependencies": {
17
- "@litcodex/lit-loop": "0.3.1"
18
+ "@litcodex/lit-loop": "0.3.3"
18
19
  },
19
20
  "bundledDependencies": ["@litcodex/lit-loop"],
20
21
  "scripts": {