pi-doc-injector 0.6.0 → 0.8.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.
- package/README.md +76 -201
- package/audit.ts +186 -0
- package/cache.ts +55 -7
- package/commands.ts +168 -105
- package/config.ts +134 -55
- package/docs/async-subagent-bug.md +4 -196
- package/docs/publish.md +9 -7
- package/docs/test-md.md +16 -1
- package/docs/typescript-hardening.md +38 -0
- package/docs/workflow-md.md +16 -1
- package/globber.ts +29 -12
- package/index.ts +262 -187
- package/injector.ts +93 -5
- package/keyword-gen.ts +161 -37
- package/keyword-llm.ts +24 -16
- package/matcher.ts +57 -19
- package/notifier.ts +36 -36
- package/package.json +16 -9
- package/registry.ts +92 -53
- package/types.ts +9 -1
- package/picomatch.d.ts +0 -11
|
@@ -1,199 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Historical: async subagent conflict
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Earlier versions of this extension called `ctx.abort()` when assistant output matched a doc, then sent a synthetic `continue` message from `agent_end`. This could interrupt async subagent workflows. The old implementation is described in repository history.
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The extension no longer aborts the assistant response or sends `continue`. Matches in assistant text or thinking stay pending and are injected from `before_agent_start` on the next agent run. User input matches still inject before the immediate response.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### The Flow
|
|
10
|
-
|
|
11
|
-
1. Parent spawns async subagents with `async: true, notifyOnComplete: "inject"`
|
|
12
|
-
2. Parent streams output (e.g., "I've launched 5 agents...")
|
|
13
|
-
3. Doc-injector's `message_update` fires, detects keyword match
|
|
14
|
-
4. Doc-injector calls `ctx.abort()` to abort current turn
|
|
15
|
-
5. `agent_end` fires → extension injects `"continue"` via `setTimeout()`
|
|
16
|
-
6. Parent receives `"continue"` → immediately calls `get_subagent_result x5`
|
|
17
|
-
7. Subagents still running → results not available → **spinner stuck**
|
|
18
|
-
|
|
19
|
-
### Why This Happens
|
|
20
|
-
|
|
21
|
-
The current doc-injector design assumes it can abort the current turn and restart immediately with injected docs. This works for simple single-turn workflows but breaks async subagent workflows because:
|
|
22
|
-
|
|
23
|
-
1. **The injected `"continue"` disrupts the expected flow** - parent should wait for `notifyOnComplete: "inject"` messages, not immediately poll for results
|
|
24
|
-
2. **`get_subagent_result` blocks** - when called before subagents finish, it hangs the parent thread
|
|
25
|
-
3. **The abort signal is shared** - in some subagent implementations (e.g., the `subagent` tool in pi-subagentura), async subagents explicitly don't inherit the parent abort signal. But the injected `"continue"` still breaks the flow
|
|
26
|
-
|
|
27
|
-
### Key Code Path (doc-injector/index.ts)
|
|
28
|
-
|
|
29
|
-
```typescript
|
|
30
|
-
// message_update handler - triggers abort on keyword match
|
|
31
|
-
pi.on("message_update", async (event, ctx) => {
|
|
32
|
-
if (hasNew && !ctx.isIdle() && !abortingForInjection) {
|
|
33
|
-
abortingForInjection = true;
|
|
34
|
-
ctx.abort(); // ← PROBLEM: aborts current turn
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
// agent_end handler - injects "continue" after abort
|
|
39
|
-
pi.on("agent_end", async (event, ctx) => {
|
|
40
|
-
if (abortingForInjection) {
|
|
41
|
-
abortingForInjection = false;
|
|
42
|
-
setTimeout(() => {
|
|
43
|
-
pi.sendUserMessage("continue"); // ← PROBLEM: disrupts async flow
|
|
44
|
-
}, 0);
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Subagentura System Context
|
|
50
|
-
|
|
51
|
-
### How Async Subagents Work
|
|
52
|
-
|
|
53
|
-
The subagentura system (`/Users/applesucks/dev/pi-agents/subagent.ts`) spawns async subagents that:
|
|
54
|
-
|
|
55
|
-
1. Run in the same process (not subprocess)
|
|
56
|
-
2. Have independent session/context
|
|
57
|
-
3. Signal via `notifyOnComplete: "inject"` - results injected as user messages when complete
|
|
58
|
-
4. Use `get_subagent_result` to poll/block for results
|
|
59
|
-
|
|
60
|
-
### Key Line (subagent.ts line 541, 744)
|
|
61
|
-
|
|
62
|
-
```typescript
|
|
63
|
-
signal: undefined, // async: don't inherit parent signal (would abort subagent when tool returns)
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Option A: Remove ctx.abort() Entirely (Recommended)
|
|
67
|
-
|
|
68
|
-
**Change:** Never call `ctx.abort()` in `message_update`. Just record matches and inject on next turn.
|
|
69
|
-
|
|
70
|
-
**Pros:**
|
|
71
|
-
- ✅ Simplest fix
|
|
72
|
-
- ✅ Works with ANY async workflow automatically
|
|
73
|
-
- ✅ No special-casing for subagents
|
|
74
|
-
|
|
75
|
-
**Cons:**
|
|
76
|
-
- ❌ Loses "immediate injection during streaming" optimization
|
|
77
|
-
- ❌ Docs injected on next turn instead of immediately
|
|
78
|
-
|
|
79
|
-
**Implementation:**
|
|
80
|
-
```typescript
|
|
81
|
-
pi.on("message_update", async (event, ctx) => {
|
|
82
|
-
if (keywordGenInFlight) return;
|
|
83
|
-
if (!enabled || !registry) return;
|
|
84
|
-
if (msg.role !== "assistant") return;
|
|
85
|
-
|
|
86
|
-
const content = (msg as unknown as { content: unknown }).content;
|
|
87
|
-
textBuffer = extractText(content);
|
|
88
|
-
if (!textBuffer) return;
|
|
89
|
-
|
|
90
|
-
const matcher = buildMatcher();
|
|
91
|
-
if (!matcher) return;
|
|
92
|
-
|
|
93
|
-
const results = matcher.match(textBuffer);
|
|
94
|
-
for (const result of results) {
|
|
95
|
-
if (!pendingMatches.has(result.entry.filePath)) {
|
|
96
|
-
hasNew = true; // Just record - don't abort
|
|
97
|
-
}
|
|
98
|
-
pendingMatches.set(result.entry.filePath, result.matchedKeywords);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// REMOVE: ctx.abort() entirely
|
|
102
|
-
// Just let the turn complete naturally
|
|
103
|
-
});
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Option B: Detect Async Subagents Before Aborting
|
|
107
|
-
|
|
108
|
-
**Change:** Check if assistant just spawned async subagents, skip abort if so.
|
|
109
|
-
|
|
110
|
-
**Pros:**
|
|
111
|
-
- ✅ Preserves immediate injection behavior
|
|
112
|
-
- ✅ Subagents continue running
|
|
113
|
-
|
|
114
|
-
**Cons:**
|
|
115
|
-
- ❌ Fragile - depends on detecting specific tool call patterns
|
|
116
|
-
- ❌ Doesn't scale to other async workflows
|
|
117
|
-
|
|
118
|
-
### Option C: Only Inject on User Input
|
|
119
|
-
|
|
120
|
-
**Change:** Only trigger immediate injection on `input` event (user messages), not on assistant streaming.
|
|
121
|
-
|
|
122
|
-
**Pros:**
|
|
123
|
-
- ✅ Clean separation of concerns
|
|
124
|
-
- ✅ User intent gets immediate response
|
|
125
|
-
|
|
126
|
-
**Cons:**
|
|
127
|
-
- ❌ Loses streaming injection optimization
|
|
128
|
-
- ❌ Still may not handle all async edge cases
|
|
129
|
-
|
|
130
|
-
## Recommendation
|
|
131
|
-
|
|
132
|
-
**Use Option A:** Remove `ctx.abort()` entirely.
|
|
133
|
-
|
|
134
|
-
The streaming injection optimization is not worth the complexity and the risk of breaking async workflows. Most keyword matches from assistant streaming are not time-critical - they can wait for the next turn.
|
|
135
|
-
|
|
136
|
-
## Additional Notes
|
|
137
|
-
|
|
138
|
-
### The notifyOnComplete:"inject" Flow
|
|
139
|
-
|
|
140
|
-
1. Parent spawns `async: true, notifyOnComplete: "inject"`
|
|
141
|
-
2. Parent continues immediately (doesn't wait)
|
|
142
|
-
3. Each subagent runs independently
|
|
143
|
-
4. When subagent completes, result is injected as user message via `pi.sendUserMessage()`
|
|
144
|
-
5. Parent receives the injected result and continues naturally
|
|
145
|
-
|
|
146
|
-
This flow is designed to work without any intervention from the parent. Breaking it with `ctx.abort()` + `"continue"` defeats the purpose.
|
|
147
|
-
|
|
148
|
-
### Session Context
|
|
149
|
-
|
|
150
|
-
Each subagent runs in its **own session** with its own doc-injector instance. Doc injection in subagent sessions is fine - they inject their own docs into their own context. The problem is only in the **parent session**.
|
|
151
|
-
|
|
152
|
-
## References
|
|
153
|
-
|
|
154
|
-
- doc-injector: `/Users/applesucks/dev/pi-docs/index.ts`
|
|
155
|
-
- subagentura: `/Users/applesucks/dev/pi-agents/subagent.ts`
|
|
156
|
-
- subagentura helpers: `/Users/applesucks/dev/pi-agents/helpers.ts`
|
|
157
|
-
|
|
158
|
-
## Web Research Summary
|
|
159
|
-
|
|
160
|
-
### Official Documentation
|
|
161
|
-
|
|
162
|
-
From `pi.dev/docs/latest/extensions`, the key lifecycle events are:
|
|
163
|
-
|
|
164
|
-
- `before_agent_start` - Fires after user submits prompt, **before** agent loop. Can inject a message and/or modify system prompt.
|
|
165
|
-
- `agent_start` / `agent_end` - Fires once per user prompt
|
|
166
|
-
- `message_update` - Fires during streaming output
|
|
167
|
-
- `input` - Fires on user input
|
|
168
|
-
|
|
169
|
-
**Important note from docs:** "For critical events (before_agent_start, context, tool_call), if all handlers fail, the system continues with default behavior."
|
|
170
|
-
|
|
171
|
-
### Key Extension API Points
|
|
172
|
-
|
|
173
|
-
1. **`ctx.abort()`** - "Request a graceful shutdown of pi. Interactive mode: Deferred until the agent becomes idle (after processing all queued steering and follow-up messages)."
|
|
174
|
-
2. **`ctx.signal`** - Available for extensions to forward cancellation into nested model calls, fetch(), and other abort-aware work.
|
|
175
|
-
3. **`before_agent_start`** - The recommended injection point for context, as it runs before the agent loop starts.
|
|
176
|
-
|
|
177
|
-
### Related GitHub Issues
|
|
178
|
-
|
|
179
|
-
- [Issue #624](https://github.com/earendil-works/pi/issues/624): "before_agent_start event does not properly inject message" - indicates there have been historical issues with injection timing
|
|
180
|
-
- [Issue #2660](https://github.com/earendil-works/pi/issues/2660): "Expose abort signal on ExtensionContext" - led to `ctx.signal` being added
|
|
181
|
-
|
|
182
|
-
### Subagent Extensions Found
|
|
183
|
-
|
|
184
|
-
1. **tintinweb/pi-subagents** (`pi.dev/packages/pi-subagents`)
|
|
185
|
-
- Claude Code-style autonomous subagents
|
|
186
|
-
- Spawns agents in isolated sessions
|
|
187
|
-
- Run in foreground or background
|
|
188
|
-
- Similar to subagentura
|
|
189
|
-
|
|
190
|
-
2. **nicobailon/pi-subagents** (GitHub)
|
|
191
|
-
- Async subagent delegation with truncation, artifacts, session sharing
|
|
192
|
-
|
|
193
|
-
### Conclusion from Web Research
|
|
194
|
-
|
|
195
|
-
No documented solutions exist for the specific conflict between streaming injection (via `ctx.abort()`) and async subagent workflows. The recommended approach based on official docs is:
|
|
196
|
-
|
|
197
|
-
1. Use `before_agent_start` for context injection (runs before agent loop)
|
|
198
|
-
2. Avoid `ctx.abort()` during streaming - it disrupts any workflow that expects continuous streaming
|
|
199
|
-
3. The `input` event is the cleanest injection point for user-driven context since it represents new user intent
|
|
7
|
+
If immediate mid-response injection is proposed again, test it against Pi's current agent lifecycle and async tools first. `agent_end` is not a final-idle signal; see [Pi's extension lifecycle](https://pi.dev/docs/latest/extensions#agent_start--agent_end--agent_before_settle--agent_settled).
|
package/docs/publish.md
CHANGED
|
@@ -27,6 +27,7 @@ No `NPM_TOKEN` secret, no token rotation, nothing to leak.
|
|
|
27
27
|
## Versioning
|
|
28
28
|
|
|
29
29
|
We follow [Semantic Versioning](https://semver.org/):
|
|
30
|
+
|
|
30
31
|
- **MAJOR** — incompatible API changes
|
|
31
32
|
- **MINOR** — backwards-compatible functionality additions
|
|
32
33
|
- **PATCH** — backwards-compatible bug fixes
|
|
@@ -34,10 +35,10 @@ We follow [Semantic Versioning](https://semver.org/):
|
|
|
34
35
|
## Release Process
|
|
35
36
|
|
|
36
37
|
```bash
|
|
37
|
-
# 1.
|
|
38
|
+
# 1. Set the same version in package.json and the root package entry in package-lock.json
|
|
38
39
|
|
|
39
40
|
# 2. Commit, tag, and push
|
|
40
|
-
git add package.json
|
|
41
|
+
git add package.json package-lock.json
|
|
41
42
|
git commit -m "chore: bump version to X.Y.Z"
|
|
42
43
|
git tag vX.Y.Z
|
|
43
44
|
git push origin master
|
|
@@ -54,6 +55,7 @@ git push origin master --follow-tags
|
|
|
54
55
|
## CI/CD
|
|
55
56
|
|
|
56
57
|
The `Publish` workflow triggers on `v*` tags and:
|
|
58
|
+
|
|
57
59
|
- Runs `npm ci`
|
|
58
60
|
- Verifies tag matches `package.json` version
|
|
59
61
|
- Runs `npm test`
|
|
@@ -80,8 +82,8 @@ After that, configure the trusted publisher and all future releases go through C
|
|
|
80
82
|
|
|
81
83
|
## Troubleshooting
|
|
82
84
|
|
|
83
|
-
| Issue
|
|
84
|
-
|
|
85
|
-
| Workflow didn't run
|
|
86
|
-
| 404 on publish
|
|
87
|
-
| Version already published | Bump to a new version
|
|
85
|
+
| Issue | Solution |
|
|
86
|
+
| ------------------------- | ------------------------------------------------------------ |
|
|
87
|
+
| Workflow didn't run | Verify tag exists: `git ls-remote origin refs/tags/vX.Y.Z` |
|
|
88
|
+
| 404 on publish | Verify trusted publisher config on npmjs.com matches exactly |
|
|
89
|
+
| Version already published | Bump to a new version |
|
package/docs/test-md.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Testing Workflow"
|
|
3
|
-
keywords:
|
|
3
|
+
keywords:
|
|
4
|
+
[
|
|
5
|
+
test,
|
|
6
|
+
testing,
|
|
7
|
+
unit test,
|
|
8
|
+
integration test,
|
|
9
|
+
tdd,
|
|
10
|
+
jest,
|
|
11
|
+
vitest,
|
|
12
|
+
assert,
|
|
13
|
+
mock,
|
|
14
|
+
stub,
|
|
15
|
+
]
|
|
4
16
|
---
|
|
5
17
|
|
|
6
18
|
# Testing Workflow
|
|
@@ -39,16 +51,19 @@ npm run test:coverage
|
|
|
39
51
|
## Test Categories
|
|
40
52
|
|
|
41
53
|
### Unit Tests
|
|
54
|
+
|
|
42
55
|
- Test individual functions in isolation
|
|
43
56
|
- Mock external dependencies
|
|
44
57
|
- Fast execution (< 100ms per test)
|
|
45
58
|
|
|
46
59
|
### Integration Tests
|
|
60
|
+
|
|
47
61
|
- Test module interactions
|
|
48
62
|
- May use real dependencies
|
|
49
63
|
- Slower than unit tests
|
|
50
64
|
|
|
51
65
|
### End-to-End Tests
|
|
66
|
+
|
|
52
67
|
- Test complete user workflows
|
|
53
68
|
- Run against a staging environment
|
|
54
69
|
- Slowest but most valuable
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# TypeScript hardening
|
|
2
|
+
|
|
3
|
+
`npm run typecheck` runs the existing whole-project check and a stricter,
|
|
4
|
+
dependency-light core check. `npm run typecheck:core` runs only the latter.
|
|
5
|
+
The core covers shared types, matching, local and LLM keyword prompt generation,
|
|
6
|
+
and injection formatting. It enables `noUncheckedIndexedAccess`,
|
|
7
|
+
`exactOptionalPropertyTypes`, and dependency declaration checking, with no emit.
|
|
8
|
+
It does not claim stricter coverage of Pi SDK integration or filesystem modules.
|
|
9
|
+
|
|
10
|
+
Negative contracts in `typechecks/core.test-d.ts` verify that unchecked array
|
|
11
|
+
access and explicit undefined option overrides are rejected. These contracts
|
|
12
|
+
are deliberately outside the normal test compilation. Runtime tests in
|
|
13
|
+
`test/typescript-config.test.ts` protect the scope, flags and mandatory script
|
|
14
|
+
chain. Existing matching tests cover Unicode boundaries and rolling windows.
|
|
15
|
+
|
|
16
|
+
## Provenance
|
|
17
|
+
|
|
18
|
+
The method was recovered locally from `/Users/applesucks/dev/pi-agents`, whose
|
|
19
|
+
package is `pi-subagentura`. The relevant work is from November 14, 2026:
|
|
20
|
+
|
|
21
|
+
- `efaa6eb15630a72ebe0fc3a48003c6a247dd57b6`, 16:05:16 +0200:
|
|
22
|
+
Harden extension execution and TypeScript boundaries (#235).
|
|
23
|
+
- `ffd2e5c445eb57e0371d0acda5ecfe9edcd711b7`, 14:03:14 +0200:
|
|
24
|
+
Incremental strict core typechecks, negative contracts and mandatory script
|
|
25
|
+
wiring.
|
|
26
|
+
- `74282f7e32ead66f430849dabaf0505d56b6f248`, 14:01:33 +0200:
|
|
27
|
+
Worker JavaScript and RPC checks. Those worker-specific changes are not needed
|
|
28
|
+
here because this extension has no JavaScript worker.
|
|
29
|
+
|
|
30
|
+
Pi session history under `~/.pi/agent/sessions` was also inspected. The concrete
|
|
31
|
+
implementation evidence is the local Git history and its checked-in compiler,
|
|
32
|
+
contract and test artifacts. The inspected hardening precedent does not define
|
|
33
|
+
ISO, so this work does not assign a meaning to that acronym.
|
|
34
|
+
|
|
35
|
+
A reusable global Pi skill is installed at
|
|
36
|
+
`~/.pi/agent/skills/typescript-hardening/SKILL.md`, using the existing global
|
|
37
|
+
skill directory and YAML frontmatter conventions. Its human-readable name is
|
|
38
|
+
TypeScript hardening and its skill name is `typescript-hardening`.
|
package/docs/workflow-md.md
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Development Workflow"
|
|
3
|
-
keywords:
|
|
3
|
+
keywords:
|
|
4
|
+
[
|
|
5
|
+
workflow,
|
|
6
|
+
development,
|
|
7
|
+
coding,
|
|
8
|
+
git,
|
|
9
|
+
branch,
|
|
10
|
+
commit,
|
|
11
|
+
pull request,
|
|
12
|
+
review,
|
|
13
|
+
ci,
|
|
14
|
+
cd,
|
|
15
|
+
pipeline,
|
|
16
|
+
]
|
|
4
17
|
---
|
|
5
18
|
|
|
6
19
|
# Development Workflow
|
|
@@ -28,6 +41,7 @@ This document describes the standard development workflow for this project.
|
|
|
28
41
|
## Commit Messages
|
|
29
42
|
|
|
30
43
|
Follow Conventional Commits:
|
|
44
|
+
|
|
31
45
|
```
|
|
32
46
|
type(scope): description
|
|
33
47
|
|
|
@@ -46,6 +60,7 @@ docs(readme): update installation steps
|
|
|
46
60
|
## CI/CD Pipeline
|
|
47
61
|
|
|
48
62
|
The pipeline runs on every push:
|
|
63
|
+
|
|
49
64
|
1. Lint check
|
|
50
65
|
2. Type check
|
|
51
66
|
3. Unit tests
|
package/globber.ts
CHANGED
|
@@ -1,10 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Glob filter for include/exclude pattern matching.
|
|
3
|
-
*
|
|
3
|
+
* Patterns are compiled once into Minimatch's non-recursive matchers.
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import { Minimatch } from "minimatch";
|
|
6
6
|
import type { GlobFilter } from "./types";
|
|
7
7
|
|
|
8
|
+
// Preserve literal # and leading-! behavior while keeping extglobs enabled.
|
|
9
|
+
const globOptions = { dot: true, nocomment: true, nonegate: false };
|
|
10
|
+
|
|
11
|
+
function compilePatterns(patterns: string[]): Minimatch[] {
|
|
12
|
+
const matchers: Minimatch[] = [];
|
|
13
|
+
for (const pattern of patterns) {
|
|
14
|
+
matchers.push(new Minimatch(pattern, globOptions));
|
|
15
|
+
}
|
|
16
|
+
return matchers;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function matchesAny(
|
|
20
|
+
matchers: readonly Minimatch[],
|
|
21
|
+
relativePath: string,
|
|
22
|
+
): boolean {
|
|
23
|
+
for (const matcher of matchers) {
|
|
24
|
+
if (matcher.match(relativePath)) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
|
|
8
31
|
/**
|
|
9
32
|
* Create a glob filter from include and exclude patterns.
|
|
10
33
|
*
|
|
@@ -22,24 +45,18 @@ export function createGlobFilter(
|
|
|
22
45
|
include: string[],
|
|
23
46
|
exclude: string[],
|
|
24
47
|
): GlobFilter {
|
|
25
|
-
const
|
|
26
|
-
include.length > 0
|
|
27
|
-
? picomatch(include, { dot: true })
|
|
28
|
-
: null;
|
|
48
|
+
const includeMatchers = include.length > 0 ? compilePatterns(include) : null;
|
|
29
49
|
|
|
30
|
-
const
|
|
31
|
-
exclude.length > 0
|
|
32
|
-
? picomatch(exclude, { dot: true })
|
|
33
|
-
: null;
|
|
50
|
+
const excludeMatchers = exclude.length > 0 ? compilePatterns(exclude) : null;
|
|
34
51
|
|
|
35
52
|
return {
|
|
36
53
|
match(relativePath: string): boolean {
|
|
37
54
|
// If include patterns are specified, path must match at least one
|
|
38
|
-
if (
|
|
55
|
+
if (includeMatchers && !matchesAny(includeMatchers, relativePath)) {
|
|
39
56
|
return false;
|
|
40
57
|
}
|
|
41
58
|
// Path must not match any exclude pattern
|
|
42
|
-
if (
|
|
59
|
+
if (excludeMatchers && matchesAny(excludeMatchers, relativePath)) {
|
|
43
60
|
return false;
|
|
44
61
|
}
|
|
45
62
|
return true;
|