grok-cli-hurry-mode 1.0.3 → 1.0.5
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/agent/grok-agent.js.map +1 -1
- package/dist/hooks/use-input-handler.js +590 -2
- package/dist/hooks/use-input-handler.js.map +1 -1
- package/dist/mcp/client.js +6 -1
- package/dist/mcp/client.js.map +1 -1
- package/dist/subagents/subagent-framework.d.ts +66 -0
- package/dist/subagents/subagent-framework.js +349 -0
- package/dist/subagents/subagent-framework.js.map +1 -0
- package/dist/tools/documentation/agent-system-generator.d.ts +30 -0
- package/dist/tools/documentation/agent-system-generator.js +816 -0
- package/dist/tools/documentation/agent-system-generator.js.map +1 -0
- package/dist/tools/documentation/api-docs-generator.d.ts +89 -0
- package/dist/tools/documentation/api-docs-generator.js +344 -0
- package/dist/tools/documentation/api-docs-generator.js.map +1 -0
- package/dist/tools/documentation/auto-update-system.d.ts +47 -0
- package/dist/tools/documentation/auto-update-system.js +278 -0
- package/dist/tools/documentation/auto-update-system.js.map +1 -0
- package/dist/tools/documentation/changelog-generator.d.ts +39 -0
- package/dist/tools/documentation/changelog-generator.js +255 -0
- package/dist/tools/documentation/changelog-generator.js.map +1 -0
- package/dist/tools/documentation/claude-md-parser.d.ts +25 -0
- package/dist/tools/documentation/claude-md-parser.js +108 -0
- package/dist/tools/documentation/claude-md-parser.js.map +1 -0
- package/dist/tools/documentation/comments-generator.d.ts +55 -0
- package/dist/tools/documentation/comments-generator.js +238 -0
- package/dist/tools/documentation/comments-generator.js.map +1 -0
- package/dist/tools/documentation/docs-menu.d.ts +9 -0
- package/dist/tools/documentation/docs-menu.js +57 -0
- package/dist/tools/documentation/docs-menu.js.map +1 -0
- package/dist/tools/documentation/readme-generator.d.ts +31 -0
- package/dist/tools/documentation/readme-generator.js +244 -0
- package/dist/tools/documentation/readme-generator.js.map +1 -0
- package/dist/tools/documentation/self-healing-system.d.ts +66 -0
- package/dist/tools/documentation/self-healing-system.js +444 -0
- package/dist/tools/documentation/self-healing-system.js.map +1 -0
- package/dist/tools/documentation/smart-prd-assistant.d.ts +45 -0
- package/dist/tools/documentation/smart-prd-assistant.js +325 -0
- package/dist/tools/documentation/smart-prd-assistant.js.map +1 -0
- package/dist/tools/documentation/update-agent-docs.d.ts +37 -0
- package/dist/tools/documentation/update-agent-docs.js +275 -0
- package/dist/tools/documentation/update-agent-docs.js.map +1 -0
- package/dist/tools/intelligence/ast-parser.js +22 -4
- package/dist/tools/intelligence/ast-parser.js.map +1 -1
- package/dist/ui/app.d.ts +2 -1
- package/dist/ui/app.js +27 -6
- package/dist/ui/app.js.map +1 -1
- package/dist/ui/components/api-key-input.d.ts +2 -1
- package/dist/ui/components/api-key-input.js +18 -3
- package/dist/ui/components/api-key-input.js.map +1 -1
- package/dist/ui/components/chat-history.d.ts +2 -1
- package/dist/ui/components/chat-history.js +35 -13
- package/dist/ui/components/chat-history.js.map +1 -1
- package/dist/ui/components/chat-input.d.ts +2 -1
- package/dist/ui/components/chat-input.js +37 -16
- package/dist/ui/components/chat-input.js.map +1 -1
- package/dist/ui/components/chat-interface.d.ts +2 -1
- package/dist/ui/components/chat-interface.js +42 -8
- package/dist/ui/components/chat-interface.js.map +1 -1
- package/dist/ui/components/command-suggestions.d.ts +2 -1
- package/dist/ui/components/command-suggestions.js +8 -3
- package/dist/ui/components/command-suggestions.js.map +1 -1
- package/dist/ui/components/confirmation-dialog.d.ts +2 -1
- package/dist/ui/components/confirmation-dialog.js +39 -4
- package/dist/ui/components/confirmation-dialog.js.map +1 -1
- package/dist/ui/components/diff-renderer.js +66 -57
- package/dist/ui/components/diff-renderer.js.map +1 -1
- package/dist/ui/components/loading-spinner.d.ts +2 -1
- package/dist/ui/components/loading-spinner.js +13 -3
- package/dist/ui/components/loading-spinner.js.map +1 -1
- package/dist/ui/components/mcp-status.d.ts +2 -1
- package/dist/ui/components/mcp-status.js +6 -3
- package/dist/ui/components/mcp-status.js.map +1 -1
- package/dist/ui/components/model-selection.d.ts +2 -1
- package/dist/ui/components/model-selection.js +11 -2
- package/dist/ui/components/model-selection.js.map +1 -1
- package/dist/ui/shared/max-sized-box.js +2 -2
- package/dist/ui/shared/max-sized-box.js.map +1 -1
- package/dist/ui/utils/code-colorizer.js +2 -2
- package/dist/ui/utils/code-colorizer.js.map +1 -1
- package/dist/ui/utils/markdown-renderer.d.ts +2 -1
- package/dist/ui/utils/markdown-renderer.js +3 -3
- package/dist/ui/utils/markdown-renderer.js.map +1 -1
- package/package.json +21 -12
@@ -1,8 +1,17 @@
|
|
1
|
-
import
|
1
|
+
import React from "react";
|
2
2
|
import { Box, Text } from "ink";
|
3
3
|
export function ModelSelection({ models, selectedIndex, isVisible, currentModel, }) {
|
4
4
|
if (!isVisible)
|
5
5
|
return null;
|
6
|
-
return (
|
6
|
+
return (React.createElement(Box, { marginTop: 1, flexDirection: "column" },
|
7
|
+
React.createElement(Box, { marginBottom: 1 },
|
8
|
+
React.createElement(Text, { color: "cyan" },
|
9
|
+
"Select Grok Model (current: ",
|
10
|
+
currentModel,
|
11
|
+
"):")),
|
12
|
+
models.map((modelOption, index) => (React.createElement(Box, { key: index, paddingLeft: 1 },
|
13
|
+
React.createElement(Text, { color: index === selectedIndex ? "black" : "white", backgroundColor: index === selectedIndex ? "cyan" : undefined }, modelOption.model)))),
|
14
|
+
React.createElement(Box, { marginTop: 1 },
|
15
|
+
React.createElement(Text, { color: "gray", dimColor: true }, "\u2191\u2193 navigate \u2022 Enter/Tab select \u2022 Esc cancel"))));
|
7
16
|
}
|
8
17
|
//# sourceMappingURL=model-selection.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"model-selection.js","sourceRoot":"","sources":["../../../src/ui/components/model-selection.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"model-selection.js","sourceRoot":"","sources":["../../../src/ui/components/model-selection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAahC,MAAM,UAAU,cAAc,CAAC,EAC7B,MAAM,EACN,aAAa,EACb,SAAS,EACT,YAAY,GACQ;IACpB,IAAI,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAE5B,OAAO,CACL,oBAAC,GAAG,IAAC,SAAS,EAAE,CAAC,EAAE,aAAa,EAAC,QAAQ;QACvC,oBAAC,GAAG,IAAC,YAAY,EAAE,CAAC;YAClB,oBAAC,IAAI,IAAC,KAAK,EAAC,MAAM;;gBAA8B,YAAY;qBAAU,CAClE;QACL,MAAM,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE,CAAC,CAClC,oBAAC,GAAG,IAAC,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;YAC7B,oBAAC,IAAI,IACH,KAAK,EAAE,KAAK,KAAK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,EAClD,eAAe,EAAE,KAAK,KAAK,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,IAE5D,WAAW,CAAC,KAAK,CACb,CACH,CACP,CAAC;QACF,oBAAC,GAAG,IAAC,SAAS,EAAE,CAAC;YACf,oBAAC,IAAI,IAAC,KAAK,EAAC,MAAM,EAAC,QAAQ,4EAEpB,CACH,CACF,CACP,CAAC;AACJ,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import
|
1
|
+
import React from 'react';
|
2
2
|
import { Box } from 'ink';
|
3
3
|
export const MaxSizedBox = ({ maxHeight, maxWidth, children, ...props }) => {
|
4
|
-
return (
|
4
|
+
return (React.createElement(Box, { flexDirection: "column", ...props }, children));
|
5
5
|
};
|
6
6
|
//# sourceMappingURL=max-sized-box.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"max-sized-box.js","sourceRoot":"","sources":["../../../src/ui/shared/max-sized-box.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"max-sized-box.js","sourceRoot":"","sources":["../../../src/ui/shared/max-sized-box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAQ1B,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EACtD,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,EAAE;IACH,OAAO,CACL,oBAAC,GAAG,IACF,aAAa,EAAC,QAAQ,KAClB,KAAK,IAER,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import React from 'react';
|
2
2
|
import { Text, Box } from 'ink';
|
3
3
|
export const colorizeCode = (content, language, availableTerminalHeight, terminalWidth) => {
|
4
4
|
// Simple plain text rendering - could be enhanced with syntax highlighting later
|
5
|
-
return (
|
5
|
+
return (React.createElement(Box, { flexDirection: "column" }, content.split('\n').map((line, index) => (React.createElement(Text, { key: index, wrap: "wrap" }, line)))));
|
6
6
|
};
|
7
7
|
//# sourceMappingURL=code-colorizer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"code-colorizer.js","sourceRoot":"","sources":["../../../src/ui/utils/code-colorizer.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"code-colorizer.js","sourceRoot":"","sources":["../../../src/ui/utils/code-colorizer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAEhC,MAAM,CAAC,MAAM,YAAY,GAAG,CAC1B,OAAe,EACf,QAAuB,EACvB,uBAAgC,EAChC,aAAsB,EACL,EAAE;IACnB,iFAAiF;IACjF,OAAO,CACL,oBAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,IACxB,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CACxC,oBAAC,IAAI,IAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAC,MAAM,IAC1B,IAAI,CACA,CACR,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import React from 'react';
|
2
2
|
import { Text } from 'ink';
|
3
3
|
import { marked } from 'marked';
|
4
4
|
import TerminalRenderer from 'marked-terminal';
|
@@ -12,12 +12,12 @@ export function MarkdownRenderer({ content }) {
|
|
12
12
|
const result = marked.parse(content);
|
13
13
|
// Handle both sync and async results
|
14
14
|
const rendered = typeof result === 'string' ? result : content;
|
15
|
-
return
|
15
|
+
return React.createElement(Text, null, rendered);
|
16
16
|
}
|
17
17
|
catch (error) {
|
18
18
|
// Fallback to plain text if markdown parsing fails
|
19
19
|
console.error('Markdown rendering error:', error);
|
20
|
-
return
|
20
|
+
return React.createElement(Text, null, content);
|
21
21
|
}
|
22
22
|
}
|
23
23
|
//# sourceMappingURL=markdown-renderer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"markdown-renderer.js","sourceRoot":"","sources":["../../../src/ui/utils/markdown-renderer.tsx"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"markdown-renderer.js","sourceRoot":"","sources":["../../../src/ui/utils/markdown-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,gBAAgB,MAAM,iBAAiB,CAAC;AAE/C,sEAAsE;AACtE,MAAM,CAAC,UAAU,CAAC;IAChB,QAAQ,EAAE,IAAK,gBAAwB,EAAE;CAC1C,CAAC,CAAC;AAEH,MAAM,UAAU,gBAAgB,CAAC,EAAE,OAAO,EAAuB;IAC/D,IAAI,CAAC;QACH,2CAA2C;QAC3C,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACrC,qCAAqC;QACrC,MAAM,QAAQ,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;QAC/D,OAAO,oBAAC,IAAI,QAAE,QAAQ,CAAQ,CAAC;IACjC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,mDAAmD;QACnD,OAAO,CAAC,KAAK,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;QAClD,OAAO,oBAAC,IAAI,QAAE,OAAO,CAAQ,CAAC;IAChC,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
@@ -1,23 +1,26 @@
|
|
1
1
|
{
|
2
2
|
"type": "module",
|
3
3
|
"name": "grok-cli-hurry-mode",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.5",
|
5
5
|
"description": "An open-source AI agent that brings the power of Grok directly into your terminal.",
|
6
6
|
"main": "dist/index.js",
|
7
|
+
"module": "dist/index.js",
|
8
|
+
"types": "dist/index.d.ts",
|
7
9
|
"exports": {
|
8
10
|
".": {
|
9
|
-
"
|
10
|
-
"
|
11
|
+
"types": "./dist/index.d.ts",
|
12
|
+
"import": "./dist/index.js"
|
11
13
|
}
|
12
14
|
},
|
13
15
|
"bin": {
|
14
16
|
"grok": "dist/index.js"
|
15
17
|
},
|
16
18
|
"scripts": {
|
17
|
-
"build": "
|
18
|
-
"build:
|
19
|
-
"dev": "
|
19
|
+
"build": "tsc",
|
20
|
+
"build:tsup": "tsup",
|
21
|
+
"dev": "npm run build && node dist/index.js",
|
20
22
|
"dev:node": "tsx src/index.ts",
|
23
|
+
"dev:watch": "npm run build && node --watch dist/index.js",
|
21
24
|
"start": "node dist/index.js",
|
22
25
|
"start:bun": "bun run dist/index.js",
|
23
26
|
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
|
@@ -54,11 +57,7 @@
|
|
54
57
|
"openai": "^5.10.1",
|
55
58
|
"react": "^18.3.1",
|
56
59
|
"ripgrep-node": "^1.0.0",
|
57
|
-
"tiktoken": "^1.0.21"
|
58
|
-
"tree-sitter": "^0.25.0",
|
59
|
-
"tree-sitter-javascript": "^0.25.0",
|
60
|
-
"tree-sitter-python": "^0.25.0",
|
61
|
-
"tree-sitter-typescript": "^0.23.2"
|
60
|
+
"tiktoken": "^1.0.21"
|
62
61
|
},
|
63
62
|
"devDependencies": {
|
64
63
|
"@eslint/js": "^9.37.0",
|
@@ -69,6 +68,7 @@
|
|
69
68
|
"@typescript-eslint/parser": "^8.37.0",
|
70
69
|
"esbuild": "^0.25.10",
|
71
70
|
"eslint": "^9.31.0",
|
71
|
+
"tsup": "^8.5.0",
|
72
72
|
"tsx": "^4.0.0"
|
73
73
|
},
|
74
74
|
"engines": {
|
@@ -91,8 +91,17 @@
|
|
91
91
|
"publishConfig": {
|
92
92
|
"access": "public"
|
93
93
|
},
|
94
|
+
"optionalDependencies": {
|
95
|
+
"tree-sitter": "^0.21.1",
|
96
|
+
"tree-sitter-javascript": "^0.21.2",
|
97
|
+
"tree-sitter-python": "^0.21.0",
|
98
|
+
"tree-sitter-typescript": "^0.21.2"
|
99
|
+
},
|
94
100
|
"trustedDependencies": [
|
101
|
+
"esbuild",
|
102
|
+
"tree-sitter",
|
95
103
|
"tree-sitter-javascript",
|
96
|
-
"tree-sitter-python"
|
104
|
+
"tree-sitter-python",
|
105
|
+
"tree-sitter-typescript"
|
97
106
|
]
|
98
107
|
}
|