finch-git-branch 0.3.0 → 0.3.2

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
- ## Git Branch for Finch
1
+ ## Git Source Control for Finch
2
2
 
3
- Git Branch is a mini tool for [Finch](https://finchwork.app/) — a desktop AI agent you can download at [finchwork.app](https://finchwork.app/).
3
+ Git Source Control is a mini tool for [Finch](https://finchwork.app/) — a desktop AI agent you can download at [finchwork.app](https://finchwork.app/).
4
4
 
5
5
  ![Git Branch](https://raw.githubusercontent.com/finchtoys/finch-releases/refs/heads/main/extensions/git-branch/shot.png)
6
6
 
package/README.zh-CN.md CHANGED
@@ -1,6 +1,6 @@
1
- ## Git 分支小工具
1
+ ## Git 源码管理小工具
2
2
 
3
- Git 分支小工具是 [Finch](https://finchwork.app/) 的扩展。Finch 是一款桌面 AI Agent,可在 [finchwork.app](https://finchwork.app/) 下载。
3
+ Git 源码管理小工具是 [Finch](https://finchwork.app/) 的扩展。Finch 是一款桌面 AI Agent,可在 [finchwork.app](https://finchwork.app/) 下载。
4
4
 
5
5
  ![Git Branch](https://raw.githubusercontent.com/finchtoys/finch-releases/refs/heads/main/extensions/git-branch/shot.png)
6
6
 
@@ -20,7 +20,7 @@ Git 分支小工具是 [Finch](https://finchwork.app/) 的扩展。Finch 是一
20
20
  ## 用法
21
21
 
22
22
  1. 在 Git 项目目录里打开一个 Finch 对话。
23
- 2. 点击对话顶部工具栏的 Git 分支按钮。
23
+ 2. 点击对话顶部工具栏的 Git 源码管理按钮。
24
24
  3. 选一个分支切换过去。
25
25
  4. 如果有没保存的改动,对话框会问你先存档再切,还是取消。
26
26
  5. 点「创建并检出分支...」让 Agent 帮你输入新分支名。
@@ -48,7 +48,7 @@
48
48
  overflow: hidden;
49
49
  }
50
50
  body {
51
- font: 11px/1.45 var(--mono);
51
+ font: 12px/1.45 var(--mono);
52
52
  color: var(--text);
53
53
  background: var(--bg);
54
54
  }
@@ -142,7 +142,7 @@
142
142
  background: var(--hover);
143
143
  border-radius: 9px;
144
144
  padding: 0 5px;
145
- font-size: 11px;
145
+ font-size: 12px;
146
146
  }
147
147
  .body.collapsed {
148
148
  display: none;
@@ -298,7 +298,7 @@
298
298
  .group {
299
299
  padding: 5px 10px 2px;
300
300
  color: var(--muted);
301
- font-size: 11px;
301
+ font-size: 12px;
302
302
  background: var(--elev);
303
303
  position: sticky;
304
304
  top: 0;
@@ -350,7 +350,7 @@
350
350
  overflow: auto;
351
351
  padding: 0;
352
352
  color: var(--muted);
353
- font-size: 11px;
353
+ font-size: 12px;
354
354
  }
355
355
  .graph-canvas {
356
356
  position: relative;
@@ -380,7 +380,7 @@
380
380
  }
381
381
  .graph-hash {
382
382
  color: var(--subtle);
383
- font-size: 10px;
383
+ font-size: 12px;
384
384
  flex: none;
385
385
  }
386
386
  .graph-subject {
@@ -489,14 +489,14 @@
489
489
  }
490
490
  .repo,
491
491
  .repo * {
492
- font-size: 11px !important;
492
+ font-size: 12px !important;
493
493
  }
494
494
  .repo {
495
495
  line-height: 18px;
496
496
  }
497
497
  .file,
498
498
  .file * {
499
- font-size: 11px !important;
499
+ font-size: 12px !important;
500
500
  }
501
501
  .file {
502
502
  gap: 6px;
@@ -699,7 +699,7 @@
699
699
  changes: "Changes",
700
700
  graph: "Graph",
701
701
  message: "Message (⌘Enter to commit)",
702
- commit: "Commit",
702
+ commit: "Commit Manually",
703
703
  aiCommit: "Ask {finchName} to commit",
704
704
  aiCommitAnnotationTitle: "{finchName} will commit",
705
705
  aiCommitNote: "Commit the current Git changes.",
@@ -734,7 +734,7 @@
734
734
  changes: "更改",
735
735
  graph: "图表",
736
736
  message: "消息(⌘Enter 提交)",
737
- commit: "提交",
737
+ commit: "由人类提交",
738
738
  aiCommit: "让{finchName}提交",
739
739
  aiCommitAnnotationTitle: "{finchName}来提交",
740
740
  aiCommitNote: "提交当前 Git 改动。",
package/dist/scm-panel.js CHANGED
@@ -335,18 +335,6 @@ export function activateScmPanel(ctx) {
335
335
  await runGit(repoPath, ['commit', '-m', text, '-m', 'Co-authored-by: 帕亚 <noreply@finchwork.app>']);
336
336
  await toast(ctx.i18n.t('git.scm.commit.success'));
337
337
  }
338
- if (message.type === 'commit') {
339
- const text = typeof message.message === 'string' ? message.message.trim() : '';
340
- if (!text)
341
- throw new Error('Commit message is required');
342
- await runGit(repoPath, ['add', '-A']);
343
- if (!await hasStagedChanges(repoPath)) {
344
- await toast(ctx.i18n.t('git.scm.commit.empty'), 'info');
345
- return;
346
- }
347
- await runGit(repoPath, ['commit', '-m', text, '-m', 'Co-authored-by: 帕亚 <noreply@finchwork.app>']);
348
- await toast(ctx.i18n.t('git.scm.commit.success'));
349
- }
350
338
  if (message.type === 'discard') {
351
339
  const file = allowedFile(repoPath, message.filePath);
352
340
  if (!file)
package/i18n/en-US.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
- "name": "Git Branch",
3
- "description": "Manage Git branches from the dialog box.",
2
+ "name": "Git Source Control",
3
+ "description": "Manage Git source control from the dialog box.",
4
4
  "systemPrompt": "When creating a Git branch, use create_git_branch. Pass branchName to create and check out a known branch without a form; otherwise omit it to collect the name in a form.",
5
5
  "toolMeta": {
6
- "name": "Git Branch"
6
+ "name": "Git Source Control"
7
7
  },
8
8
  "composerActions": {
9
9
  "git-branch": {
10
- "tooltip": "Git Branch Manager"
10
+ "tooltip": "Git Source Control"
11
11
  }
12
12
  },
13
13
  "appPanel": {
package/i18n/zh-CN.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
- "name": "Git 分支",
3
- "description": "在对话框里管理 Git 分支的小工具",
2
+ "name": "Git 源码管理",
3
+ "description": "在对话框里管理 Git 源码的小工具",
4
4
  "systemPrompt": "当需要创建 Git 分支时,使用 create_git_branch 工具。已确定分支名时传入 branchName 参数以静默创建并检出;否则省略该参数以弹出表单收集分支名。",
5
5
  "toolMeta": {
6
- "name": "Git 分支"
6
+ "name": "Git 源码管理"
7
7
  },
8
8
  "composerActions": {
9
9
  "git-branch": {
10
- "tooltip": "Git 分支管理"
10
+ "tooltip": "Git 源码管理"
11
11
  }
12
12
  },
13
13
  "appPanel": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "finch-git-branch",
3
- "version": "0.3.0",
4
- "description": "Git Branch Manager for Finch Composer toolbar.",
3
+ "version": "0.3.2",
4
+ "description": "Git Source Control for Finch Composer toolbar.",
5
5
  "author": {
6
6
  "name": "Finch Team",
7
7
  "url": "https://finchwork.app"
@@ -21,7 +21,7 @@
21
21
  "finch": {
22
22
  "manifestVersion": 1,
23
23
  "id": "git-branch",
24
- "name": "Git Branch",
24
+ "name": "Git Source Control",
25
25
  "description": "Switch Git branches from the Composer toolbar with change previews.",
26
26
  "systemPrompt": "When creating a Git branch, use create_git_branch. Pass branchName to create and check out a known branch without a form; otherwise omit it to collect the name in a form.",
27
27
  "main": "dist/index.js",
@@ -40,7 +40,7 @@
40
40
  {
41
41
  "id": "git-branch",
42
42
  "icon": "git-branch",
43
- "tooltip": "Git 分支管理"
43
+ "tooltip": "Git 源码管理"
44
44
  }
45
45
  ],
46
46
  "iconPacks": [