grok-cli-hurry-mode 1.0.27 → 1.0.29
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 +4 -0
- package/dist/index.js +7 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -23,7 +23,6 @@ import { encoding_for_model, get_encoding } from 'tiktoken';
|
|
|
23
23
|
import crypto from 'crypto';
|
|
24
24
|
import { marked } from 'marked';
|
|
25
25
|
import TerminalRenderer from 'marked-terminal';
|
|
26
|
-
import cfonts from 'cfonts';
|
|
27
26
|
import chalk from 'chalk';
|
|
28
27
|
|
|
29
28
|
var __defProp = Object.defineProperty;
|
|
@@ -9242,7 +9241,7 @@ EOF`;
|
|
|
9242
9241
|
|
|
9243
9242
|
// package.json
|
|
9244
9243
|
var package_default = {
|
|
9245
|
-
version: "1.0.
|
|
9244
|
+
version: "1.0.29"};
|
|
9246
9245
|
|
|
9247
9246
|
// src/utils/text-utils.ts
|
|
9248
9247
|
function isWordBoundary(char) {
|
|
@@ -14604,6 +14603,8 @@ function ApiKeyInput({ onApiKeySet }) {
|
|
|
14604
14603
|
const displayText = input.length > 0 ? isSubmitting ? "*".repeat(input.length) : "*".repeat(input.length) + "\u2588" : isSubmitting ? " " : "\u2588";
|
|
14605
14604
|
return /* @__PURE__ */ React12.createElement(Box, { flexDirection: "column", paddingX: 2, paddingY: 1 }, /* @__PURE__ */ React12.createElement(Text, { color: "yellow" }, "\u{1F511} Grok API Key Required"), /* @__PURE__ */ React12.createElement(Box, { marginBottom: 1 }, /* @__PURE__ */ React12.createElement(Text, { color: "gray" }, "Please enter your Grok API key to continue:")), /* @__PURE__ */ React12.createElement(Box, { borderStyle: "round", borderColor: "blue", paddingX: 1, marginBottom: 1 }, /* @__PURE__ */ React12.createElement(Text, { color: "gray" }, "\u276F "), /* @__PURE__ */ React12.createElement(Text, null, displayText)), error ? /* @__PURE__ */ React12.createElement(Box, { marginBottom: 1 }, /* @__PURE__ */ React12.createElement(Text, { color: "red" }, "\u274C ", error)) : null, /* @__PURE__ */ React12.createElement(Box, { flexDirection: "column", marginTop: 1 }, /* @__PURE__ */ React12.createElement(Text, { color: "gray", dimColor: true }, "\u2022 Press Enter to submit"), /* @__PURE__ */ React12.createElement(Text, { color: "gray", dimColor: true }, "\u2022 Press Ctrl+C to exit"), /* @__PURE__ */ React12.createElement(Text, { color: "gray", dimColor: true }, "Note: API key will be saved to ~/.grok/user-settings.json")), isSubmitting ? /* @__PURE__ */ React12.createElement(Box, { marginTop: 1 }, /* @__PURE__ */ React12.createElement(Text, { color: "yellow" }, "\u{1F504} Validating API key...")) : null);
|
|
14606
14605
|
}
|
|
14606
|
+
|
|
14607
|
+
// src/ui/components/chat-interface.tsx
|
|
14607
14608
|
function ChatInterfaceWithAgent({
|
|
14608
14609
|
agent,
|
|
14609
14610
|
initialMessage
|
|
@@ -14647,17 +14648,9 @@ function ChatInterfaceWithAgent({
|
|
|
14647
14648
|
console.clear();
|
|
14648
14649
|
}
|
|
14649
14650
|
console.log(" ");
|
|
14650
|
-
const grokLogo =
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
-
colors: ["yellow", "red"],
|
|
14654
|
-
space: true,
|
|
14655
|
-
maxLength: "0",
|
|
14656
|
-
gradient: ["yellow", "red", "cyan"],
|
|
14657
|
-
independentGradient: false,
|
|
14658
|
-
transitionGradient: true,
|
|
14659
|
-
env: "node"
|
|
14660
|
-
});
|
|
14651
|
+
const grokLogo = {
|
|
14652
|
+
string: "\x1B[33m ##### ##### ##### # #\n# # # # # # #\n# ### # # # # # #\n# # ##### # # # #\n# ### # # # # # #\n# # # # # # #\n ##### # # ##### # #\x1B[0m"
|
|
14653
|
+
};
|
|
14661
14654
|
const logoOutput = (typeof grokLogo === "object" && "string" in grokLogo ? grokLogo.string : String(grokLogo)) + "\nHURRY MODE\n" + package_default.version;
|
|
14662
14655
|
const logoLines = logoOutput.split("\n");
|
|
14663
14656
|
logoLines.forEach((line) => {
|
|
@@ -15085,10 +15078,6 @@ function createMCPCommand() {
|
|
|
15085
15078
|
return mcpCommand;
|
|
15086
15079
|
}
|
|
15087
15080
|
|
|
15088
|
-
// package.json with { type: 'json' }
|
|
15089
|
-
var package_default2 = {
|
|
15090
|
-
version: "1.0.27"};
|
|
15091
|
-
|
|
15092
15081
|
// src/index.ts
|
|
15093
15082
|
dotenv.config();
|
|
15094
15083
|
process.on("SIGTERM", () => {
|
|
@@ -15288,7 +15277,7 @@ async function processPromptHeadless(prompt, apiKey, baseURL, model, maxToolRoun
|
|
|
15288
15277
|
}
|
|
15289
15278
|
program.name("grok").description(
|
|
15290
15279
|
"A conversational AI CLI tool powered by Grok with text editor capabilities"
|
|
15291
|
-
).version(
|
|
15280
|
+
).version(package_default.version).argument("[message...]", "Initial message to send to Grok").option("-d, --directory <dir>", "set working directory", process.cwd()).option("-k, --api-key <key>", "Grok API key (or set GROK_API_KEY env var)").option(
|
|
15292
15281
|
"-u, --base-url <url>",
|
|
15293
15282
|
"Grok API base URL (or set GROK_BASE_URL env var)"
|
|
15294
15283
|
).option(
|