finch-ego-go 1.0.0 → 1.0.1

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
@@ -27,16 +27,16 @@ Ego Lite 是给人和 Agent 协作设计的浏览器:独立 Chromium、独立
27
27
  ## 安装与联调
28
28
 
29
29
  ```bash
30
- bun run fafinch dev ego-go # 构建 + 软链安装 + 监听,改代码自动重建
31
- bun run fafinch install ego-go # 构建 + 复制安装
32
- bun run fafinch doctor ego-go # 构建 + 官方 doctor
30
+ bun run fafinch dev egoGo # 构建 + 软链安装 + 监听,改代码自动重建
31
+ bun run fafinch install egoGo # 构建 + 复制安装
32
+ bun run fafinch doctor egoGo # 构建 + 官方 doctor
33
33
  ```
34
34
 
35
35
  小程序会用 `ego-browser nodejs -e <脚本>` 驱动浏览器,所以需要先装好 Ego Lite(macOS 或 Windows)并完成首次引导。
36
36
 
37
37
  ## 发布到 npm
38
38
 
39
- npm 包名是 `finch-ego-go`(目录仍叫 `ego-go`),安装后的小程序 id 与包名一致,也是 `finch-ego-go`。
39
+ npm 包名是 `finch-ego-go`(目录叫 `egoGo`),安装后的小程序 id 与包名一致,也是 `finch-ego-go`。
40
40
 
41
41
  发布统一走仓库根的 fanpm,不手动 `npm publish`(`dist/` 不进 git,由 fanpm 在打包前现构建):
42
42
 
@@ -58,4 +58,4 @@ npx @finchtoys/minitools add finch-ego-go
58
58
  - `src/scripts.js` —— 把每个 action 翻译成一段 Ego 脚本
59
59
  - `src/ego.js` —— 找 CLI、判活、启动、截图目录等进程层
60
60
  - `dist/index.js` —— rolldown 产物(target node24),`--watch` 或 `bun run build` 生成,勿手改
61
- - `icon.png` —— 由 `bun scripts/icon.mjs ego-go` 生成(256×256)
61
+ - `icon.png` —— 由 `bun run fafinch icon egoGo` 从图案源 `scripts/genLogo/output/egoGo/icon.svg` 生成(256×256)
package/dist/index.js CHANGED
@@ -49,7 +49,7 @@ function runCommand(file, args, options = {}) {
49
49
  chain = result.then(() => {}, () => {});
50
50
  return result;
51
51
  }
52
- // finchapp/ego-go/src/scripts.js
52
+ // finchapp/egoGo/src/scripts.js
53
53
  const MARK = "EGO_RESULT:";
54
54
  const PRELUDE = `const done = (value) => console.log(${JSON.stringify(MARK)} + JSON.stringify(value));`;
55
55
  const CDP_HELPERS = `
@@ -351,7 +351,7 @@ done({ spaceId: task.spaceId, receipt });`;
351
351
  default: throw new Error(`未知动作: ${action}`);
352
352
  }
353
353
  }
354
- // finchapp/ego-go/src/ego.js
354
+ // finchapp/egoGo/src/ego.js
355
355
  const WEBSITE = "https://lite.ego.app/";
356
356
  const SUPPORTED = IS_MAC || IS_WIN;
357
357
  const BIN_DIR = IS_WIN ? join(HOME, ".local", "share", "ego", "active_version_dir") : join(HOME, ".local", "bin");
@@ -557,7 +557,7 @@ async function status({ detailed = false } = {}) {
557
557
  };
558
558
  }
559
559
  }
560
- // finchapp/ego-go/src/index.js
560
+ // finchapp/egoGo/src/index.js
561
561
  const POLL_MS = 5e3;
562
562
  const DETAIL_TTL = 3e3;
563
563
  const ACTIONS = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "finch-ego-go",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "在 Ego Lite 的任务空间里操作网页,你能看见 Agent 打开的每一个页面。",
5
5
  "keywords": [
6
6
  "agent-browser",
@@ -16,6 +16,7 @@
16
16
  "i18n/",
17
17
  "skills/",
18
18
  "ui/",
19
+ "docs/",
19
20
  "icon.png",
20
21
  "README.md"
21
22
  ],
@@ -1,5 +1,5 @@
1
1
  ---
2
- name: ego-go
2
+ name: egoGo
3
3
  description: Ego Go 的操作手册。用 ego_go 在 Ego Lite 里打开、阅读和操作真实网页时先读它,尤其是选择器写法、任务空间与页面的配合、登录与验证码的交接流程。
4
4
  ---
5
5