@tryglen/cli 0.45.4 → 0.49.0

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.
Files changed (51) hide show
  1. package/README.md +2 -1
  2. package/dist/_generated/contract/procedures.gen.js +2 -1
  3. package/dist/_generated/contract/procedures.gen.js.map +1 -1
  4. package/dist/_generated/contract/zod.gen.js +10 -0
  5. package/dist/_generated/contract/zod.gen.js.map +1 -1
  6. package/dist/bin.js +6 -2
  7. package/dist/bin.js.map +1 -1
  8. package/dist/clients/git/managed-clone-path.js +5 -0
  9. package/dist/clients/git/managed-clone-path.js.map +1 -0
  10. package/dist/clients/git/review-offer.js +59 -0
  11. package/dist/clients/git/review-offer.js.map +1 -0
  12. package/dist/commands/ingest/index.js +5 -14
  13. package/dist/commands/ingest/index.js.map +1 -1
  14. package/dist/commands/pr-link/index.js +13 -9
  15. package/dist/commands/pr-link/index.js.map +1 -1
  16. package/dist/commands/review/_utils/background-reviewers.js +189 -0
  17. package/dist/commands/review/_utils/background-reviewers.js.map +1 -0
  18. package/dist/commands/review/_utils/clone-for-review.js +112 -0
  19. package/dist/commands/review/_utils/clone-for-review.js.map +1 -0
  20. package/dist/commands/review/_utils/decide-install.js +9 -0
  21. package/dist/commands/review/_utils/decide-install.js.map +1 -0
  22. package/dist/commands/review/_utils/review-package-version.js +2 -0
  23. package/dist/commands/review/_utils/review-package-version.js.map +1 -0
  24. package/dist/commands/review/_utils/reviewer-install.js +122 -0
  25. package/dist/commands/review/_utils/reviewer-install.js.map +1 -0
  26. package/dist/commands/review/index.js +236 -0
  27. package/dist/commands/review/index.js.map +1 -0
  28. package/dist/commands/review/review.options.js +66 -0
  29. package/dist/commands/review/review.options.js.map +1 -0
  30. package/dist/commands/session-start/index.js +1 -3
  31. package/dist/commands/session-start/index.js.map +1 -1
  32. package/dist/commands/skill/delete.js +29 -0
  33. package/dist/commands/skill/delete.js.map +1 -0
  34. package/dist/commands/skill/skill.options.js +2 -2
  35. package/dist/commands/skill/skill.options.js.map +1 -1
  36. package/dist/core/run/run.js +3 -1
  37. package/dist/core/run/run.js.map +1 -1
  38. package/dist/core/system/env.js +1 -0
  39. package/dist/core/system/env.js.map +1 -1
  40. package/dist/core/system/files.js +3 -1
  41. package/dist/core/system/files.js.map +1 -1
  42. package/dist/core/system/run-attached.js +30 -0
  43. package/dist/core/system/run-attached.js.map +1 -0
  44. package/dist/core/system/spawn-background.js +25 -0
  45. package/dist/core/system/spawn-background.js.map +1 -0
  46. package/dist/jcode/plugin.json +1 -1
  47. package/dist/jcode/prompt-overlay.md +2 -2
  48. package/dist/jcode/skills/create-skill/SKILL.md +6 -4
  49. package/package.json +2 -2
  50. package/dist/clients/git/pr-review-link.js +0 -19
  51. package/dist/clients/git/pr-review-link.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  ## Glen: your team's shared memory
2
2
 
3
- Glen records this team's coding-agent sessions (Claude Code, Codex, Cursor, Pi, jcode) into one shared memory and lets you search it. It is separate from jcode's own memory, which is personal to this machine: jcode memory knows what *you* did here; Glen knows what the *team* decided, tried, and shipped.
3
+ Glen records this team's coding-agent sessions (Claude Code, Codex, Cursor, Pi, jcode) into one shared memory and lets you search it. It is separate from jcode's own memory, which is personal to this machine: jcode memory knows what _you_ did here; Glen knows what the _team_ decided, tried, and shipped.
4
4
 
