@themoltnet/legreffier 0.32.2 → 0.32.3
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/dist/index.js +13 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -7730,7 +7730,13 @@ function buildGhTokenRule() {
|
|
|
7730
7730
|
"# 2. Refuse to proceed if the file does not exist at that absolute path.",
|
|
7731
7731
|
"[ -f \"$CREDS\" ] || { echo \"FATAL: moltnet.json not found at $CREDS\" >&2; exit 1; }",
|
|
7732
7732
|
"",
|
|
7733
|
-
"# 3. Call gh with GH_TOKEN inlined.",
|
|
7733
|
+
"# 3. Call gh with GH_TOKEN inlined. Use the `moltnet` binary if it",
|
|
7734
|
+
"# is on PATH, otherwise fall back to `npx @themoltnet/cli`. Never",
|
|
7735
|
+
"# reference `$MOLTNET_CLI` here — it may be unset in ad-hoc shells",
|
|
7736
|
+
"# and expanding to empty silently swallows the subcommand, producing",
|
|
7737
|
+
"# an empty GH_TOKEN and falling back to your personal auth.",
|
|
7738
|
+
"GH_TOKEN=$(moltnet github token --credentials \"$CREDS\") gh <command>",
|
|
7739
|
+
"# or, if `moltnet` is not installed:",
|
|
7734
7740
|
"GH_TOKEN=$(npx @themoltnet/cli github token --credentials \"$CREDS\") gh <command>",
|
|
7735
7741
|
"```",
|
|
7736
7742
|
"",
|
|
@@ -7746,7 +7752,7 @@ function buildGhTokenRule() {
|
|
|
7746
7752
|
"`$(dirname \"$GIT_CONFIG_GLOBAL\")` resolves differently depending on where you are.",
|
|
7747
7753
|
"When it resolves to a non-existent directory:",
|
|
7748
7754
|
"",
|
|
7749
|
-
"- `npx @themoltnet/cli github token` prints `no credentials found` to stderr,",
|
|
7755
|
+
"- `moltnet github token` (or `npx @themoltnet/cli github token`) prints `no credentials found` to stderr,",
|
|
7750
7756
|
"- the command substitution yields an empty `GH_TOKEN`,",
|
|
7751
7757
|
"- `gh` silently falls back to your personal token,",
|
|
7752
7758
|
"- the resulting API call is attributed to the **human**, not the agent.",
|
|
@@ -7763,6 +7769,11 @@ function buildGhTokenRule() {
|
|
|
7763
7769
|
"- `GH_TOKEN=$(... --credentials \"./moltnet.json\") gh ...` — relative. Breaks.",
|
|
7764
7770
|
"- `GH_TOKEN=$(... --credentials \"~/.moltnet/...\") gh ...` — `~` is not expanded",
|
|
7765
7771
|
" inside double quotes; use `$HOME` or the literal absolute path.",
|
|
7772
|
+
"- `GH_TOKEN=$($MOLTNET_CLI github token ...) gh ...` — do **not** reference the",
|
|
7773
|
+
" `$MOLTNET_CLI` variable in this rule. It is only set inside the legreffier",
|
|
7774
|
+
" skill session; in ad-hoc shells it expands to empty, the `github token`",
|
|
7775
|
+
" subcommand is swallowed, `GH_TOKEN` is empty, and `gh` silently falls back",
|
|
7776
|
+
" to the human token. Hardcode `moltnet` or `npx @themoltnet/cli`.",
|
|
7766
7777
|
"",
|
|
7767
7778
|
"## Allowed `gh` subcommands",
|
|
7768
7779
|
"",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@themoltnet/legreffier",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.3",
|
|
4
4
|
"description": "LeGreffier — attribution and measured memory for AI coding agents.",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"vite": "^8.0.0",
|
|
34
34
|
"vitest": "^3.0.0",
|
|
35
35
|
"@moltnet/api-client": "0.1.0",
|
|
36
|
-
"@
|
|
36
|
+
"@themoltnet/design-system": "0.6.0",
|
|
37
37
|
"@themoltnet/github-agent": "0.23.2",
|
|
38
|
-
"@
|
|
39
|
-
"@themoltnet/
|
|
38
|
+
"@moltnet/crypto-service": "0.1.0",
|
|
39
|
+
"@themoltnet/sdk": "0.91.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"dev": "vite build --watch",
|