ADAPT-Chase commited on
Commit
ab86ab8
·
verified ·
1 Parent(s): 0d8ded1

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. novas/novacore-zephyr/groq-code-cli/dist/commands/base.d.ts +26 -0
  2. novas/novacore-zephyr/groq-code-cli/dist/commands/base.d.ts.map +1 -0
  3. novas/novacore-zephyr/groq-code-cli/dist/commands/base.js +3 -0
  4. novas/novacore-zephyr/groq-code-cli/dist/commands/base.js.map +1 -0
  5. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/clear.d.ts +3 -0
  6. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/clear.d.ts.map +1 -0
  7. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/clear.js +12 -0
  8. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/clear.js.map +1 -0
  9. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/help.d.ts +3 -0
  10. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/help.d.ts.map +1 -0
  11. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/help.js +28 -0
  12. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/help.js.map +1 -0
  13. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/init.d.ts +3 -0
  14. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/init.d.ts.map +1 -0
  15. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/init.js +23 -0
  16. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/init.js.map +1 -0
  17. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/login.d.ts +3 -0
  18. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/login.d.ts.map +1 -0
  19. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/login.js +8 -0
  20. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/login.js.map +1 -0
  21. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/model.d.ts +3 -0
  22. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/model.d.ts.map +1 -0
  23. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/model.js +10 -0
  24. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/model.js.map +1 -0
  25. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/reasoning.d.ts +3 -0
  26. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/reasoning.d.ts.map +1 -0
  27. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/reasoning.js +21 -0
  28. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/reasoning.js.map +1 -0
  29. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/stats.d.ts +3 -0
  30. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/stats.d.ts.map +1 -0
  31. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/stats.js +22 -0
  32. novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/stats.js.map +1 -0
  33. novas/novacore-zephyr/groq-code-cli/dist/commands/index.d.ts +6 -0
  34. novas/novacore-zephyr/groq-code-cli/dist/commands/index.d.ts.map +1 -0
  35. novas/novacore-zephyr/groq-code-cli/dist/commands/index.js +38 -0
  36. novas/novacore-zephyr/groq-code-cli/dist/commands/index.js.map +1 -0
  37. novas/novacore-zephyr/groq-code-cli/dist/core/agent.d.ts +54 -0
  38. novas/novacore-zephyr/groq-code-cli/dist/core/agent.d.ts.map +1 -0
  39. novas/novacore-zephyr/groq-code-cli/dist/core/agent.js +574 -0
  40. novas/novacore-zephyr/groq-code-cli/dist/core/agent.js.map +1 -0
  41. novas/novacore-zephyr/groq-code-cli/dist/core/cli.d.ts +3 -0
  42. novas/novacore-zephyr/groq-code-cli/dist/core/cli.d.ts.map +1 -0
  43. novas/novacore-zephyr/groq-code-cli/dist/core/cli.js +76 -0
  44. novas/novacore-zephyr/groq-code-cli/dist/core/cli.js.map +1 -0
  45. novas/novacore-zephyr/groq-code-cli/dist/tests/proxy-config.test.d.ts +2 -0
  46. novas/novacore-zephyr/groq-code-cli/dist/tests/proxy-config.test.d.ts.map +1 -0
  47. novas/novacore-zephyr/groq-code-cli/dist/tests/proxy-config.test.js +169 -0
  48. novas/novacore-zephyr/groq-code-cli/dist/tests/proxy-config.test.js.map +1 -0
  49. novas/novacore-zephyr/groq-code-cli/dist/tools/tool-schemas.d.ts +30 -0
  50. novas/novacore-zephyr/groq-code-cli/dist/tools/tool-schemas.d.ts.map +1 -0