5
5
  Reach for Glen when the answer lives in what the team already worked out:
6
6
 
@@ -10,6 +10,6 @@ Reach for Glen when the answer lives in what the team already worked out:
10
10
 
11
11
  Cite what Glen returns (its "Sources:" list) so teammates see their work come back. If `glen search` prints "No active organization", tell the user to run `glen org switch`; if `glen` is missing, offer the glen setup skill.
12
12
 
13
- After you create or share a GitHub pull request, also print its Glen review link: `https://app.tryglen.com/<owner>/<repo>/pull/<number>`.
13
+ After you create or share a GitHub pull request from a clone of its repo, ask the user if they'd like to review it in Glen's local reviewer. If yes, run `glen review <number> --detach` from this repo and share the URL it prints. If it says the PR changes its packages, ask the user before rerunning with `--install-deps`. For a pull request from a repo with no clone here, ask the user "Clone <owner>/<repo> to review this PR?" first, and pass `--clone` to `glen review <url>` only after they say yes.
14
14
 
15
15
  Glen cannot show its recording status inside jcode. The user can check it with `glen status` (recording, off, or incognito).
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: create-skill
3
- description: Turn what you just did (or a markdown prompt the user provides) into a reusable skill, either a local SKILL.md on this machine or a shared Glen skill saved to the org's library. Use when the user says "make this a skill", "save this as a skill", "save this as a Glen skill", or wants to capture a repeatable workflow.
3
+ description: Turn what you just did (or a markdown prompt the user provides) into a reusable skill, either a local SKILL.md on this machine or a shared Glen skill saved to the org's library. Use when the user says "make this a skill", "save this as a skill", "save this as a Glen skill", or wants to capture a repeatable workflow. Also use when the user asks to delete a Glen skill they authored.
4
4
  ---
5
5
 
6
6
  You are authoring a reusable **skill**: a focused markdown prompt another agent will follow later, with no memory of this session.
@@ -9,12 +9,12 @@ You are authoring a reusable **skill**: a focused markdown prompt another agent
9
9
  - **Check incognito before anything else:** run `glen status` via Bash. If it reports `incognito: ON`, a Glen skill is off the table (nothing is recorded off the record), so go straight to a **local skill** and tell the user that's why (e.g. "you're off the record, so I'll save this as a local skill").
10
10
  - **Otherwise, ask the user which they want** before authoring anything: a local `SKILL.md` (a jcode skill on this machine) or a Glen skill (saved to your Glen library). Don't start writing until they answer.
11
11
  2. **Gather the real workflow.** Read this conversation for the steps that actually worked. For anything done in an earlier session, run `glen search "<topic>"` via Bash to pull the relevant memory. Ask one or two clarifying questions only if the goal or trigger is genuinely ambiguous.
12
- 3. **Name + describe it.** A short imperative name and a one-sentence description that says *exactly when to trigger it* (this drives discovery).
12
+ 3. **Name + describe it.** A short imperative name and a one-sentence description that says _exactly when to trigger it_ (this drives discovery).
13
13
  4. **Write a tight SKILL.md body.** Best practices:
14
- - Lead with *when to use it* and the end goal.
14
+ - Lead with _when to use it_ and the end goal.
15
15
  - Give concrete, ordered steps (exact commands, file paths, gotchas), not vague advice.
16
16
  - Keep it self-contained: assume zero prior context. Cut anything that isn't actionable.
