finch-git-branch 0.3.3 → 0.3.5

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
@@ -32,7 +32,7 @@ The first version intentionally leaves out force-push, rebase, reset, cherry-pic
32
32
 
33
33
  ## Permissions
34
34
 
35
- This tool needs shell permission because it runs `git` commands locally. No network access needed.
35
+ This tool needs shell permission to run local `git` commands and read-only filesystem permission to inspect repository metadata and changed files. No network access needed.
36
36
 
37
37
  ## Development
38
38
 
package/README.zh-CN.md CHANGED
@@ -27,7 +27,7 @@ Git 源码管理小工具是 [Finch](https://finchwork.app/) 的扩展。Finch
27
27
 
28
28
  ## 权限
29
29
 
30
- 这个工具需要在本地执行 `git` 命令,所以需要 shell 权限。不需要联网。
30
+ 这个工具需要 shell 权限来执行本地 `git` 命令,以及只读文件权限来读取仓库元数据和变更文件。不需要联网。
31
31
 
32
32
  ## 开发
33
33
 
package/dist/scm-panel.js CHANGED
@@ -154,7 +154,10 @@ export function activateScmPanel(ctx) {
154
154
  let generation = 0;
155
155
  let repos = [];
156
156
  let unavailable = false;
157
- const active = () => !unavailable && panel.visible;
157
+ // A panel can receive its initial bridge message before `visible` flips to
158
+ // true. Treat the live handle as available so that init is never dropped;
159
+ // visibility still triggers an explicit refresh below.
160
+ const active = () => !unavailable;
158
161
  const post = async (message) => {
159
162
  if (!active())
160
163
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finch-git-branch",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Git Source Control for Finch Composer toolbar.",
5
5
  "author": {
6
6
  "name": "Finch Team",
@@ -98,7 +98,7 @@
98
98
  "skills": false
99
99
  },
100
100
  "permissions": {
101
- "filesystem": "none",
101
+ "filesystem": "read",
102
102
  "network": false,
103
103
  "shell": true
104
104
  }