codemini-cli 0.5.3 → 0.5.4

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.
@@ -0,0 +1 @@
1
+ import{i as e}from"./index-fbvf7RS1.js";export{e as Mermaid};
@@ -14,9 +14,9 @@
14
14
  document.documentElement.dataset.palette = palette;
15
15
  })();
16
16
  </script>
17
- <script type="module" crossorigin src="/assets/index-Cfk9ARKs.js"></script>
17
+ <script type="module" crossorigin src="/assets/index-fbvf7RS1.js"></script>
18
18
  <link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-S-ySWqyJ.js">
19
- <link rel="stylesheet" crossorigin href="/assets/index-Dqq2DCEb.css">
19
+ <link rel="stylesheet" crossorigin href="/assets/index-SZnRN7a3.css">
20
20
  </head>
21
21
  <body class="font-sans antialiased">
22
22
  <div id="root"></div>
package/deployment.md CHANGED
@@ -13,13 +13,13 @@ npm pack
13
13
  Expected output:
14
14
 
15
15
  ```text
16
- codemini-cli-0.5.3.tgz
16
+ codemini-cli-0.5.4.tgz
17
17
  ```
18
18
 
19
19
  If you want to verify the package contents:
20
20
 
21
21
  ```bash
22
- tar -tf codemini-cli-0.5.3.tgz
22
+ tar -tf codemini-cli-0.5.4.tgz
23
23
  ```
24
24
 
25
25
  ## 2. Copy To The Target Machine
@@ -34,7 +34,7 @@ Copy the generated `.tgz` file to the Win10 machine by one of these methods:
34
34
  Recommended target path:
35
35
 
36
36
  ```powershell
37
- C:\temp\codemini-cli-0.5.3.tgz
37
+ C:\temp\codemini-cli-0.5.4.tgz
38
38
  ```
39
39
 
40
40
  ## 3. Environment Requirements
@@ -58,7 +58,7 @@ npm -v
58
58
  Global install:
59
59
 
60
60
  ```powershell
61
- npm install -g C:\temp\codemini-cli-0.5.3.tgz
61
+ npm install -g C:\temp\codemini-cli-0.5.4.tgz
62
62
  ```
63
63
 
64
64
  If global install is blocked by company policy, install in a working directory instead:
@@ -66,7 +66,7 @@ If global install is blocked by company policy, install in a working directory i
66
66
  ```powershell
67
67
  mkdir C:\temp\coder-test
68
68
  cd C:\temp\coder-test
69
- npm install C:\temp\codemini-cli-0.5.3.tgz
69
+ npm install C:\temp\codemini-cli-0.5.4.tgz
70
70
  ```
71
71
 
72
72
  ## 5. Confirm Installation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codemini-cli",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Coding CLI optimized for small-model workflows and Windows PowerShell",
5
5
  "keywords": [
6
6
  "cli",
@@ -2818,6 +2818,22 @@ async function askModel({
2818
2818
  }
2819
2819
  current.at = new Date().toISOString();
2820
2820
  if (persistSession) scheduleSessionSave();
2821
+ } else {
2822
+ const assistantMessage = event.assistantMessage && typeof event.assistantMessage === 'object'
2823
+ ? event.assistantMessage
2824
+ : { content: event.text || '' };
2825
+ session.messages.push(stampedMessage('assistant', assistantMessage.content || event.text || '', {
2826
+ ...(typeof assistantMessage.reasoning_content === 'string' && assistantMessage.reasoning_content
2827
+ ? { reasoning_content: assistantMessage.reasoning_content }
2828
+ : {}),
2829
+ ...(Array.isArray(assistantMessage.reasoning_details) && assistantMessage.reasoning_details.length > 0
2830
+ ? { reasoning_details: assistantMessage.reasoning_details }
2831
+ : {}),
2832
+ ...(Array.isArray(assistantMessage.tool_calls) && assistantMessage.tool_calls.length > 0
2833
+ ? { tool_calls: assistantMessage.tool_calls }
2834
+ : {})
2835
+ }));
2836
+ if (persistSession) scheduleSessionSave();
2821
2837
  }
2822
2838
  activeAssistantIndex = -1;
2823
2839
  } else if (event?.type === 'tool:end' || event?.type === 'tool:error' || event?.type === 'tool:blocked') {
@@ -2879,9 +2895,9 @@ async function askModel({
2879
2895
  requestCompletion: async ({ messages, tools, model: selectedModel }) => {
2880
2896
  let started = false;
2881
2897
  const startAssistantStream = () => {
2882
- if (!started && onAgentEvent) {
2898
+ if (!started) {
2883
2899
  started = true;
2884
- onAgentEvent({ type: 'assistant:start' });
2900
+ wrappedAgentEvent({ type: 'assistant:start' });
2885
2901
  }
2886
2902
  };
2887
2903
 
@@ -2897,11 +2913,11 @@ async function askModel({
2897
2913
  signal,
2898
2914
  onTextDelta: (delta) => {
2899
2915
  startAssistantStream();
2900
- if (onAgentEvent) onAgentEvent({ type: 'assistant:delta', text: delta });
2916
+ wrappedAgentEvent({ type: 'assistant:delta', text: delta });
2901
2917
  },
2902
2918
  onToolCallDelta: (toolCall) => {
2903
2919
  startAssistantStream();
2904
- if (onAgentEvent) onAgentEvent({ type: 'assistant:tool_call_delta', toolCall });
2920
+ wrappedAgentEvent({ type: 'assistant:tool_call_delta', toolCall });
2905
2921
  }
2906
2922
  });
2907
2923
 
@@ -111,7 +111,7 @@ class FffMcpClient {
111
111
  capabilities: {},
112
112
  clientInfo: {
113
113
  name: 'codemini-cli',
114
- version: '0.5.3'
114
+ version: '0.5.4'
115
115
  }
116
116
  });
117
117
  this.sendNotification('notifications/initialized', {});
@@ -1 +0,0 @@
1
- import{i as e}from"./index-Cfk9ARKs.js";export{e as Mermaid};