@yeison.restrepo.r/code-conductor 1.31.1 → 1.31.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeison.restrepo.r/code-conductor",
3
- "version": "1.31.1",
3
+ "version": "1.31.2",
4
4
  "description": "A spec-first, token-efficient Claude Code configuration and installer CLI.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -195,11 +195,14 @@ function g3Scan(mode, input) {
195
195
 
196
196
  // Each check returns true when it FIRES (the authority's shell functions returned 1).
197
197
  //
198
- // A quirk worth naming, because it looks like a bug and is not: the authority walks
199
- // with `after="${rest:mlen}"`, slicing by the match LENGTH from position 0 rather
200
- // than from the match index. For `ls; cat *.ts` the match is `; cat ` and bash's
201
- // `after` is `at *.ts`, not `*.ts`. P4 and P7 reproduce that exactly. "Fixing" it
202
- // would make the port disagree with the corpus.
198
+ // The walk's contract, corrected in both subjects under [BUG-041]: `after` is the
199
+ // text that FOLLOWS the match, sliced from `m.index + m[0].length`. The original form
200
+ // sliced by the match LENGTH from position 0, so for a match at index N it shaved N
201
+ // bytes of real command off the front and re-scanned, walking leftward until the cut
202
+ // landed inside a quoted region; g3Scan's fail-closed clause then reported a glob that
203
+ // was never in the command. It cost 24 of the 47 denials measured in one session. The
204
+ // authority carries the same correction, recorded as its third sanctioned exception,
205
+ // so the corpus still arbitrates both subjects rather than one.
203
206
 
204
207
  function g3P1FindDepth(s) {
205
208
  if (!reFind.test(s)) return false;
@@ -241,7 +244,7 @@ function g3GlobWalk(s, re) {
241
244
  for (;;) {
242
245
  const m = re.exec(rest);
243
246
  if (!m) return false;
244
- const after = rest.slice(m[0].length); // authority quirk: slice by length, not index
247
+ const after = rest.slice(m.index + m[0].length);
245
248
  if (g3Scan('glob', after).glob) return true;
246
249
  rest = after;
247
250
  if (rest === '') return false;