kodenique-agent 0.6.0 → 0.7.0

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.
Files changed (4) hide show
  1. package/README.md +1 -1
  2. package/cli.mjs +2 -1
  3. package/package.json +1 -1
  4. package/ui.mjs +12 -2
package/README.md CHANGED
@@ -14,7 +14,7 @@ kodenique-agent
14
14
  ```
15
15
 
16
16
  Update with `npm install -g kodenique-agent@latest`.
17
- A release archive can also be installed with `npm install -g ./kodenique-agent-0.6.0.tgz`.
17
+ A release archive can also be installed with `npm install -g ./kodenique-agent-0.7.0.tgz`.
18
18
 
19
19
  The wizard asks for their API key (hidden while typing), optional Anthropic workspace ID, model from the live Claude API list, and whether to enable thinking summaries. Use a separate key per teammate; don't include your personal key in the package.
20
20
 
package/cli.mjs CHANGED
@@ -10,7 +10,7 @@ import { configPath, loadConfig, saveConfig, resolveConfig } from './config.mjs'
10
10
  const args=process.argv.slice(2);
11
11
  const help=`kodenique-agent [project-folder] [--approval ask|auto-edit|auto-all]\nkodenique-agent --auto Auto-approve edits and commands for this session\nkodenique-agent setup Configure your own API key and workspace\nkodenique-agent --version\n\nChat: / /project [folder] /files /approval /status /model /models /help /clear /thinking on|off /usage /exit\nEnvironment overrides: ANTHROPIC_API_KEY, ANTHROPIC_WORKSPACE_ID,\nANTHROPIC_MODEL, ANTHROPIC_THINKING=on|off\nRequires Node.js 22+, macOS or Linux. Ask is the default. Auto-all runs shell commands with your full permissions.`;
12
12
  if(args.includes('--help')) { console.log(help); process.exit(0); }
13
- if(args.includes('--version')) { console.log('kodenique-agent 0.6.0'); process.exit(0); }
13
+ if(args.includes('--version')) { console.log('kodenique-agent 0.7.0'); process.exit(0); }
14
14
  let options;
15
15
  try { options=parseArgs(args); } catch(e) {console.error(e.message);process.exit(1);}
16
16
  let approval=options.mode;
@@ -59,6 +59,7 @@ try {
59
59
  let messages=[]; let usage={input:0,output:0};
60
60
  while(!rl.closed) {
61
61
  chatPrompt=true;
62
+ ui.inputFrame({model:config.model,root,mode:approval,thinking:config.thinking});
62
63
  const prompt=await ask(ui.prompt(approval));
63
64
  chatPrompt=false;
64
65
  if(!prompt) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kodenique-agent",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Your team's terminal coding agent, powered directly by the Claude API",
5
5
  "type": "module",
6
6
  "engines": {
package/ui.mjs CHANGED
@@ -32,9 +32,19 @@ export function createUI(clean,output=process.stdout) {
32
32
  note:text=>line(paint('2',text)),
33
33
  success:text=>line(paint('32',text)),
34
34
  error:text=>line(paint('31',text)),
35
- prompt:mode=>`\n\x01${paint(mode==='auto-all'?'33':'36',`${mode} ❯ `)}\x02`,
35
+ prompt:()=>`\n\x01${paint('1;36','› ')}\x02`,
36
+ inputFrame:({model,root,mode,thinking})=>{
37
+ const width=Math.max(54,Math.min(100,(output.columns||84)-4));
38
+ const bg=text=>color?`\x1b[48;5;236m${text}\x1b[0m`:text;
39
+ line('');
40
+ line(bg(' '.repeat(width)));
41
+ line(bg(' '+paint('2','Ask kodenique-agent to do anything').padEnd(width-2)));
42
+ line(bg(' '.repeat(width)));
43
+ line(paint('2',` ${model} · ${root} · ${mode} · thinking ${thinking?'on':'off'} · / for commands`));
44
+ },
45
+ status:({model,root,mode,thinking})=>paint('2',`${model} · ${root} · ${mode} · thinking ${thinking?'on':'off'} · / for commands`),
36
46
  header:({model,root,mode,thinking})=>{
37
- line('');line(paint('1;36',' ◇ KODENIQUE')+paint('2',' / terminal agent · 0.5.0'));
47
+ line('');line(paint('1;36',' ◇ KODENIQUE')+paint('2',' / terminal agent · 0.7.0'));
38
48
  line(paint('2',' ─────────────────────────────────────────────'));
39
49
  line(' '+paint('1',model));line(' '+paint('2',root));
40
50
  line(' '+paint(mode==='auto-all'?'33':'36',`approval: ${mode}`)+paint('2',` · thinking: ${thinking?'on':'off'}`));