@lark-project/meegle 1.0.11 → 1.0.13

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 CHANGED
@@ -8,11 +8,23 @@ versioned section on each npm release.
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## [v1.0.13] - 2026-06-30
12
+
13
+ ### Fixed
14
+
15
+ - Corrected the npm quick-start commands to invoke the package binary explicitly: `npx @lark-project/meegle@latest meegle install`. The previous `npx @lark-project/meegle@latest install` form could resolve `install` as the system command instead of the Meegle CLI binary in some agent shells, causing the setup wizard to be skipped.
16
+
17
+ ## [v1.0.12] - 2026-06-29
18
+
19
+ ### Fixed
20
+
21
+ - The install wizard now always installs the AI Agent Skill instead of trying to detect a prior install. The previous name-substring check matched sibling skills such as `meegle-plugin` and silently skipped installing the core `meegle` skill. `skills add` is idempotent, so re-running it on an already-installed skill simply upgrades or no-ops.
22
+
11
23
  ## [v1.0.11] - 2026-06-26
12
24
 
13
25
  ### Added
14
26
 
15
- - `meegle install` now runs a one-stop setup wizard for npm users: install or upgrade the CLI globally, install the AI Agent Skill, configure the host, and start browser or Device Code login. This enables `npx @lark-project/meegle@latest install` as the primary quick-start command.
27
+ - `meegle install` now runs a one-stop setup wizard for npm users: install or upgrade the CLI globally, install the AI Agent Skill, configure the host, and start browser or Device Code login. This enables `npx @lark-project/meegle@latest meegle install` as the primary quick-start command.
16
28
 
17
29
  ### Fixed
18
30
 
package/README.md CHANGED
@@ -50,7 +50,7 @@ Command-line tool for [Meegle](https://meegle.com?utm_source=github&utm_medium=r
50
50
  Run the setup wizard:
51
51
 
52
52
  ```bash
53
- npx @lark-project/meegle@latest install
53
+ npx @lark-project/meegle@latest meegle install
54
54
  ```
55
55
 
56
56
  The wizard installs or upgrades the CLI globally, installs the AI Agent Skill, configures the Meegle host, and starts login.
@@ -61,7 +61,7 @@ The wizard installs or upgrades the CLI globally, installs the AI Agent Skill, c
61
61
 
62
62
  ```bash
63
63
  # 1. Install CLI + Skill, configure host, and log in
64
- npx @lark-project/meegle@latest install
64
+ npx @lark-project/meegle@latest meegle install
65
65
 
66
66
  # 2. View this week's to-dos
67
67
  meegle mywork todo --action this_week --page-num 1
@@ -79,7 +79,7 @@ meegle inspect workitem.create
79
79
  The default browser OAuth flow requires a real TTY. In CI runners, pipes, and agent shells like Claude Code, run the same setup wizard with an explicit host and Device Code login:
80
80
 
81
81
  ```bash
82
- npx -y @lark-project/meegle@latest install --host <host> --device-code --lang en
82
+ npx -y @lark-project/meegle@latest meegle install --host <host> --device-code --lang en
83
83
  ```
84
84
 
85
85
  Examples of `<host>`: `project.feishu.cn`, `meegle.com`, or your self-hosted tenant domain such as `your-tenant.example.com`. The Device Code flow prints an authorization URL; send it to the user and keep the command running until authorization completes.
package/README.zh-CN.md CHANGED
@@ -50,7 +50,7 @@
50
50
  运行安装向导:
51
51
 
52
52
  ```bash
53
- npx @lark-project/meegle@latest install
53
+ npx @lark-project/meegle@latest meegle install
54
54
  ```
55
55
 
56
56
  向导会全局安装或升级 CLI、安装 AI Agent Skill、配置 Meegle host,并启动登录。
@@ -61,7 +61,7 @@ npx @lark-project/meegle@latest install
61
61
 
62
62
  ```bash
63
63
  # 1. 安装 CLI + Skill,配置 host,并登录
64
- npx @lark-project/meegle@latest install
64
+ npx @lark-project/meegle@latest meegle install
65
65
 
66
66
  # 2. 查看本周待办
67
67
  meegle mywork todo --action this_week --page-num 1
@@ -79,7 +79,7 @@ meegle inspect workitem.create
79
79
  默认浏览器 OAuth 流程依赖真实 TTY。在 CI Runner、管道、Claude Code 这类环境里,使用同一个安装向导,但显式传入 host 并启用 Device Code 登录:
80
80
 
81
81
  ```bash
82
- npx -y @lark-project/meegle@latest install --host <host> --device-code --lang zh
82
+ npx -y @lark-project/meegle@latest meegle install --host <host> --device-code --lang zh
83
83
  ```
84
84
 
85
85
  `<host>` 示例:`project.feishu.cn`、`meegle.com`,或自建租户域名(如 `your-tenant.example.com`)。
@@ -23,7 +23,6 @@ const messages = {
23
23
  installedSkip: "Already installed globally (v%s). Skipped",
24
24
  installed: "CLI installed globally",
25
25
  skills: "Installing AI Agent Skill...",
26
- skillsSkip: "AI Agent Skill already appears to be installed. Skipped",
27
26
  skillsDone: "AI Agent Skill installed",
28
27
  hostExisting: "Found existing host: %s. Use it?",
29
28
  hostSelect: "Select Meegle site",
@@ -46,7 +45,6 @@ const messages = {
46
45
  installedSkip: "已全局安装 (v%s),跳过",
47
46
  installed: "CLI 已全局安装",
48
47
  skills: "正在安装 AI Agent Skill...",
49
- skillsSkip: "检测到 AI Agent Skill 可能已安装,跳过",
50
48
  skillsDone: "AI Agent Skill 已安装",
51
49
  hostExisting: "发现已有 host: %s,继续使用?",
52
50
  hostSelect: "请选择 Meegle 站点",
@@ -270,21 +268,12 @@ async function stepInstallGlobally(msg) {
270
268
  console.log(msg.installed);
271
269
  }
272
270
 
273
- async function skillsAlreadyInstalled() {
274
- try {
275
- const out = runSilent("npm", ["exec", "--yes", "--package=skills", "--", "skills", "ls", "-g"], { timeout: 120000 });
276
- return /\bmeegle\b/i.test(out);
277
- } catch (_) {
278
- return false;
279
- }
280
- }
281
-
282
271
  async function stepInstallSkills(msg) {
283
272
  console.log(msg.skills);
284
- if (await skillsAlreadyInstalled()) {
285
- console.log(msg.skillsSkip);
286
- return;
287
- }
273
+ // `skills add` is idempotent (with `-y`): re-running on an already-installed
274
+ // skill just upgrades / no-ops. We always run it instead of trying to detect
275
+ // prior installs — name-substring detection mis-fired on sibling skills like
276
+ // `meegle-plugin` and silently skipped the core skill.
288
277
  run("npm", ["exec", "--yes", "--package=skills", "--", "skills", "add", SKILLS_REPO, "-y", "-g"], { timeout: 120000 });
289
278
  console.log(msg.skillsDone);
290
279
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-project/meegle",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Agent-First CLI for Meegle (Lark Project)",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/larksuite/meegle-cli#readme",