@tencent-ai/codebuddy-code 1.0.5 → 1.0.7
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/CHANGELOG.md +23 -0
- package/dist/422.codebuddy.js +1 -1
- package/dist/codebuddy.js +1 -1
- package/package.json +1 -1
- package/product.internal.json +2 -2
- package/product.ioa.json +3 -2
- package/product.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,29 @@ CodeBuddy Code 的所有重要更新都会记录在这里。
|
|
|
4
4
|
|
|
5
5
|
我们遵循 [语义化版本](https://semver.org/spec/v2.0.0.html) 规范。
|
|
6
6
|
|
|
7
|
+
## [1.0.7] - 2025-09-08
|
|
8
|
+
|
|
9
|
+
### ✨ 新功能
|
|
10
|
+
- **模型上下文初始化**:新增模型上下文初始化功能,提升AI对话体验
|
|
11
|
+
|
|
12
|
+
### 🔧 技术改进
|
|
13
|
+
- **代码优化**:优化了部分代码逻辑,提升系统性能
|
|
14
|
+
|
|
15
|
+
### 🐛 问题修复
|
|
16
|
+
- **登录状态修复**:修复在登陆状态执行完logout后esc会跳转至登陆页问题
|
|
17
|
+
- **消息清除修复**:修复切换login时没有清除消息问题
|
|
18
|
+
|
|
19
|
+
## [1.0.6] - 2025-09-08
|
|
20
|
+
|
|
21
|
+
### ✨ 新功能
|
|
22
|
+
- **管道输入支持**:新增管道输入功能,支持 `cat package.json | codebuddy -p "分析下组件依赖了哪些"` 语法
|
|
23
|
+
- **内容智能组合**:管道内容与用户提示自然组合,管道内容在前,用户指令在后
|
|
24
|
+
- **兼容性保持**:完全兼容现有的交互和非交互模式,不影响原有功能
|
|
25
|
+
|
|
26
|
+
### 🔧 技术改进
|
|
27
|
+
- **输入检测**:通过 `process.stdin.isTTY` 自动检测管道输入
|
|
28
|
+
- **异步处理**:优化管道数据读取的异步处理逻辑
|
|
29
|
+
|
|
7
30
|
## [1.0.5] - 2025-09-07
|
|
8
31
|
|
|
9
32
|
### 🔧 功能改进
|
package/dist/422.codebuddy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.id=422,exports.ids=[422],exports.modules={7422:(e,t,n)=>{n.a(e,(async(e,r)=>{try{n.r(t),n.d(t,{LoginView:()=>LoginView});var
|
|
1
|
+
"use strict";exports.id=422,exports.ids=[422],exports.modules={7422:(e,t,n)=>{n.a(e,(async(e,r)=>{try{n.r(t),n.d(t,{LoginView:()=>LoginView});var a=n(80699),l=n(80932),o=n(14083),c=n(96540),i=n(66814),s=n(79413),u=n(30481),E=n(82101),m=n(34209),g=n(53829),d=n(49034),b=n(47693),h=n(83175),p=n(42790),y=e([o,E,g,d,p]);[o,E,g,d,p]=y.then?(await y)():y;const LoginView=()=>{const e=(0,i.i7)(g.Gb,(e=>e.staticKey));return c.createElement(c.Fragment,null,c.createElement(o.jC,{key:`login-view-${e}`,items:[c.createElement(LogoBox,{key:"logo-box"})]},(e=>e)),c.createElement(LoginBox,null))},LogoBox=()=>{const e=`Welcome to ${m.KR}`,t=e.length+8;return c.createElement(c.Fragment,null,c.createElement(o.az,{paddingLeft:1,borderStyle:"round",borderColor:h.Q.brand,width:t},c.createElement(o.EY,{color:h.Q.brand},"✻ ",e)),c.createElement(p.H,null))},f={iOA:"iOA",WeChat:"internal","Google / Github":"external"},LoginBox=()=>{const{authSession:e,navigate:t}=(0,i.i7)(g.aO,(e=>({authSession:e.authSession,navigate:e.navigate}))),[n,r]=(0,c.useState)("idle"),[m,p]=(0,c.useState)(""),[y,C]=(0,c.useState)(""),[G,w]=(0,c.useState)("iOA"),[A,S]=(0,c.useState)(!1),Y=(0,c.useRef)(new AbortController);(0,c.useEffect)((()=>{const e=(0,b.bi)().urlSubject.subscribe(p);return()=>e.unsubscribe()}),[]),(0,c.useEffect)((()=>{m&&u.E.copyToClipboard(m)}),[m]),(0,c.useEffect)((()=>{(async()=>{try{const e=a.ContainerUtil.get(s.Oc),t=await e.isIntranet();S(t),t||"iOA"!==G||w("Google / Github")}catch(e){S(!1),"iOA"===G&&w("Google / Github")}})()}),[G]),(0,o.Ge)(((a,l)=>{if("idle"===n){if(d.Om.RETURN(l))try{r("loading"),C(""),(0,b.Yf)().login({type:f[G],abortController:Y.current})}catch(e){r("error"),C(e instanceof Error?e.message:"Unknown error occurred")}else if(l.upArrow||l.downArrow){const e=A?["iOA","Google / Github","WeChat"]:["Google / Github","WeChat"],t=e.indexOf(G);let n;n=l.upArrow?t<=0?e.length-1:t-1:t>=e.length-1?0:t+1,w(e[n])}}else d.Om.ESCAPE(l)&&("loading"===n?(Y.current.abort(),r("idle")):e&&t("/chat"))}));const O=A?["iOA","Google / Github","WeChat"]:["Google / Github","WeChat"];return c.createElement(o.az,{marginTop:2,paddingX:1,flexDirection:"column",gap:1},"idle"===n?c.createElement(c.Fragment,null,c.createElement(o.az,null,c.createElement(o.EY,null,"Select login method:")),O.map((e=>c.createElement(o.az,{key:e},c.createElement(o.EY,{color:G===e?h.Q.brand:"grey"},G===e?l.Ay.pointer:" "," Login with ",e)))),c.createElement(o.az,{justifyContent:"space-between"},c.createElement(o.EY,{color:"grey"},"(Use ↑↓ to select, Enter to login)"))):"loading"===n?c.createElement(o.az,{paddingY:1,gap:1,flexDirection:"column"},c.createElement(o.az,null,c.createElement(o.EY,{color:"grey"},"Browser didn't open? Use the url below to sign in: (Copied link to clipboard)")),m&&c.createElement(o.az,null,c.createElement(o.EY,{color:"grey"},m)),c.createElement(o.az,{marginTop:1,gap:1},c.createElement(o.EY,{color:h.Q.brand},c.createElement(E.y$,{type:"star"})),c.createElement(o.EY,null,"Waiting for auth... (Press ESC to cancel)"))):"error"===n?c.createElement(c.Fragment,null,c.createElement(o.EY,{color:"red"},"Failed to login."),y&&c.createElement(o.EY,{color:"red"},"Message: ",y)):void 0)};r()}catch(e){r(e)}}))},42790:(e,t,n)=>{n.a(e,(async(e,r)=>{try{n.d(t,{H:()=>LogoText});var a=n(1597),l=n(14083),o=n(96540),c=n(66814),i=n(53829),s=n(83175),u=e([l,i]);[l,i]=u.then?(await u)():u;const LogoText=()=>{const e=(0,c.i7)(i.Gb,(e=>e.terminalWidth)),t=(0,o.useRef)((0,a.Ay)(s.Q.GradientColors)),n=(0,o.useCallback)((e=>t.current.multiline(e)),[t]),r=(0,o.useCallback)((()=>e>115?"\n ██████╗ ██████╗ ██████╗ ███████╗██████╗ ██╗ ██╗██████╗ ██████╗ ██╗ ██╗ ██████╗ ██████╗ ██████╗ ███████╗\n██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗██║ ██║██╔══██╗██╔══██╗╚██╗ ██╔╝ ██╔════╝██╔═══██╗██╔══██╗██╔════╝\n██║ ██║ ██║██║ ██║█████╗ ██████╔╝██║ ██║██║ ██║██║ ██║ ╚████╔╝ ██║ ██║ ██║██║ ██║█████╗ \n██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗██║ ██║██║ ██║██║ ██║ ╚██╔╝ ██║ ██║ ██║██║ ██║██╔══╝ \n╚██████╗╚██████╔╝██████╔╝███████╗██████╔╝╚██████╔╝██████╔╝██████╔╝ ██║ ╚██████╗╚██████╔╝██████╔╝███████╗\n ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝\n ":" \n ██████╗ ██████╗ ██████╗ ███████╗██████╗ ██╗ ██╗██████╗ ██████╗ ██╗ ██╗\n██╔════╝██╔═══██╗██╔══██╗██╔════╝██╔══██╗██║ ██║██╔══██╗██╔══██╗╚██╗ ██╔╝\n██║ ██║ ██║██║ ██║█████╗ ██████╔╝██║ ██║██║ ██║██║ ██║ ╚████╔╝ \n██║ ██║ ██║██║ ██║██╔══╝ ██╔══██╗██║ ██║██║ ██║██║ ██║ ╚██╔╝ \n╚██████╗╚██████╔╝██████╔╝███████╗██████╔╝╚██████╔╝██████╔╝██████╔╝ ██║ \n ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═════╝ ╚═════╝ ╚═════╝ ╚═════╝ ╚═╝ \n \n ██████╗ ██████╗ ██████╗ ███████╗ \n██╔════╝██╔═══██╗██╔══██╗██╔════╝ \n██║ ██║ ██║██║ ██║█████╗ \n██║ ██║ ██║██║ ██║██╔══╝ \n╚██████╗╚██████╔╝██████╔╝███████╗ \n ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝ \n "),[e]);return o.createElement(l.dL,{transform:n},o.createElement(l.EY,null,r()))};r()}catch(e){r(e)}}))}};
|