litcodex-ai 0.3.1 → 0.3.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.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
|
-
|
|
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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "litcodex-ai",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
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",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"files": ["bin", "dist", "model-catalog.json", "README.md", "LICENSE"],
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@litcodex/lit-loop": "0.3.
|
|
17
|
+
"@litcodex/lit-loop": "0.3.2"
|
|
18
18
|
},
|
|
19
19
|
"bundledDependencies": ["@litcodex/lit-loop"],
|
|
20
20
|
"scripts": {
|