novas/novacore-zephyr/groq-code-cli/dist/commands/base.d.ts ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export interface CommandContext {
2
+ addMessage: (message: any) => void;
3
+ clearHistory: () => void;
4
+ setShowLogin: (show: boolean) => void;
5
+ setShowModelSelector?: (show: boolean) => void;
6
+ toggleReasoning?: () => void;
7
+ showReasoning?: boolean;
8
+ sessionStats?: {
9
+ promptTokens: number;
10
+ completionTokens: number;
11
+ totalTokens: number;
12
+ totalRequests: number;
13
+ totalTime: number;
14
+ };
15
+ }
16
+ export interface CommandDefinition {
17
+ command: string;
18
+ description: string;
19
+ handler: (context: CommandContext) => void;
20
+ }
21
+ export declare abstract class BaseCommand implements CommandDefinition {
22
+ abstract command: string;
23
+ abstract description: string;
24
+ abstract handler(context: CommandContext): void;
25
+ }
26
+ //# sourceMappingURL=base.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/commands/base.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/commands/base.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;CAC5C;AAED,8BAAsB,WAAY,YAAW,iBAAiB;IAC5D,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;CAChD"}
novas/novacore-zephyr/groq-code-cli/dist/commands/base.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ export class BaseCommand {
2
+ }
3
+ //# sourceMappingURL=base.js.map
novas/novacore-zephyr/groq-code-cli/dist/commands/base.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/commands/base.ts"],"names":[],"mappings":"AAsBA,MAAM,OAAgB,WAAW;CAIhC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/clear.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { CommandDefinition } from '../base.js';
2
+ export declare const clearCommand: CommandDefinition;
3
+ //# sourceMappingURL=clear.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/clear.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"clear.d.ts","sourceRoot":"","sources":["../../../src/commands/definitions/clear.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,YAAY,EAAE,iBAU1B,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/clear.js ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export const clearCommand = {
2
+ command: 'clear',
3
+ description: 'Clear chat history and context',
4
+ handler: ({ addMessage, clearHistory }) => {
5
+ clearHistory();
6
+ addMessage({
7
+ role: 'system',
8
+ content: 'Chat history and context cleared.',
9
+ });
10
+ }
11
+ };
12
+ //# sourceMappingURL=clear.js.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/clear.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"clear.js","sourceRoot":"","sources":["../../../src/commands/definitions/clear.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsB;IAC7C,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,gCAAgC;IAC7C,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,YAAY,EAAkB,EAAE,EAAE;QACxD,YAAY,EAAE,CAAC;QACf,UAAU,CAAC;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,mCAAmC;SAC7C,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/help.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { CommandDefinition } from '../base.js';
2
+ export declare const helpCommand: CommandDefinition;
3
+ //# sourceMappingURL=help.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/help.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"help.d.ts","sourceRoot":"","sources":["../../../src/commands/definitions/help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,WAAW,EAAE,iBA0BzB,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/help.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { getAvailableCommands } from '../index.js';
2
+ export const helpCommand = {
3
+ command: 'help',
4
+ description: 'Show help and available commands',
5
+ handler: ({ addMessage }) => {
6
+ const commands = getAvailableCommands();
7
+ const commandList = commands.map(cmd => `/${cmd.command} - ${cmd.description}`).join('\n');
8
+ addMessage({
9
+ role: 'system',
10
+ content: `Available Commands:
11
+ ${commandList}
12
+
13
+ Navigation:
14
+ - Use arrow keys to navigate chat history
15
+ - Type '/' to see available slash commands
16
+ - Use arrow keys to navigate slash command suggestions
17
+ - Press Enter to execute the selected command
18
+
19
+ Keyboard Shortcuts:
20
+ - Esc - Clear input box / Interrupt processing / Reject tool approval
21
+ - Shift+Tab - Toggle auto-approval for editing tools
22
+ - Ctrl+C - Exit the application
23
+
24
+ This is a highly customizable, lightweight, and open-source coding CLI powered by Groq. Ask for help with coding tasks, debugging issues, or explaining code.`
25
+ });
26
+ }
27
+ };
28
+ //# sourceMappingURL=help.js.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/help.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["../../../src/commands/definitions/help.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,kCAAkC;IAC/C,OAAO,EAAE,CAAC,EAAE,UAAU,EAAkB,EAAE,EAAE;QAC1C,MAAM,QAAQ,GAAG,oBAAoB,EAAE,CAAC;QACxC,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,OAAO,MAAM,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAE3F,UAAU,CAAC;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;EACb,WAAW;;;;;;;;;;;;;8JAaiJ;SACzJ,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/init.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { CommandDefinition } from '../base.js';
2
+ export declare const initCommand: CommandDefinition;
3
+ //# sourceMappingURL=init.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/init.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/commands/definitions/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,WAAW,EAAE,iBAmBzB,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/init.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { writeProjectContext } from '../../utils/context.js';
2
+ export const initCommand = {
3
+ command: 'init',
4
+ description: 'Generate project context files in .groq/',
5
+ handler: ({ addMessage }) => {
6
+ try {
7
+ const rootDir = process.env.GROQ_CONTEXT_DIR || process.cwd();
8
+ const { mdPath, jsonPath } = writeProjectContext(rootDir);
9
+ addMessage({
10
+ role: 'system',
11
+ content: `Project context generated.\n- Markdown: ${mdPath}\n- JSON: ${jsonPath}\nThe assistant will automatically load this context on startup. Re-run /init to refresh.`
12
+ });
13
+ }
14
+ catch (error) {
15
+ const message = error instanceof Error ? error.message : String(error);
16
+ addMessage({
17
+ role: 'system',
18
+ content: `Failed to generate project context: ${message}`
19
+ });
20
+ }
21
+ }
22
+ };
23
+ //# sourceMappingURL=init.js.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/init.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../src/commands/definitions/init.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC5C,OAAO,EAAE,MAAM;IACf,WAAW,EAAE,0CAA0C;IACvD,OAAO,EAAE,CAAC,EAAE,UAAU,EAAkB,EAAE,EAAE;QAC1C,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;YAC9D,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC;YAC1D,UAAU,CAAC;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,2CAA2C,MAAM,aAAa,QAAQ,2FAA2F;aAC3K,CAAC,CAAC;QACL,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACxB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,UAAU,CAAC;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,uCAAuC,OAAO,EAAE;aAC1D,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/login.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { CommandDefinition } from '../base.js';
2
+ export declare const loginCommand: CommandDefinition;
3
+ //# sourceMappingURL=login.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/login.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../../src/commands/definitions/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,YAAY,EAAE,iBAM1B,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/login.js ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ export const loginCommand = {
2
+ command: 'login',
3
+ description: 'Login with your credentials',
4
+ handler: ({ setShowLogin }) => {
5
+ setShowLogin(true);
6
+ }
7
+ };
8
+ //# sourceMappingURL=login.js.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/login.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"login.js","sourceRoot":"","sources":["../../../src/commands/definitions/login.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsB;IAC7C,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,6BAA6B;IAC1C,OAAO,EAAE,CAAC,EAAE,YAAY,EAAkB,EAAE,EAAE;QAC5C,YAAY,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC;CACF,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/model.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { CommandDefinition } from '../base.js';
2
+ export declare const modelCommand: CommandDefinition;
3
+ //# sourceMappingURL=model.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/model.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../../src/commands/definitions/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,YAAY,EAAE,iBAQ1B,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/model.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ export const modelCommand = {
2
+ command: 'model',
3
+ description: 'Select your Groq model',
4
+ handler: ({ setShowModelSelector }) => {
5
+ if (setShowModelSelector) {
6
+ setShowModelSelector(true);
7
+ }
8
+ }
9
+ };
10
+ //# sourceMappingURL=model.js.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/model.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/commands/definitions/model.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsB;IAC7C,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,wBAAwB;IACrC,OAAO,EAAE,CAAC,EAAE,oBAAoB,EAAkB,EAAE,EAAE;QACpD,IAAI,oBAAoB,EAAE,CAAC;YACzB,oBAAoB,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;IACH,CAAC;CACF,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/reasoning.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { CommandDefinition } from '../base.js';
2
+ export declare const reasoningCommand: CommandDefinition;
3
+ //# sourceMappingURL=reasoning.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/reasoning.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"reasoning.d.ts","sourceRoot":"","sources":["../../../src/commands/definitions/reasoning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,gBAAgB,EAAE,iBAkB9B,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/reasoning.js ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export const reasoningCommand = {
2
+ command: 'reasoning',
3
+ description: 'Toggle display of reasoning content in messages',
4
+ handler: ({ addMessage, toggleReasoning, showReasoning }) => {
5
+ if (toggleReasoning) {
6
+ toggleReasoning();
7
+ const newState = !showReasoning;
8
+ addMessage({
9
+ role: 'system',
10
+ content: `Reasoning display is now ${newState ? 'enabled' : 'disabled'}.`,
11
+ });
12
+ }
13
+ else {
14
+ addMessage({
15
+ role: 'system',
16
+ content: 'Reasoning toggle functionality is not available.',
17
+ });
18
+ }
19
+ }
20
+ };
21
+ //# sourceMappingURL=reasoning.js.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/reasoning.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"reasoning.js","sourceRoot":"","sources":["../../../src/commands/definitions/reasoning.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,gBAAgB,GAAsB;IACjD,OAAO,EAAE,WAAW;IACpB,WAAW,EAAE,iDAAiD;IAC9D,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAkB,EAAE,EAAE;QAC1E,IAAI,eAAe,EAAE,CAAC;YACpB,eAAe,EAAE,CAAC;YAClB,MAAM,QAAQ,GAAG,CAAC,aAAa,CAAC;YAChC,UAAU,CAAC;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,4BAA4B,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,GAAG;aAC1E,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,UAAU,CAAC;gBACT,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,kDAAkD;aAC5D,CAAC,CAAC;QACL,CAAC;IACH,CAAC;CACF,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/stats.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ import { CommandDefinition } from '../base.js';
2
+ export declare const statsCommand: CommandDefinition;
3
+ //# sourceMappingURL=stats.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/stats.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../src/commands/definitions/stats.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAkB,MAAM,YAAY,CAAC;AAE/D,eAAO,MAAM,YAAY,EAAE,iBAoB1B,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/stats.js ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export const statsCommand = {
2
+ command: 'stats',
3
+ description: 'Display session statistics and token usage',
4
+ handler: ({ addMessage, sessionStats }) => {
5
+ addMessage({
6
+ role: 'system',
7
+ content: 'SHOW_STATS',
8
+ type: 'stats',
9
+ usageSnapshot: sessionStats ? {
10
+ prompt_tokens: sessionStats.promptTokens,
11
+ completion_tokens: sessionStats.completionTokens,
12
+ total_tokens: sessionStats.totalTokens,
13
+ total_requests: sessionStats.totalRequests,
14
+ total_time: sessionStats.totalTime,
15
+ queue_time: 0,
16
+ prompt_time: 0,
17
+ completion_time: 0,
18
+ } : undefined
19
+ });
20
+ }
21
+ };
22
+ //# sourceMappingURL=stats.js.map
novas/novacore-zephyr/groq-code-cli/dist/commands/definitions/stats.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"stats.js","sourceRoot":"","sources":["../../../src/commands/definitions/stats.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAsB;IAC7C,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,4CAA4C;IACzD,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,YAAY,EAAkB,EAAE,EAAE;QACxD,UAAU,CAAC;YACT,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,YAAY;YACrB,IAAI,EAAE,OAAO;YACb,aAAa,EAAE,YAAY,CAAC,CAAC,CAAC;gBAC5B,aAAa,EAAE,YAAY,CAAC,YAAY;gBACxC,iBAAiB,EAAE,YAAY,CAAC,gBAAgB;gBAChD,YAAY,EAAE,YAAY,CAAC,WAAW;gBACtC,cAAc,EAAE,YAAY,CAAC,aAAa;gBAC1C,UAAU,EAAE,YAAY,CAAC,SAAS;gBAClC,UAAU,EAAE,CAAC;gBACb,WAAW,EAAE,CAAC;gBACd,eAAe,EAAE,CAAC;aACnB,CAAC,CAAC,CAAC,SAAS;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/index.d.ts ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import { CommandDefinition, CommandContext } from './base.js';
2
+ export declare function getAvailableCommands(): CommandDefinition[];
3
+ export declare function getCommandNames(): string[];
4
+ export declare function handleSlashCommand(command: string, context: CommandContext): void;
5
+ export { CommandDefinition, CommandContext } from './base.js';
6
+ //# sourceMappingURL=index.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/commands/index.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAmB9D,wBAAgB,oBAAoB,IAAI,iBAAiB,EAAE,CAE1D;AAED,wBAAgB,eAAe,IAAI,MAAM,EAAE,CAE1C;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,cAAc,QAkBxB;AAED,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/commands/index.js ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { helpCommand } from './definitions/help.js';
2
+ import { loginCommand } from './definitions/login.js';
3
+ import { modelCommand } from './definitions/model.js';
4
+ import { clearCommand } from './definitions/clear.js';
5
+ import { initCommand } from './definitions/init.js';
6
+ import { reasoningCommand } from './definitions/reasoning.js';
7
+ import { statsCommand } from './definitions/stats.js';
8
+ const availableCommands = [
9
+ helpCommand,
10
+ loginCommand,
11
+ modelCommand,
12
+ clearCommand,
13
+ initCommand,
14
+ reasoningCommand,
15
+ statsCommand,
16
+ ];
17
+ export function getAvailableCommands() {
18
+ return [...availableCommands];
19
+ }
20
+ export function getCommandNames() {
21
+ return getAvailableCommands().map(cmd => cmd.command);
22
+ }
23
+ export function handleSlashCommand(command, context) {
24
+ // Extract the command part, everything up to the first space or end of string
25
+ const fullCommand = command.slice(1);
26
+ const spaceIndex = fullCommand.indexOf(' ');
27
+ const cmd = spaceIndex > -1 ? fullCommand.substring(0, spaceIndex).toLowerCase() : fullCommand.toLowerCase();
28
+ const commandDef = getAvailableCommands().find(c => c.command === cmd);
29
+ // Add user message for the command
30
+ context.addMessage({
31
+ role: 'user',
32
+ content: command,
33
+ });
34
+ if (commandDef) {
35
+ commandDef.handler(context);
36
+ }
37
+ }
38
+ //# sourceMappingURL=index.js.map
novas/novacore-zephyr/groq-code-cli/dist/commands/index.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,iBAAiB,GAAwB;IAC7C,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,YAAY;CACb,CAAC;AAEF,MAAM,UAAU,oBAAoB;IAClC,OAAO,CAAC,GAAG,iBAAiB,CAAC,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,eAAe;IAC7B,OAAO,oBAAoB,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAChC,OAAe,EACf,OAAuB;IAEvB,8EAA8E;IAC9E,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACrC,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5C,MAAM,GAAG,GAAG,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC;IAE7G,MAAM,UAAU,GAAG,oBAAoB,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,GAAG,CAAC,CAAC;IAEvE,mCAAmC;IACnC,OAAO,CAAC,UAAU,CAAC;QACjB,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,OAAO;KACjB,CAAC,CAAC;IAEH,IAAI,UAAU,EAAE,CAAC;QACf,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC9B,CAAC;AACH,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/core/agent.d.ts ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export declare class Agent {
2
+ private client;
3
+ private messages;
4
+ private apiKey;
5
+ private model;
6
+ private temperature;
7
+ private sessionAutoApprove;
8
+ private systemMessage;
9
+ private configManager;
10
+ private proxyOverride?;
11
+ private onToolStart?;
12
+ private onToolEnd?;
13
+ private onToolApproval?;
14
+ private onThinkingText?;
15
+ private onFinalMessage?;
16
+ private onMaxIterations?;
17
+ private onApiUsage?;
18
+ private onError?;
19
+ private requestCount;
20
+ private currentAbortController;
21
+ private isInterrupted;
22
+ private constructor();
23
+ static create(model: string, temperature: number, systemMessage: string | null, debug?: boolean, proxyOverride?: string): Promise<Agent>;
24
+ private buildDefaultSystemMessage;
25
+ setToolCallbacks(callbacks: {
26
+ onToolStart?: (name: string, args: Record<string, any>) => void;
27
+ onToolEnd?: (name: string, result: any) => void;
28
+ onToolApproval?: (toolName: string, toolArgs: Record<string, any>) => Promise<{
29
+ approved: boolean;
30
+ autoApproveSession?: boolean;
31
+ }>;
32
+ onThinkingText?: (content: string) => void;
33
+ onFinalMessage?: (content: string) => void;
34
+ onMaxIterations?: (maxIterations: number) => Promise<boolean>;
35
+ onApiUsage?: (usage: {
36
+ prompt_tokens: number;
37
+ completion_tokens: number;
38
+ total_tokens: number;
39
+ total_time?: number;
40
+ }) => void;
41
+ onError?: (error: string) => Promise<boolean>;
42
+ }): void;
43
+ setApiKey(apiKey: string): void;
44
+ saveApiKey(apiKey: string): void;
45
+ clearApiKey(): void;
46
+ clearHistory(): void;
47
+ setModel(model: string): void;
48
+ getCurrentModel(): string;
49
+ setSessionAutoApprove(enabled: boolean): void;
50
+ interrupt(): void;
51
+ chat(userInput: string): Promise<void>;
52
+ private executeToolCall;
53
+ }
54
+ //# sourceMappingURL=agent.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/core/agent.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/core/agent.ts"],"names":[],"mappings":"AAiBA,qBAAa,KAAK;IAChB,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,QAAQ,CAAiB;IACjC,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,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} from '../tools/validators.js';
4
+ import { ALL_TOOL_SCHEMAS, DANGEROUS_TOOLS, APPROVAL_REQUIRED_TOOLS } from '../tools/tool-schemas.js';
5
+ import { ConfigManager } from '../utils/local-settings.js';
6
+ import { getProxyAgent, getProxyInfo } from '../utils/proxy-config.js';
7
+ import fs from 'fs';
8
+ import path from 'path';
9
+ export class Agent {
10
+ client = null;
11
+ messages = [];
12
+ apiKey = null;
13
+ model;
14
+ temperature;
15
+ sessionAutoApprove = false;
16
+ systemMessage;
17
+ configManager;
18
+ proxyOverride;
19
+ onToolStart;
20
+ onToolEnd;
21
+ onToolApproval;
22
+ onThinkingText;
23
+ onFinalMessage;
24
+ onMaxIterations;
25
+ onApiUsage;
26
+ onError;
27
+ requestCount = 0;
28
+ currentAbortController = null;
29
+ isInterrupted = false;
30
+ constructor(model, temperature, systemMessage, debug, proxyOverride) {
31
+ this.model = model;
32
+ this.temperature = temperature;
33
+ this.configManager = new ConfigManager();
34
+ this.proxyOverride = proxyOverride;
35
+ // Set debug mode
36
+ debugEnabled = debug || false;
37
+ // Build system message
38
+ if (systemMessage) {
39
+ this.systemMessage = systemMessage;
40
+ }
41
+ else {
42
+ this.systemMessage = this.buildDefaultSystemMessage();
43
+ }
44
+ // Add system message to conversation
45
+ this.messages.push({ role: 'system', content: this.systemMessage });
46
+ // Load project context if available
47
+ try {
48
+ const explicitContextFile = process.env.GROQ_CONTEXT_FILE;
49
+ const baseDir = process.env.GROQ_CONTEXT_DIR || process.cwd();
50
+ const contextPath = explicitContextFile || path.join(baseDir, '.groq', 'context.md');
51
+ const contextLimit = parseInt(process.env.GROQ_CONTEXT_LIMIT || '20000', 10);
52
+ if (fs.existsSync(contextPath)) {
53
+ const ctx = fs.readFileSync(contextPath, 'utf-8');
54
+ const trimmed = ctx.length > contextLimit ? ctx.slice(0, contextLimit) + '\n... [truncated]' : ctx;
55
+ const contextSource = explicitContextFile ? contextPath : '.groq/context.md';
56
+ this.messages.push({
57
+ role: 'system',
58
+ content: `Project context loaded from ${contextSource}. Use this as high-level reference when reasoning about the repository.\n\n${trimmed}`
59
+ });
60
+ }
61
+ }
62
+ catch (error) {
63
+ if (debugEnabled) {
64
+ debugLog('Failed to load project context:', error);
65
+ }
66
+ }
67
+ }
68
+ static async create(model, temperature, systemMessage, debug, proxyOverride) {
69
+ // Check for default model in config if model not explicitly provided
70
+ const configManager = new ConfigManager();
71
+ const defaultModel = configManager.getDefaultModel();
72
+ const selectedModel = defaultModel || model;
73
+ const agent = new Agent(selectedModel, temperature, systemMessage, debug, proxyOverride);
74
+ return agent;
75
+ }
76
+ buildDefaultSystemMessage() {
77
+ return `You are a coding assistant powered by ${this.model} on Groq. Tools are available to you. Use tools to complete tasks.
78
+
79
+ CRITICAL: For ANY implementation request (building apps, creating components, writing code), you MUST use tools to create actual files. NEVER provide text-only responses for coding tasks that require implementation.
80
+
81
+ Use tools to:
82
+ - Read and understand files (read_file, list_files, search_files)
83
+ - Create, edit, and manage files (create_file, edit_file, list_files, read_file, delete_file)
84
+ - Execute commands (execute_command)
85
+ - Search for information (search_files)
86
+ - Help you understand the codebase before answering the user's question
87
+
88
+ IMPLEMENTATION TASK RULES:
89
+ - When asked to "build", "create", "implement", or "make" anything: USE TOOLS TO CREATE FILES
90
+ - Start immediately with create_file or list_files - NO text explanations first
91
+ - Create actual working code, not example snippets
92
+ - Build incrementally: create core files first, then add features
93
+ - NEVER respond with "here's how you could do it" - DO IT with tools
94
+
95
+ FILE OPERATION DECISION TREE:
96
+ - ALWAYS check if file exists FIRST using list_files or read_file
97
+ - Need to modify existing content? → read_file first, then edit_file (never create_file)
98
+ - Need to create something new? → list_files to check existence first, then create_file
99
+ - File exists but want to replace completely? → create_file with overwrite=true
100
+ - Unsure if file exists? → list_files or read_file to check first
101
+ - MANDATORY: read_file before any edit_file operation
102
+
103
+ IMPORTANT TOOL USAGE RULES:
104
+ - Always use "file_path" parameter for file operations, never "path"
105
+ - Check tool schemas carefully before calling functions
106
+ - Required parameters are listed in the "required" array
107
+ - Text matching in edit_file must be EXACT (including whitespace)
108
+ - NEVER prefix tool names with "repo_browser."
109
+
110
+ COMMAND EXECUTION SAFETY:
111
+ - Only use execute_command for commands that COMPLETE QUICKLY (tests, builds, short scripts)
112
+ - NEVER run commands that start long-running processes (servers, daemons, web apps)
113
+ - Examples of AVOIDED commands: "flask app.py", "npm start", "python -m http.server"
114
+ - Examples of SAFE commands: "python test_script.py", "npm test", "ls -la", "git status"
115
+ - If a long-running command is needed to complete the task, provide it to the user at the end of the response, not as a tool call, with a description of what it's for.
116
+
117
+ IMPORTANT: When creating files, keep them focused and reasonably sized. For large applications:
118
+ 1. Start with a simple, minimal version first
119
+ 2. Create separate files for different components
120
+ 3. Build incrementally rather than generating massive files at once
121
+
122
+ Be direct and efficient.
123
+
124
+ Don't generate markdown tables.
125
+
126
+ When asked about your identity, you should identify yourself as a coding assistant running on the ${this.model} model via Groq.`;
127
+ }
128
+ setToolCallbacks(callbacks) {
129
+ this.onToolStart = callbacks.onToolStart;
130
+ this.onToolEnd = callbacks.onToolEnd;
131
+ this.onToolApproval = callbacks.onToolApproval;
132
+ this.onThinkingText = callbacks.onThinkingText;
133
+ this.onFinalMessage = callbacks.onFinalMessage;
134
+ this.onMaxIterations = callbacks.onMaxIterations;
135
+ this.onApiUsage = callbacks.onApiUsage;
136
+ this.onError = callbacks.onError;
137
+ }
138
+ setApiKey(apiKey) {
139
+ debugLog('Setting API key in agent...');
140
+ debugLog('API key provided:', apiKey ? `${apiKey.substring(0, 8)}...` : 'empty');
141
+ this.apiKey = apiKey;
142
+ // Get proxy configuration (with override if provided)
143
+ const proxyAgent = getProxyAgent(this.proxyOverride);
144
+ const proxyInfo = getProxyInfo(this.proxyOverride);
145
+ if (proxyInfo.enabled) {
146
+ debugLog(`Using ${proxyInfo.type} proxy: ${proxyInfo.url}`);
147
+ }
148
+ // Initialize Groq client with proxy if available
149
+ const clientOptions = { apiKey };
150
+ if (proxyAgent) {
151
+ clientOptions.httpAgent = proxyAgent;
152
+ }
153
+ this.client = new Groq(clientOptions);
154
+ debugLog('Groq client initialized with provided API key' + (proxyInfo.enabled ? ' and proxy' : ''));
155
+ }
156
+ saveApiKey(apiKey) {
157
+ this.configManager.setApiKey(apiKey);
158
+ this.setApiKey(apiKey);
159
+ }
160
+ clearApiKey() {
161
+ this.configManager.clearApiKey();
162
+ this.apiKey = null;
163
+ this.client = null;
164
+ }
165
+ clearHistory() {
166
+ // Reset messages to only contain system messages
167
+ this.messages = this.messages.filter(msg => msg.role === 'system');
168
+ }
169
+ setModel(model) {
170
+ this.model = model;
171
+ // Save as default model
172
+ this.configManager.setDefaultModel(model);
173
+ // Update system message to reflect new model
174
+ const newSystemMessage = this.buildDefaultSystemMessage();
175
+ this.systemMessage = newSystemMessage;
176
+ // Update the system message in the conversation
177
+ const systemMsgIndex = this.messages.findIndex(msg => msg.role === 'system' && msg.content.includes('coding assistant'));
178
+ if (systemMsgIndex >= 0) {
179
+ this.messages[systemMsgIndex].content = newSystemMessage;
180
+ }
181
+ }
182
+ getCurrentModel() {
183
+ return this.model;
184
+ }
185
+ setSessionAutoApprove(enabled) {
186
+ this.sessionAutoApprove = enabled;
187
+ }
188
+ interrupt() {
189
+ debugLog('Interrupting current request');
190
+ this.isInterrupted = true;
191
+ if (this.currentAbortController) {
192
+ debugLog('Aborting current API request');
193
+ this.currentAbortController.abort();
194
+ }
195
+ // Add interruption message to conversation
196
+ this.messages.push({
197
+ role: 'system',
198
+ content: 'User has interrupted the request.'
199
+ });
200
+ }
201
+ async chat(userInput) {
202
+ // Reset interrupt flag at the start of a new chat
203
+ this.isInterrupted = false;
204
+ // Check API key on first message send
205
+ if (!this.client) {
206
+ debugLog('Initializing Groq client...');
207
+ // Try environment variable first
208
+ const envApiKey = process.env.GROQ_API_KEY;
209
+ if (envApiKey) {
210
+ debugLog('Using API key from environment variable');
211
+ this.setApiKey(envApiKey);
212
+ }
213
+ else {
214
+ // Try config file
215
+ debugLog('Environment variable GROQ_API_KEY not found, checking config file');
216
+ const configApiKey = this.configManager.getApiKey();
217
+ if (configApiKey) {
218
+ debugLog('Using API key from config file');
219
+ this.setApiKey(configApiKey);
220
+ }
221
+ else {
222
+ debugLog('No API key found anywhere');
223
+ throw new Error('No API key available. Please use /login to set your Groq API key.');
224
+ }
225
+ }
226
+ debugLog('Groq client initialized successfully');
227
+ }
228
+ // Add user message
229
+ this.messages.push({ role: 'user', content: userInput });
230
+ const maxIterations = 50;
231
+ let iteration = 0;
232
+ while (true) { // Outer loop for iteration reset
233
+ while (iteration < maxIterations) {
234
+ // Check for interruption before each iteration
235
+ if (this.isInterrupted) {
236
+ debugLog('Chat loop interrupted by user');
237
+ this.currentAbortController = null;
238
+ return;
239
+ }
240
+ try {
241
+ // Check client exists
242
+ if (!this.client) {
243
+ throw new Error('Groq client not initialized');
244
+ }
245
+ debugLog('Making API call to Groq with model:', this.model);
246
+ debugLog('Messages count:', this.messages.length);
247
+ debugLog('Last few messages:', this.messages.slice(-3));
248
+ // Prepare request body for curl logging
249
+ const requestBody = {
250
+ model: this.model,
251
+ messages: this.messages,
252
+ tools: ALL_TOOL_SCHEMAS,
253
+ tool_choice: 'auto',
254
+ temperature: this.temperature,
255
+ max_tokens: 8000,
256
+ stream: false
257
+ };
258
+ // Log equivalent curl command
259
+ this.requestCount++;
260
+ const curlCommand = generateCurlCommand(this.apiKey, requestBody, this.requestCount);
261
+ if (curlCommand) {
262
+ debugLog('Equivalent curl command:', curlCommand);
263
+ }
264
+ // Create AbortController for this request
265
+ this.currentAbortController = new AbortController();
266
+ const response = await this.client.chat.completions.create({
267
+ model: this.model,
268
+ messages: this.messages,
269
+ tools: ALL_TOOL_SCHEMAS,
270
+ tool_choice: 'auto',
271
+ temperature: this.temperature,
272
+ max_tokens: 8000,
273
+ stream: false
274
+ }, {
275
+ signal: this.currentAbortController.signal
276
+ });
277
+ debugLog('Full API response received:', response);
278
+ debugLog('Response usage:', response.usage);
279
+ debugLog('Response finish_reason:', response.choices[0].finish_reason);
280
+ debugLog('Response choices length:', response.choices.length);
281
+ const message = response.choices[0].message;
282
+ // Extract reasoning if present
283
+ const reasoning = message.reasoning;
284
+ // Pass usage data to callback if available
285
+ if (response.usage && this.onApiUsage) {
286
+ this.onApiUsage({
287
+ prompt_tokens: response.usage.prompt_tokens,
288
+ completion_tokens: response.usage.completion_tokens,
289
+ total_tokens: response.usage.total_tokens,
290
+ total_time: response.usage.total_time
291
+ });
292
+ }
293
+ debugLog('Message content length:', message.content?.length || 0);
294
+ debugLog('Message has tool_calls:', !!message.tool_calls);
295
+ debugLog('Message tool_calls count:', message.tool_calls?.length || 0);
296
+ if (response.choices[0].finish_reason !== 'stop' && response.choices[0].finish_reason !== 'tool_calls') {
297
+ debugLog('WARNING - Unexpected finish_reason:', response.choices[0].finish_reason);
298
+ }
299
+ // Handle tool calls if present
300
+ if (message.tool_calls) {
301
+ // Show thinking text or reasoning if present
302
+ if (message.content || reasoning) {
303
+ if (this.onThinkingText) {
304
+ this.onThinkingText(message.content || '', reasoning);
305
+ }
306
+ }
307
+ // Add assistant message to history
308
+ const assistantMsg = {
309
+ role: 'assistant',
310
+ content: message.content || ''
311
+ };
312
+ assistantMsg.tool_calls = message.tool_calls;
313
+ this.messages.push(assistantMsg);
314
+ // Execute tool calls
315
+ for (const toolCall of message.tool_calls) {
316
+ // Check for interruption before each tool execution
317
+ if (this.isInterrupted) {
318
+ debugLog('Tool execution interrupted by user');
319
+ this.currentAbortController = null;
320
+ return;
321
+ }
322
+ const result = await this.executeToolCall(toolCall);
323
+ // Add tool result to conversation (including rejected ones)
324
+ this.messages.push({
325
+ role: 'tool',
326
+ tool_call_id: toolCall.id,
327
+ content: JSON.stringify(result)
328
+ });
329
+ // Check if user rejected the tool, if so, stop processing
330
+ if (result.userRejected) {
331
+ // Add a note to the conversation that the user rejected the tool
332
+ this.messages.push({
333
+ role: 'system',
334
+ content: `The user rejected the ${toolCall.function.name} tool execution. The response has been terminated. Please wait for the user's next instruction.`
335
+ });
336
+ return;
337
+ }
338
+ }
339
+ // Continue loop to get model response to tool results
340
+ iteration++;
341
+ continue;
342
+ }
343
+ // No tool calls, this is the final response
344
+ const content = message.content || '';
345
+ debugLog('Final response - no tool calls detected');
346
+ debugLog('Final content length:', content.length);
347
+ debugLog('Final content preview:', content.substring(0, 200));
348
+ if (this.onFinalMessage) {
349
+ debugLog('Calling onFinalMessage callback');
350
+ this.onFinalMessage(content, reasoning);
351
+ }
352
+ else {
353
+ debugLog('No onFinalMessage callback set');
354
+ }
355
+ // Add final response to conversation history
356
+ this.messages.push({
357
+ role: 'assistant',
358
+ content: content
359
+ });
360
+ debugLog('Final response added to conversation history, exiting chat loop');
361
+ this.currentAbortController = null; // Clear abort controller
362
+ return; // Successfully completed, exit both loops
363
+ }
364
+ catch (error) {
365
+ this.currentAbortController = null; // Clear abort controller
366
+ // Check if this is an abort error due to user interruption
367
+ if (error instanceof Error && (error.message.includes('Request was aborted') ||
368
+ error.message.includes('The operation was aborted') ||
369
+ error.name === 'AbortError')) {
370
+ debugLog('API request aborted due to user interruption');
371
+ // Don't add error message if it's an interruption - the interrupt message was already added
372
+ return;
373
+ }
374
+ debugLog('Error occurred during API call:', error);
375
+ debugLog('Error details:', {
376
+ message: error instanceof Error ? error.message : String(error),
377
+ stack: error instanceof Error ? error.stack : 'No stack available'
378
+ });
379
+ // Add API error as context message instead of terminating chat
380
+ let errorMessage = 'Unknown error occurred';
381
+ let is401Error = false;
382
+ if (error instanceof Error) {
383
+ // Check if it's an API error with more details
384
+ if ('status' in error && 'error' in error) {
385
+ const apiError = error;
386
+ is401Error = apiError.status === 401;
387
+ if (apiError.error?.error?.message) {
388
+ errorMessage = `API Error (${apiError.status}): ${apiError.error.error.message}`;
389
+ if (apiError.error.error.code) {
390
+ errorMessage += ` (Code: ${apiError.error.error.code})`;
391
+ }
392
+ }
393
+ else {
394
+ errorMessage = `API Error (${apiError.status}): ${error.message}`;
395
+ }
396
+ }
397
+ else {
398
+ errorMessage = `Error: ${error.message}`;
399
+ }
400
+ }
401
+ else {
402
+ errorMessage = `Error: ${String(error)}`;
403
+ }
404
+ // For 401 errors (invalid API key), don't retry - terminate immediately
405
+ if (is401Error) {
406
+ throw new Error(`${errorMessage}. Please check your API key and use /login to set a valid key.`);
407
+ }
408
+ // Ask user if they want to retry via callback
409
+ if (this.onError) {
410
+ const shouldRetry = await this.onError(errorMessage);
411
+ if (shouldRetry) {
412
+ // User wants to retry - continue the loop without adding error to conversation
413
+ iteration++;
414
+ continue;
415
+ }
416
+ else {
417
+ // User chose not to retry - add error message and return
418
+ this.messages.push({
419
+ role: 'system',
420
+ content: `Request failed with error: ${errorMessage}. User chose not to retry.`
421
+ });
422
+ return;
423
+ }
424
+ }
425
+ else {
426
+ // No error callback available - use old behavior
427
+ // Add error context to conversation for model to see and potentially recover
428
+ this.messages.push({
429
+ role: 'system',
430
+ content: `Previous API request failed with error: ${errorMessage}. Please try a different approach or ask the user for clarification.`
431
+ });
432
+ // Continue conversation loop to let model attempt recovery
433
+ iteration++;
434
+ continue;
435
+ }
436
+ }
437
+ }
438
+ // Hit max iterations, ask user if they want to continue
439
+ if (iteration >= maxIterations) {
440
+ let shouldContinue = false;
441
+ if (this.onMaxIterations) {
442
+ shouldContinue = await this.onMaxIterations(maxIterations);
443
+ }
444
+ if (shouldContinue) {
445
+ iteration = 0; // Reset iteration counter
446
+ continue; // Continue the outer loop
447
+ }
448
+ else {
449
+ return; // Exit both loops
450
+ }
451
+ }
452
+ }
453
+ }
454
+ async executeToolCall(toolCall) {
455
+ try {
456
+ // Strip 'repo_browser.' prefix if present (some models hallucinate this)
457
+ let toolName = toolCall.function.name;
458
+ if (toolName.startsWith('repo_browser.')) {
459
+ toolName = toolName.substring('repo_browser.'.length);
460
+ }
461
+ // Handle truncated tool calls
462
+ let toolArgs;
463
+ try {
464
+ toolArgs = JSON.parse(toolCall.function.arguments);
465
+ }
466
+ catch (error) {
467
+ return {
468
+ error: `Tool arguments truncated: ${error}. Please break this into smaller pieces or use shorter content.`,
469
+ success: false
470
+ };
471
+ }
472
+ // Notify UI about tool start
473
+ if (this.onToolStart) {
474
+ this.onToolStart(toolName, toolArgs);
475
+ }
476
+ // Check read-before-edit for edit tools
477
+ if (toolName === 'edit_file' && toolArgs.file_path) {
478
+ if (!validateReadBeforeEdit(toolArgs.file_path)) {
479
+ const errorMessage = getReadBeforeEditError(toolArgs.file_path);
480
+ const result = { error: errorMessage, success: false };
481
+ if (this.onToolEnd) {
482
+ this.onToolEnd(toolName, result);
483
+ }
484
+ return result;
485
+ }
486
+ }
487
+ // Check if tool needs approval (only after validation passes)
488
+ const isDangerous = DANGEROUS_TOOLS.includes(toolName);
489
+ const requiresApproval = APPROVAL_REQUIRED_TOOLS.includes(toolName);
490
+ const needsApproval = isDangerous || requiresApproval;
491
+ // For APPROVAL_REQUIRED_TOOLS, check if session auto-approval is enabled
492
+ const canAutoApprove = requiresApproval && !isDangerous && this.sessionAutoApprove;
493
+ if (needsApproval && !canAutoApprove) {
494
+ let approvalResult;
495
+ if (this.onToolApproval) {
496
+ // Check for interruption before waiting for approval
497
+ if (this.isInterrupted) {
498
+ const result = { error: 'Tool execution interrupted by user', success: false, userRejected: true };
499
+ if (this.onToolEnd) {
500
+ this.onToolEnd(toolName, result);
501
+ }
502
+ return result;
503
+ }
504
+ approvalResult = await this.onToolApproval(toolName, toolArgs);
505
+ // Check for interruption after approval process
506
+ if (this.isInterrupted) {
507
+ const result = { error: 'Tool execution interrupted by user', success: false, userRejected: true };
508
+ if (this.onToolEnd) {
509
+ this.onToolEnd(toolName, result);
510
+ }
511
+ return result;
512
+ }
513
+ }
514
+ else {
515
+ // No approval callback available, reject by default
516
+ approvalResult = { approved: false };
517
+ }
518
+ // Enable session auto-approval if requested (only for APPROVAL_REQUIRED_TOOLS)
519
+ if (approvalResult.autoApproveSession && requiresApproval && !isDangerous) {
520
+ this.sessionAutoApprove = true;
521
+ }
522
+ if (!approvalResult.approved) {
523
+ const result = { error: 'Tool execution canceled by user', success: false, userRejected: true };
524
+ if (this.onToolEnd) {
525
+ this.onToolEnd(toolName, result);
526
+ }
527
+ return result;
528
+ }
529
+ }
530
+ // Execute tool
531
+ const result = await executeTool(toolName, toolArgs);
532
+ // Notify UI about tool completion
533
+ if (this.onToolEnd) {
534
+ this.onToolEnd(toolName, result);
535
+ }
536
+ return result;
537
+ }
538
+ catch (error) {
539
+ const errorMsg = `Tool execution error: ${error}`;
540
+ return { error: errorMsg, success: false };
541
+ }
542
+ }
543
+ }
544
+ // Debug logging to file
545
+ const DEBUG_LOG_FILE = path.join(process.cwd(), 'debug-agent.log');
546
+ let debugLogCleared = false;
547
+ let debugEnabled = false;
548
+ function debugLog(message, data) {
549
+ if (!debugEnabled)
550
+ return;
551
+ // Clear log file on first debug log of each session
552
+ if (!debugLogCleared) {
553
+ fs.writeFileSync(DEBUG_LOG_FILE, '');
554
+ debugLogCleared = true;
555
+ }
556
+ const timestamp = new Date().toISOString();
557
+ const logEntry = `[${timestamp}] ${message}${data ? '\n' + JSON.stringify(data, null, 2) : ''}\n`;
558
+ fs.appendFileSync(DEBUG_LOG_FILE, logEntry);
559
+ }
560
+ function generateCurlCommand(apiKey, requestBody, requestCount) {
561
+ if (!debugEnabled)
562
+ return '';
563
+ const maskedApiKey = `${apiKey.substring(0, 8)}...${apiKey.substring(apiKey.length - 8)}`;
564
+ // Write request body to JSON file
565
+ const jsonFileName = `debug-request-${requestCount}.json`;
566
+ const jsonFilePath = path.join(process.cwd(), jsonFileName);
567
+ fs.writeFileSync(jsonFilePath, JSON.stringify(requestBody, null, 2));
568
+ const curlCmd = `curl -X POST "https://api.groq.com/openai/v1/chat/completions" \\
569
+ -H "Authorization: Bearer ${maskedApiKey}" \\
570
+ -H "Content-Type: application/json" \\
571
+ -d @${jsonFileName}`;
572
+ return curlCmd;
573
+ }
574
+ //# sourceMappingURL=agent.js.map
novas/novacore-zephyr/groq-code-cli/dist/core/agent.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"agent.js","sourceRoot":"","s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AAS,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC;IAE1F,kCAAkC;IAClC,MAAM,YAAY,GAAG,iBAAiB,YAAY,OAAO,CAAC;IAC1D,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,YAAY,CAAC,CAAC;IAC5D,EAAE,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;IAErE,MAAM,OAAO,GAAG;8BACY,YAAY;;QAElC,YAAY,EAAE,CAAC;IAErB,OAAO,OAAO,CAAC;AACjB,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/core/cli.d.ts ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=cli.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/core/cli.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/core/cli.ts"],"names":[],"mappings":""}
novas/novacore-zephyr/groq-code-cli/dist/core/cli.js ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env node
2
+ import { Command } from 'commander';
3
+ import chalk from 'chalk';
4
+ import { render } from 'ink';
5
+ import React from 'react';
6
+ import { Agent } from './agent.js';
7
+ import App from '../ui/App.js';
8
+ const program = new Command();
9
+ /**
10
+ * Start the interactive terminal chat UI by creating an Agent and rendering the Ink App.
11
+ *
12
+ * Initializes an AI agent with the given temperature, optional system prompt, debug mode, and optional proxy,
13
+ * prints the CLI banner, validates the proxy URL (if provided), then renders the React/Ink UI. On invalid proxy
14
+ * or on initialization errors the process exits with code 1.
15
+ *
16
+ * @param temperature - Sampling temperature used for model generation.
17
+ * @param system - Optional system message to seed the agent's context; pass `null` to use defaults.
18
+ * @param debug - When true, enables debug logging for the agent.
19
+ * @param proxy - Optional proxy URL to route requests through (e.g., `http://proxy:8080` or `socks5://proxy:1080`).
20
+ */
21
+ async function startChat(temperature, system, debug, proxy) {
22
+ console.log(chalk.hex('#FF4500')(`
23
+ ██████ ██████ ██████ ██████
24
+ ███░░███░░███░░░██ ███░░███ ███░░███
25
+ ░███ ░███ ░███ ░░░ ░███ ░███░███ ░███
26
+ ░███ ░███ ░███ ░███ ░███░███ ░███
27
+ ░░███░███ ░███ ░░██████ ░░███░███
28
+ ░░░░░███ ░░░░ ░░░░░░ ░░░░░███
29
+ ██ ░███ ░███
30
+ ░░██████ ░███
31
+ ░░░░░░ ░░░
32
+ ███
33
+ ░░███
34
+ ██████ ██████ ███████ ██████
35
+ ███░░███ ███░░███ ███░░███ ███░░███
36
+ ░███ ░░░ ░███ ░███░███ ░███ ░███████
37
+ ░███ ███░███ ░███░███ ░███ ░███░░░
38
+ ░░██████ ░░██████ ░░███████ ░░██████
39
+ ░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░
40
+ `));
41
+ let defaultModel = 'moonshotai/kimi-k2-instruct';
42
+ // Validate proxy URL if provided
43
+ if (proxy) {
44
+ try {
45
+ new URL(proxy);
46
+ }
47
+ catch (error) {
48
+ // Don't display the actual URL in case it contains credentials
49
+ console.log(chalk.red('Invalid proxy URL provided'));
50
+ console.log(chalk.yellow('Proxy URL must be a valid URL (e.g., http://proxy:8080 or socks5://proxy:1080)'));
51
+ process.exit(1);
52
+ }
53
+ }
54
+ try {
55
+ // Create agent (API key will be checked on first message)
56
+ const agent = await Agent.create(defaultModel, temperature, system, debug, proxy);
57
+ render(React.createElement(App, { agent }));
58
+ }
59
+ catch (error) {
60
+ console.log(chalk.red(`Error initializing agent: ${error}`));
61
+ process.exit(1);
62
+ }
63
+ }
64
+ program
65
+ .name('groq')
66
+ .description('Groq Code CLI')
67
+ .version('1.0.2')
68
+ .option('-t, --temperature <temperature>', 'Temperature for generation', parseFloat, 1.0)
69
+ .option('-s, --system <message>', 'Custom system message')
70
+ .option('-d, --debug', 'Enable debug logging to debug-agent.log in current directory')
71
+ .option('-p, --proxy <url>', 'Proxy URL (e.g. http://proxy:8080 or socks5://proxy:1080)')
72
+ .action(async (options) => {
73
+ await startChat(options.temperature, options.system || null, options.debug, options.proxy);
74
+ });
75
+ program.parse();
76
+ //# sourceMappingURL=cli.js.map
novas/novacore-zephyr/groq-code-cli/dist/core/cli.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/core/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,GAAG,MAAM,cAAc,CAAC;AAE/B,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B;;;;;;;;;;;GAWG;AACH,KAAK,UAAU,SAAS,CACtB,WAAmB,EACnB,MAAqB,EACrB,KAAe,EACf,KAAc;IAEd,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;;;;;;;;;;;;;;;;;;CAkBlC,CAAC,CAAC,CAAC;IAEF,IAAI,YAAY,GAAG,6BAA6B,CAAC;IAEjD,iCAAiC;IACjC,IAAI,KAAK,EAAE,CAAC;QACV,IAAI,CAAC;YACH,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;QACjB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf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AK,EAAE,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/tests/proxy-config.test.d.ts ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ export {};
2
+ //# sourceMappingURL=proxy-config.test.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/tests/proxy-config.test.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"proxy-config.test.d.ts","sourceRoot":"","sources":["../../src/tests/proxy-config.test.ts"],"names":[],"mappings":""}
novas/novacore-zephyr/groq-code-cli/dist/tests/proxy-config.test.js ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import test from 'ava';
2
+ import { getProxyAgent, getProxyInfo } from '../utils/proxy-config.js';
3
+ // Helper to set and restore environment variables
4
+ function withEnv(env, fn) {
5
+ const original = {};
6
+ // Save original values
7
+ for (const key of Object.keys(env)) {
8
+ original[key] = process.env[key];
9
+ }
10
+ // Set new values
11
+ for (const [key, value] of Object.entries(env)) {
12
+ if (value === undefined) {
13
+ delete process.env[key];
14
+ }
15
+ else {
16
+ process.env[key] = value;
17
+ }
18
+ }
19
+ try {
20
+ fn();
21
+ }
22
+ finally {
23
+ // Restore original values
24
+ for (const [key, value] of Object.entries(original)) {
25
+ if (value === undefined) {
26
+ delete process.env[key];
27
+ }
28
+ else {
29
+ process.env[key] = value;
30
+ }
31
+ }
32
+ }
33
+ }
34
+ test('getProxyInfo returns disabled when no proxy is configured', t => {
35
+ withEnv({ HTTP_PROXY: undefined, HTTPS_PROXY: undefined, http_proxy: undefined, https_proxy: undefined }, () => {
36
+ const info = getProxyInfo();
37
+ t.is(info.enabled, false);
38
+ t.is(info.url, undefined);
39
+ t.is(info.type, undefined);
40
+ });
41
+ });
42
+ test('getProxyInfo detects HTTP_PROXY environment variable', t => {
43
+ withEnv({ HTTP_PROXY: 'http://proxy.example.com:8080', HTTPS_PROXY: undefined }, () => {
44
+ const info = getProxyInfo();
45
+ t.is(info.enabled, true);
46
+ t.is(info.url, 'http://proxy.example.com:8080');
47
+ t.is(info.type, 'http');
48
+ });
49
+ });
50
+ test('getProxyInfo detects HTTPS_PROXY environment variable', t => {
51
+ withEnv({ HTTPS_PROXY: 'http://secure-proxy.example.com:8443', HTTP_PROXY: undefined }, () => {
52
+ const info = getProxyInfo();
53
+ t.is(info.enabled, true);
54
+ t.is(info.url, 'http://secure-proxy.example.com:8443');
55
+ t.is(info.type, 'http');
56
+ });
57
+ });
58
+ test('getProxyInfo prefers HTTPS_PROXY over HTTP_PROXY', t => {
59
+ withEnv({
60
+ HTTPS_PROXY: 'http://secure-proxy.example.com:8443',
61
+ HTTP_PROXY: 'http://proxy.example.com:8080'
62
+ }, () => {
63
+ const info = getProxyInfo();
64
+ t.is(info.enabled, true);
65
+ t.is(info.url, 'http://secure-proxy.example.com:8443');
66
+ t.is(info.type, 'http');
67
+ });
68
+ });
69
+ test('getProxyInfo detects SOCKS5 proxy from URL scheme', t => {
70
+ withEnv({ HTTP_PROXY: 'socks5://socks-proxy.example.com:1080', HTTPS_PROXY: undefined }, () => {
71
+ const info = getProxyInfo();
72
+ t.is(info.enabled, true);
73
+ t.is(info.url, 'socks5://socks-proxy.example.com:1080');
74
+ t.is(info.type, 'socks');
75
+ });
76
+ });
77
+ test('getProxyInfo detects SOCKS proxy (without version) from URL scheme', t => {
78
+ withEnv({ HTTP_PROXY: 'socks://socks-proxy.example.com:1080', HTTPS_PROXY: undefined }, () => {
79
+ const info = getProxyInfo();
80
+ t.is(info.enabled, true);
81
+ t.is(info.url, 'socks://socks-proxy.example.com:1080');
82
+ t.is(info.type, 'socks');
83
+ });
84
+ });
85
+ test('getProxyInfo respects lowercase environment variables', t => {
86
+ withEnv({
87
+ http_proxy: 'http://proxy.example.com:3128',
88
+ https_proxy: 'http://secure-proxy.example.com:3128',
89
+ HTTP_PROXY: undefined,
90
+ HTTPS_PROXY: undefined
91
+ }, () => {
92
+ const info = getProxyInfo();
93
+ t.is(info.enabled, true);
94
+ t.is(info.url, 'http://secure-proxy.example.com:3128');
95
+ t.is(info.type, 'http');
96
+ });
97
+ });
98
+ test('getProxyInfo uses proxy override when provided', t => {
99
+ withEnv({ HTTP_PROXY: 'http://env-proxy.example.com:8080' }, () => {
100
+ const info = getProxyInfo('http://override-proxy.example.com:9090');
101
+ t.is(info.enabled, true);
102
+ t.is(info.url, 'http://override-proxy.example.com:9090');
103
+ t.is(info.type, 'http');
104
+ });
105
+ });
106
+ test('getProxyInfo detects SOCKS proxy type in override', t => {
107
+ withEnv({ HTTP_PROXY: 'http://env-proxy.example.com:8080' }, () => {
108
+ const info = getProxyInfo('socks5://override-socks.example.com:1080');
109
+ t.is(info.enabled, true);
110
+ t.is(info.url, 'socks5://override-socks.example.com:1080');
111
+ t.is(info.type, 'socks');
112
+ });
113
+ });
114
+ test('getProxyAgent returns undefined when no proxy is configured', t => {
115
+ withEnv({ HTTP_PROXY: undefined, HTTPS_PROXY: undefined }, () => {
116
+ const agent = getProxyAgent();
117
+ t.is(agent, undefined);
118
+ });
119
+ });
120
+ test('getProxyAgent creates HttpsProxyAgent for HTTP proxy', t => {
121
+ withEnv({ HTTP_PROXY: 'http://proxy.example.com:8080' }, () => {
122
+ const agent = getProxyAgent();
123
+ t.not(agent, undefined);
124
+ // Check that it's an HttpsProxyAgent instance
125
+ t.truthy(agent);
126
+ });
127
+ });
128
+ test('getProxyAgent creates SocksProxyAgent for SOCKS5 proxy', t => {
129
+ withEnv({ HTTP_PROXY: 'socks5://socks-proxy.example.com:1080' }, () => {
130
+ const agent = getProxyAgent();
131
+ t.not(agent, undefined);
132
+ // Check that it's a SocksProxyAgent instance
133
+ t.truthy(agent);
134
+ });
135
+ });
136
+ test('getProxyAgent uses override when provided', t => {
137
+ withEnv({ HTTP_PROXY: 'http://env-proxy.example.com:8080' }, () => {
138
+ const agent = getProxyAgent('http://override-proxy.example.com:9090');
139
+ t.not(agent, undefined);
140
+ t.truthy(agent);
141
+ });
142
+ });
143
+ test('getProxyAgent creates correct agent for SOCKS override', t => {
144
+ withEnv({ HTTP_PROXY: 'http://env-proxy.example.com:8080' }, () => {
145
+ const agent = getProxyAgent('socks5://override-socks.example.com:1080');
146
+ t.not(agent, undefined);
147
+ t.truthy(agent);
148
+ });
149
+ });
150
+ test('getProxyInfo sanitizes proxy URLs with credentials', t => {
151
+ const info = getProxyInfo('http://user:pass@proxy.example.com:8080');
152
+ t.is(info.enabled, true);
153
+ t.is(info.url, 'http://proxy.example.com:8080/');
154
+ t.is(info.type, 'http');
155
+ });
156
+ test('getProxyAgent handles invalid proxy URLs gracefully', t => {
157
+ const agent = getProxyAgent('not-a-valid-url');
158
+ t.is(agent, undefined);
159
+ });
160
+ test('getProxyInfo handles malformed URLs safely', t => {
161
+ const info = getProxyInfo('http://user@:pass@@proxy:8080');
162
+ t.is(info.enabled, true);
163
+ // Should return sanitized version or safe message
164
+ t.truthy(info.url);
165
+ if (info.url) {
166
+ t.not(info.url.includes('pass'), 'Password should be removed');
167
+ }
168
+ });
169
+ //# sourceMappingURL=proxy-config.test.js.map
novas/novacore-zephyr/groq-code-cli/dist/tests/proxy-config.test.js.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"proxy-config.test.js","sourceRoot":"","sources":["../../src/tests/proxy-config.test.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,KAAK,CAAC;AACvB,OAAO,EAAE,aAAa,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H,IAAI,CAAC,4CAA4C,EAAE,CAAC,CAAC,EAAE;IACrD,MAAM,IAAI,GAAG,YAAY,CAAC,+BAA+B,CAAC,CAAC;IAC3D,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACzB,kDAAkD;IAClD,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACnB,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;QACb,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,4BAA4B,CAAC,CAAC;IACjE,CAAC;AACH,CAAC,CAAC,CAAC"}
novas/novacore-zephyr/groq-code-cli/dist/tools/tool-schemas.d.ts ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Tool schemas for Groq function calling API.
3
+ * These define the available tools that the LLM can call.
4
+ */
5
+ export interface ToolSchema {
6
+ type: 'function';
7
+ function: {
8
+ name: string;
9
+ description: string;
10
+ parameters: {
11
+ type: 'object';
12
+ properties: Record<string, any>;
13
+ required: string[];
14
+ };
15
+ };
16
+ }
17
+ export declare const READ_FILE_SCHEMA: ToolSchema;
18
+ export declare const CREATE_FILE_SCHEMA: ToolSchema;
19
+ export declare const EDIT_FILE_SCHEMA: ToolSchema;
20
+ export declare const DELETE_FILE_SCHEMA: ToolSchema;
21
+ export declare const EXECUTE_COMMAND_SCHEMA: ToolSchema;
22
+ export declare const SEARCH_FILES_SCHEMA: ToolSchema;
23
+ export declare const LIST_FILES_SCHEMA: ToolSchema;
24
+ export declare const CREATE_TASKS_SCHEMA: ToolSchema;
25
+ export declare const UPDATE_TASKS_SCHEMA: ToolSchema;
26
+ export declare const ALL_TOOL_SCHEMAS: ToolSchema[];
27
+ export declare const SAFE_TOOLS: string[];
28
+ export declare const APPROVAL_REQUIRED_TOOLS: string[];
29
+ export declare const DANGEROUS_TOOLS: string[];
30
+ //# sourceMappingURL=tool-schemas.d.ts.map
novas/novacore-zephyr/groq-code-cli/dist/tools/tool-schemas.d.ts.map ADDED
@@ -0,0 +1 @@
 
 
1
+ {"version":3,"file":"tool-schemas.d.ts","sourceRoot":"","sources":["../../src/tools/tool-schemas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ,CAAC;YACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAChC,QAAQ,EAAE,MAAM,EAAE,CAAC;SACpB,CAAC;KACH,CAAC;CACH;AAID,eAAO,MAAM,gBAAgB,EAAE,UA0B9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UA+BhC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UA6B9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,UAqBhC,CAAC;AAIF,eAAO,MAAM,sBAAsB,EAAE,UA+BpC,CAAC;AAIF,eAAO,MAAM,mBAAmB,EAAE,UAuEjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAgC/B,CAAC;AAKF,eAAO,MAAM,mBAAmB,EAAE,UAwCjC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAmCjC,CAAC;AAGF,eAAO,MAAM,gBAAgB,cAU5B,CAAC;AAGF,eAAO,MAAM,UAAU,UAMtB,CAAC;AAGF,eAAO,MAAM,uBAAuB,UAGnC,CAAC;AAGF,eAAO,MAAM,eAAe,UAG3B,CAAC"}