17
- - **Reference other skills** when a step is itself a saved skill: write a markdown link `[Display text](glen:<slug>)` (find the slug with `glen skill search`). Glen tracks the link automatically and the reader will get a runnable `glen skill use <slug>` command exactly there. Keep each referenced skill focused and say *when* to reach for it. Reserve this for genuinely **shared** skills: ones that also get used on their own, independent of this one.
17
+ - **Reference other skills** when a step is itself a saved skill: write a markdown link `[Display text](glen:<slug>)` (find the slug with `glen skill search`). Glen tracks the link automatically and the reader will get a runnable `glen skill use <slug>` command exactly there. Keep each referenced skill focused and say _when_ to reach for it. Reserve this for genuinely **shared** skills: ones that also get used on their own, independent of this one.
18
18
  - **If the skill needs supporting material, bundle it in one skill directory, not separate subskills.** Put long reference material in `references/*.md` and executable helpers in `scripts/` alongside `SKILL.md`, and point to them from the body as `${GLEN_SKILL_DIR}/references/<name>.md` / `${GLEN_SKILL_DIR}/scripts/<name>`. `glen skill use` materializes the whole directory to disk and substitutes `${GLEN_SKILL_DIR}` with its real absolute path before printing, so the reader can run the script or open the reference exactly as written. This keeps one topic as one skill instead of splintering it into a root + subskills just to hold its own files.
19
19
  5. **Finish based on the destination chosen in step 1:**
20
20
 
@@ -38,4 +38,6 @@ You are authoring a reusable **skill**: a focused markdown prompt another agent
38
38
  ```
39
39
 
40
40
  `--file` and `--dir` are mutually exclusive. On a name collision either form errors; pick a different name and retry, or pass `--update` to overwrite a skill you previously authored.
41
+
41
42
  - The skill is **private to the user by default**. Ask the user whether to share it: with the whole org (add `--org` to `glen skill create`, or later `glen skill share <slug> --org`) or with specific teammates (`glen skill share <slug> --with <email>[,<email>…]`). Confirm the saved slug and its visibility back to the user.
43
+ - **Deleting a skill (author-only, when asked).** `glen skill delete <slug>` permanently deletes a Glen skill the user authored, for everyone it was shared with. Confirm the slug with the user first; this can't be undone.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryglen/cli",
3
- "version": "0.45.4",
3
+ "version": "0.49.0",
4
4
  "description": "Glen CLI: memory for coding agents",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,5 +41,5 @@
41
41
  "node": ">=20"
42
42
  },
43
43
  "license": "MIT",
44
- "gitHead": "afd2d3429767bbaa781dd30af4eed0262e9aac7d"
44
+ "gitHead": "12adf3cfb207a0900b3b27b61b2e92d55b8b0f8c"
45
45
  }
@@ -1,19 +0,0 @@
1
- import { config } from "../glen-api/config.js";
2
- const PR_URL_RE = /https?:\/\/github\.com\/([A-Za-z0-9._-]+)\/([A-Za-z0-9._-]+)\/pull\/(\d+)/g;
3
- const extract = (text) => {
4
- const seen = new Set();
5
- return [...text.matchAll(PR_URL_RE)].flatMap((m) => {
6
- const [, owner, repo, num] = m;
7
- if (!owner || !repo || !num)
8
- return [];
9
- const key = `${owner}/${repo}/${num}`;
10
- if (seen.has(key))
11
- return [];
12
- seen.add(key);
13
- return [{ owner, repo, pr: Number(num) }];
14
- });
15
- };
16
- const reviewUrl = (pr) => `${config.baseUrl}/${pr.owner}/${pr.repo}/pull/${pr.pr}`;
17
- const prReviewLink = { extract, reviewUrl };
18
- export { prReviewLink };
19
- //# sourceMappingURL=pr-review-link.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pr-review-link.js","sourceRoot":"","sources":["../../../src/clients/git/pr-review-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAE/C,MAAM,SAAS,GACb,4EAA4E,CAAC;AAI/E,MAAM,OAAO,GAAG,CAAC,IAAY,EAA0B,EAAE;IACvD,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,OAAO,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;QACjD,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG;YAAE,OAAO,EAAE,CAAC;QACvC,MAAM,GAAG,GAAG,GAAG,KAAK,IAAI,IAAI,IAAI,GAAG,EAAE,CAAC;QACtC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;YAAE,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACd,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,EAAe,EAAU,EAAE,CAC5C,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC,EAAE,EAAE,CAAC;AAE3D,MAAM,YAAY,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,CAAC"}