@codyswann/lisa 4.23.3 → 4.23.4
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/all/copy-overwrite/scripts/lib/process-tree-runner.mjs +1 -1
- package/all/copy-overwrite/scripts/lisa-hooks/block-no-verify.sh +75 -2
- package/all/copy-overwrite/scripts/lisa-reconcile-policy.mjs +22 -8
- package/dist/codex/scripts/block-no-verify.sh +63 -0
- package/dist/core/lisa-owned-hash-ledger.d.ts.map +1 -1
- package/dist/core/lisa-owned-hash-ledger.js +18 -0
- package/dist/core/lisa-owned-hash-ledger.js.map +1 -1
- package/dist/core/nightly-e2e-guard-behavior-certificate.js +2 -2
- package/dist/core/upstream-evidence-manifest.d.ts.map +1 -1
- package/dist/core/upstream-evidence-manifest.js +11 -10
- package/dist/core/upstream-evidence-manifest.js.map +1 -1
- package/dist/opencode/plugin-templates/block-no-verify.sh +75 -2
- package/dist/opencode/plugin-templates/lisa-block-direct-issue-create.ts +17 -7
- package/package.json +3 -3
- package/plugins/lisa/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-github-sync/SKILL.md +4 -3
- package/plugins/lisa/.codex-plugin/skills/lisa-jira-journey/scripts/parse-plan.py +3 -1
- package/plugins/lisa/.codex-plugin/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +34 -6
- package/plugins/lisa/hooks/block-no-verify.agy.sh +63 -0
- package/plugins/lisa/hooks/block-no-verify.sh +75 -2
- package/plugins/lisa/skills/lisa-github-sync/SKILL.md +4 -3
- package/plugins/lisa/skills/lisa-jira-journey/scripts/parse-plan.py +3 -1
- package/plugins/lisa/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +34 -6
- package/plugins/lisa-agy/hooks/block-no-verify.agy.sh +63 -0
- package/plugins/lisa-agy/plugin.json +1 -1
- package/plugins/lisa-agy/skills/lisa-github-sync/SKILL.md +4 -3
- package/plugins/lisa-agy/skills/lisa-jira-journey/scripts/parse-plan.py +3 -1
- package/plugins/lisa-agy/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +34 -6
- package/plugins/lisa-cdk/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-agy/plugin.json +1 -1
- package/plugins/lisa-cdk-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cdk-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-copilot/hooks/block-no-verify.sh +75 -2
- package/plugins/lisa-copilot/skills/lisa-github-sync/SKILL.md +4 -3
- package/plugins/lisa-copilot/skills/lisa-jira-journey/scripts/parse-plan.py +3 -1
- package/plugins/lisa-copilot/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +34 -6
- package/plugins/lisa-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-cursor/hooks/block-no-verify.sh +75 -2
- package/plugins/lisa-cursor/skills/lisa-github-sync/SKILL.md +4 -3
- package/plugins/lisa-cursor/skills/lisa-jira-journey/scripts/parse-plan.py +3 -1
- package/plugins/lisa-cursor/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +34 -6
- package/plugins/lisa-expo/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-agy/plugin.json +1 -1
- package/plugins/lisa-expo-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-expo-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-agy/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-harper-fabric-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-agy/plugin.json +1 -1
- package/plugins/lisa-nestjs-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-nestjs-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-agy/plugin.json +1 -1
- package/plugins/lisa-openclaw-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-openclaw-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-agy/plugin.json +1 -1
- package/plugins/lisa-phaser-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-phaser-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-agy/plugin.json +1 -1
- package/plugins/lisa-rails-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-rails-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-agy/plugin.json +1 -1
- package/plugins/lisa-typescript-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-typescript-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki/.codex-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-agy/plugin.json +1 -1
- package/plugins/lisa-wiki-copilot/.claude-plugin/plugin.json +1 -1
- package/plugins/lisa-wiki-cursor/.claude-plugin/plugin.json +1 -1
- package/plugins/src/base/hooks/block-no-verify.agy.sh +63 -0
- package/plugins/src/base/hooks/block-no-verify.sh +75 -2
- package/plugins/src/base/skills/lisa-github-sync/SKILL.md +4 -3
- package/plugins/src/base/skills/lisa-jira-journey/scripts/parse-plan.py +3 -1
- package/plugins/src/base/skills/lisa-setup-remote-env/scripts/setup-remote-env.mjs +34 -6
- package/typescript/copy-overwrite/scripts/check-skipped-required-checks.mjs +2 -2
- package/typescript/copy-overwrite/scripts/lisa-mutation.mjs +91 -13
|
@@ -812,6 +812,7 @@ export function installUserSessionHook(repoRoot, options = {}) {
|
|
|
812
812
|
// Single quotes suppress parameter expansion and command substitution. An
|
|
813
813
|
// embedded quote closes, escapes, and reopens the quoted shell word.
|
|
814
814
|
const command = `bash '${script.replaceAll("'", `'\\''`)}'`;
|
|
815
|
+
const legacyCommand = `bash ${JSON.stringify(script)}`;
|
|
815
816
|
|
|
816
817
|
let settings = {};
|
|
817
818
|
if (exists(settingsPath)) {
|
|
@@ -833,11 +834,38 @@ export function installUserSessionHook(repoRoot, options = {}) {
|
|
|
833
834
|
const sessionStart = Array.isArray(hooks.SessionStart)
|
|
834
835
|
? hooks.SessionStart
|
|
835
836
|
: [];
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
837
|
+
let installed = false;
|
|
838
|
+
let migrated = false;
|
|
839
|
+
const normalizedSessionStart = sessionStart.flatMap(entry => {
|
|
840
|
+
if (!Array.isArray(entry?.hooks)) return [entry];
|
|
841
|
+
const normalizedHooks = entry.hooks.flatMap(hook => {
|
|
842
|
+
if (hook?.command !== command && hook?.command !== legacyCommand) {
|
|
843
|
+
return [hook];
|
|
844
|
+
}
|
|
845
|
+
if (installed) {
|
|
846
|
+
migrated = true;
|
|
847
|
+
return [];
|
|
848
|
+
}
|
|
849
|
+
installed = true;
|
|
850
|
+
if (hook.command === command) return [hook];
|
|
851
|
+
migrated = true;
|
|
852
|
+
return [{ ...hook, command }];
|
|
853
|
+
});
|
|
854
|
+
return normalizedHooks.length > 0
|
|
855
|
+
? [{ ...entry, hooks: normalizedHooks }]
|
|
856
|
+
: [];
|
|
857
|
+
});
|
|
858
|
+
|
|
859
|
+
if (installed) {
|
|
860
|
+
if (!migrated) return { action: "present", path: settingsPath };
|
|
861
|
+
if (dryRun) return { action: "would-migrate", path: settingsPath };
|
|
862
|
+
const updated = {
|
|
863
|
+
...settings,
|
|
864
|
+
hooks: { ...hooks, SessionStart: normalizedSessionStart },
|
|
865
|
+
};
|
|
866
|
+
mkdir(dir, { recursive: true });
|
|
867
|
+
write(settingsPath, `${JSON.stringify(updated, null, 2)}\n`);
|
|
868
|
+
return { action: "migrated", path: settingsPath };
|
|
841
869
|
}
|
|
842
870
|
|
|
843
871
|
const updated = {
|
|
@@ -845,7 +873,7 @@ export function installUserSessionHook(repoRoot, options = {}) {
|
|
|
845
873
|
hooks: {
|
|
846
874
|
...hooks,
|
|
847
875
|
SessionStart: [
|
|
848
|
-
...
|
|
876
|
+
...normalizedSessionStart,
|
|
849
877
|
{
|
|
850
878
|
matcher: "startup|resume",
|
|
851
879
|
hooks: [{ type: "command", command }],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.4",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.4",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, across Claude and Codex.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.4",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.4",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lisa-openclaw",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.4",
|
|
4
4
|
"description": "Connect staff roles to Telegram or Slack via OpenClaw — facilitator/specialist hub-and-spoke routing and repo-coding topics, for Claude Code and Codex",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Cody Swann"
|
|
@@ -161,6 +161,14 @@ COMMAND_SEPARATORS = {
|
|
|
161
161
|
";", "|", "||", "&", "&&", "(", ")", "<", ">", ">>", "<<", "&|",
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
ENV_OPTIONS_NO_VALUE = {
|
|
165
|
+
"-i", "--ignore-environment", "-0", "--null", "-v", "--debug",
|
|
166
|
+
}
|
|
167
|
+
ENV_OPTIONS_SEPARATE_VALUE = {
|
|
168
|
+
"-u", "--unset", "-C", "--chdir", "-a", "--argv0",
|
|
169
|
+
}
|
|
170
|
+
ENV_OPTIONS_INLINE_VALUE = ("--unset=", "--chdir=", "--argv0=")
|
|
171
|
+
|
|
164
172
|
# git's own options taking a SEPARATE value token, skipped when looking for the
|
|
165
173
|
# subcommand so `git -c core.hooksPath=x commit` still reaches `commit`.
|
|
166
174
|
GIT_GLOBAL_SEPARATE_VALUE = {
|
|
@@ -302,6 +310,56 @@ def subcommand_after_git(tokens, start):
|
|
|
302
310
|
return None
|
|
303
311
|
|
|
304
312
|
|
|
313
|
+
def env_short_option_uses_split_string(token):
|
|
314
|
+
"""Whether one GNU env short-option cluster enables split-string."""
|
|
315
|
+
if not token.startswith("-") or token.startswith("--") or token == "-":
|
|
316
|
+
return False
|
|
317
|
+
for letter in token[1:]:
|
|
318
|
+
if letter == "S":
|
|
319
|
+
return True
|
|
320
|
+
if letter in {"u", "C", "a"}:
|
|
321
|
+
# The rest of this token is the option's value, not more options.
|
|
322
|
+
return False
|
|
323
|
+
if letter not in {"i", "0", "v"}:
|
|
324
|
+
return False
|
|
325
|
+
return False
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
def env_uses_split_string(tokens, index):
|
|
329
|
+
"""Whether a command-position env invocation reparses an opaque payload."""
|
|
330
|
+
start = index - 1
|
|
331
|
+
while start >= 0 and tokens[start] not in COMMAND_SEPARATORS:
|
|
332
|
+
start -= 1
|
|
333
|
+
prefix = tokens[start + 1:index]
|
|
334
|
+
if not all("=" in token and not token.startswith("=") for token in prefix):
|
|
335
|
+
return False
|
|
336
|
+
|
|
337
|
+
cursor = index + 1
|
|
338
|
+
while cursor < len(tokens):
|
|
339
|
+
token = tokens[cursor]
|
|
340
|
+
if token in COMMAND_SEPARATORS or token == "--":
|
|
341
|
+
return False
|
|
342
|
+
if (
|
|
343
|
+
token in {"-S", "--split-string"}
|
|
344
|
+
or token.startswith("--split-string=")
|
|
345
|
+
or env_short_option_uses_split_string(token)
|
|
346
|
+
):
|
|
347
|
+
return True
|
|
348
|
+
if "=" in token and not token.startswith(("=", "-")):
|
|
349
|
+
cursor += 1
|
|
350
|
+
continue
|
|
351
|
+
if token in ENV_OPTIONS_NO_VALUE or token.startswith(
|
|
352
|
+
ENV_OPTIONS_INLINE_VALUE
|
|
353
|
+
):
|
|
354
|
+
cursor += 1
|
|
355
|
+
continue
|
|
356
|
+
if token in ENV_OPTIONS_SEPARATE_VALUE:
|
|
357
|
+
cursor += 2
|
|
358
|
+
continue
|
|
359
|
+
return False
|
|
360
|
+
return False
|
|
361
|
+
|
|
362
|
+
|
|
305
363
|
def git_commit_skips_verification(text):
|
|
306
364
|
"""Whether the command runs `git commit` with the short `-n` bypass.
|
|
307
365
|
|
|
@@ -315,6 +373,11 @@ def git_commit_skips_verification(text):
|
|
|
315
373
|
scoped_tokens = shell_tokens(text)
|
|
316
374
|
except ValueError:
|
|
317
375
|
return False
|
|
376
|
+
for index, token in enumerate(scoped_tokens):
|
|
377
|
+
if token.rsplit("/", 1)[-1] == "env" and env_uses_split_string(
|
|
378
|
+
scoped_tokens, index
|
|
379
|
+
):
|
|
380
|
+
return True
|
|
318
381
|
for index, token in enumerate(scoped_tokens):
|
|
319
382
|
# `/usr/bin/git` and a bare `git` are the same program; an env prefix
|
|
320
383
|
# (`HUSKY=1 git commit -n`) simply sits in an earlier token.
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
# Add a name here in the same commit that closes a vector. A hardening that
|
|
24
24
|
# forgets to is invisible to refresh, and shows up as an unexplained diff at
|
|
25
25
|
# review time instead of a named capability.
|
|
26
|
-
# lisa-guard-capabilities: no-verify-abbrev, husky-env, hookspath-allowlist, config-env, git-config-key, git-config-parameters, git-config-parameters-append, git-config-parameters-expansion, heredoc-shell-word, herestring-aware, no-verify-short, nested-shell-no-verify
|
|
26
|
+
# lisa-guard-capabilities: no-verify-abbrev, husky-env, hookspath-allowlist, config-env, env-split-string, git-config-key, git-config-parameters, git-config-parameters-append, git-config-parameters-expansion, heredoc-shell-word, herestring-aware, no-verify-short, nested-shell-no-verify
|
|
27
27
|
#
|
|
28
28
|
# Shell-token matching avoids false positives from issue bodies, heredocs, and
|
|
29
29
|
# commit-message prose while still catching quoted real argv values such as
|
|
@@ -222,7 +222,9 @@ MAX_SHELL_NESTING = 8
|
|
|
222
222
|
# Prefix options accepted by `env` before the command name. Value-taking
|
|
223
223
|
# options are separate because their operand must never be mistaken for the
|
|
224
224
|
# command (`env -u bash -c ...` consumes `bash` as the variable name).
|
|
225
|
-
ENV_OPTIONS_NO_VALUE = {
|
|
225
|
+
ENV_OPTIONS_NO_VALUE = {
|
|
226
|
+
"-i", "--ignore-environment", "-0", "--null", "-v", "--debug",
|
|
227
|
+
}
|
|
226
228
|
ENV_OPTIONS_SEPARATE_VALUE = {
|
|
227
229
|
"-u", "--unset", "-C", "--chdir", "-S", "--split-string",
|
|
228
230
|
"-a", "--argv0",
|
|
@@ -427,6 +429,72 @@ def shell_starts_command(tokens, index):
|
|
|
427
429
|
return True
|
|
428
430
|
|
|
429
431
|
|
|
432
|
+
def env_short_option_uses_split_string(token):
|
|
433
|
+
"""Whether one GNU env short-option cluster enables split-string."""
|
|
434
|
+
if not token.startswith("-") or token.startswith("--") or token == "-":
|
|
435
|
+
return False
|
|
436
|
+
for letter in token[1:]:
|
|
437
|
+
if letter == "S":
|
|
438
|
+
return True
|
|
439
|
+
if letter in {"u", "C", "a"}:
|
|
440
|
+
# The rest of this token is the option's value, not more options.
|
|
441
|
+
return False
|
|
442
|
+
if letter not in {"i", "0", "v"}:
|
|
443
|
+
return False
|
|
444
|
+
return False
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
def env_uses_split_string(tokens, index):
|
|
448
|
+
"""Whether a command-position env invocation uses split-string parsing.
|
|
449
|
+
|
|
450
|
+
`env -S` reparses one opaque argv value as shell-like words. Inspecting the
|
|
451
|
+
outer command cannot prove what executable or nested shell that second
|
|
452
|
+
parse will produce, so the verification guard refuses the ambiguous form.
|
|
453
|
+
|
|
454
|
+
Args:
|
|
455
|
+
tokens: The full operator-aware token list.
|
|
456
|
+
index: Index of the candidate env executable.
|
|
457
|
+
|
|
458
|
+
Returns:
|
|
459
|
+
True when env will reparse a split-string payload.
|
|
460
|
+
"""
|
|
461
|
+
start = index - 1
|
|
462
|
+
while start >= 0 and tokens[start] not in COMMAND_SEPARATORS:
|
|
463
|
+
start -= 1
|
|
464
|
+
prefix = tokens[start + 1:index]
|
|
465
|
+
if not all("=" in token and not token.startswith("=") for token in prefix):
|
|
466
|
+
return False
|
|
467
|
+
|
|
468
|
+
cursor = index + 1
|
|
469
|
+
while cursor < len(tokens):
|
|
470
|
+
token = tokens[cursor]
|
|
471
|
+
if token in COMMAND_SEPARATORS or token == "--":
|
|
472
|
+
return False
|
|
473
|
+
if (
|
|
474
|
+
token in {"-S", "--split-string"}
|
|
475
|
+
or token.startswith("--split-string=")
|
|
476
|
+
or env_short_option_uses_split_string(token)
|
|
477
|
+
):
|
|
478
|
+
return True
|
|
479
|
+
if "=" in token and not token.startswith(("=", "-")):
|
|
480
|
+
cursor += 1
|
|
481
|
+
continue
|
|
482
|
+
if token in ENV_OPTIONS_NO_VALUE or token.startswith(
|
|
483
|
+
tuple(
|
|
484
|
+
option
|
|
485
|
+
for option in ENV_OPTIONS_INLINE_VALUE
|
|
486
|
+
if option != "--split-string="
|
|
487
|
+
)
|
|
488
|
+
):
|
|
489
|
+
cursor += 1
|
|
490
|
+
continue
|
|
491
|
+
if token in ENV_OPTIONS_SEPARATE_VALUE:
|
|
492
|
+
cursor += 2
|
|
493
|
+
continue
|
|
494
|
+
return False
|
|
495
|
+
return False
|
|
496
|
+
|
|
497
|
+
|
|
430
498
|
def nested_shell_payload(tokens, index):
|
|
431
499
|
"""Return a shell `-c` payload, or True when option parsing is ambiguous."""
|
|
432
500
|
cursor = index + 1
|
|
@@ -467,6 +535,11 @@ def git_commit_skips_verification(text, depth=0):
|
|
|
467
535
|
scoped_tokens = shell_tokens(text)
|
|
468
536
|
except ValueError:
|
|
469
537
|
return False
|
|
538
|
+
for index, token in enumerate(scoped_tokens):
|
|
539
|
+
if token.rsplit("/", 1)[-1] == "env" and env_uses_split_string(
|
|
540
|
+
scoped_tokens, index
|
|
541
|
+
):
|
|
542
|
+
return True
|
|
470
543
|
for index, token in enumerate(scoped_tokens):
|
|
471
544
|
# `/usr/bin/git` and a bare `git` are the same program; an env prefix
|
|
472
545
|
# (`HUSKY=1 git commit -n`) simply sits in an earlier token.
|