@digipair/skill-logger 0.136.0 → 0.136.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.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { promises } from 'fs';
2
2
 
3
- function _mergeNamespaces(n, m) {
3
+ function _mergeNamespaces$1(n, m) {
4
4
  m.forEach(function(e) {
5
5
  e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
6
6
  if (k !== 'default' && !(k in n)) {
@@ -20,7 +20,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
20
20
  function getDefaultExportFromCjs(x) {
21
21
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
22
22
  }
23
- var handlebars_min$1 = {
23
+ var handlebars_min = {
24
24
  exports: {}
25
25
  };
26
26
  /**!
@@ -48,7 +48,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48
48
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
49
49
  THE SOFTWARE.
50
50
 
51
- */ handlebars_min$1.exports;
51
+ */ handlebars_min.exports;
52
52
  (function(module1, exports1) {
53
53
  function _instanceof(left, right) {
54
54
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
@@ -8129,12 +8129,12 @@ THE SOFTWARE.
8129
8129
  }
8130
8130
  ]);
8131
8131
  });
8132
- })(handlebars_min$1, handlebars_min$1.exports);
8133
- var handlebars_minExports = handlebars_min$1.exports;
8134
- var handlebars_min = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
8135
- var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces({
8132
+ })(handlebars_min, handlebars_min.exports);
8133
+ var handlebars_minExports = handlebars_min.exports;
8134
+ var handlebars_min_default = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
8135
+ var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces$1({
8136
8136
  __proto__: null,
8137
- default: handlebars_min
8137
+ default: handlebars_min_default
8138
8138
  }, [
8139
8139
  handlebars_minExports
8140
8140
  ]);
@@ -17297,6 +17297,7 @@ class represent prop names.
17297
17297
  this.deserialize = config.deserialize || function() {
17298
17298
  throw new Error("This node type doesn't define a deserialize function");
17299
17299
  };
17300
+ this.combine = config.combine || null;
17300
17301
  }
17301
17302
  _create_class$u(NodeProp, [
17302
17303
  {
@@ -17409,10 +17410,16 @@ represented by another tree.
17409
17410
  */ overlay, /**
17410
17411
  The parser used to create this subtree.
17411
17412
  */ parser) {
17413
+ var /**
17414
+ [Indicates](#common.IterMode.EnterBracketed) that the nested
17415
+ content is delineated with some kind
17416
+ of bracket token.
17417
+ */ bracketed = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
17412
17418
  _class_call_check$z(this, MountedTree);
17413
17419
  this.tree = tree;
17414
17420
  this.overlay = overlay;
17415
17421
  this.parser = parser;
17422
+ this.bracketed = bracketed;
17416
17423
  }
17417
17424
  _create_class$u(MountedTree, null, [
17418
17425
  {
@@ -17628,7 +17635,9 @@ types in it, so that the ids fit into 16-bit typed array slots.
17628
17635
  var add = source(type);
17629
17636
  if (add) {
17630
17637
  if (!newProps) newProps = Object.assign({}, type.props);
17631
- newProps[add[0].id] = add[1];
17638
+ var value = add[1], prop = add[0];
17639
+ if (prop.combine && prop.id in newProps) value = prop.combine(newProps[prop.id], value);
17640
+ newProps[prop.id] = value;
17632
17641
  }
17633
17642
  }
17634
17643
  } catch (err) {
@@ -17694,6 +17703,12 @@ operator to enable multiple ones.
17694
17703
  library to not enter mounted overlays if one covers the given
17695
17704
  position.
17696
17705
  */ IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
17706
+ /**
17707
+ When set, positions on the boundary of a mounted overlay tree
17708
+ that has its [`bracketed`](#common.NestedParse.bracketed) flag
17709
+ set will enter that tree regardless of side. Only supported in
17710
+ [`enter`](#common.SyntaxNode.enter), not in cursors.
17711
+ */ IterMode[IterMode["EnterBracketed"] = 16] = "EnterBracketed";
17697
17712
  })(IterMode || (IterMode = {}));
17698
17713
  /**
17699
17714
  A piece of syntax tree. There are two ways to approach these
@@ -18252,17 +18267,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
18252
18267
  var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
18253
18268
  for(var parent = this;;){
18254
18269
  for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
18255
- var next = children[i], start = positions[i] + parent.from;
18256
- if (!checkSide(side, pos, start, start + next.length)) continue;
18270
+ var next = children[i], start = positions[i] + parent.from, mounted = void 0;
18271
+ if (!(mode & IterMode.EnterBracketed && _instanceof$i(next, Tree) && (mounted = MountedTree.get(next)) && !mounted.overlay && mounted.bracketed && pos >= start && pos <= start + next.length) && !checkSide(side, pos, start, start + next.length)) continue;
18257
18272
  if (_instanceof$i(next, TreeBuffer)) {
18258
18273
  if (mode & IterMode.ExcludeBuffers) continue;
18259
18274
  var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
18260
18275
  if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
18261
18276
  } else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
18262
- var mounted = void 0;
18263
- if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay) return new TreeNode(mounted.tree, start, i, parent);
18277
+ var mounted1 = void 0;
18278
+ if (!(mode & IterMode.IgnoreMounts) && (mounted1 = MountedTree.get(next)) && !mounted1.overlay) return new TreeNode(mounted1.tree, start, i, parent);
18264
18279
  var inner = new TreeNode(next, start, i, parent);
18265
- return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
18280
+ return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side, mode);
18266
18281
  }
18267
18282
  }
18268
18283
  if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
@@ -18297,18 +18312,24 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
18297
18312
  return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
18298
18313
  }
18299
18314
  },
18315
+ {
18316
+ key: "prop",
18317
+ value: function prop(prop) {
18318
+ return this._tree.prop(prop);
18319
+ }
18320
+ },
18300
18321
  {
18301
18322
  key: "enter",
18302
18323
  value: function enter(pos, side) {
18303
18324
  var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
18304
18325
  var mounted;
18305
18326
  if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
18306
- var rPos = pos - this.from;
18327
+ var rPos = pos - this.from, enterBracketed = mode & IterMode.EnterBracketed && mounted.bracketed;
18307
18328
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
18308
18329
  try {
18309
18330
  for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
18310
18331
  var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
18311
- if ((side > 0 ? from <= rPos : from < rPos) && (side < 0 ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
18332
+ if ((side > 0 || enterBracketed ? from <= rPos : from < rPos) && (side < 0 || enterBracketed ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
18312
18333
  }
18313
18334
  } catch (err) {
18314
18335
  _didIteratorError = true;
@@ -18472,6 +18493,12 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
18472
18493
  return this.child(-1, pos, -2 /* Side.Before */ );
18473
18494
  }
18474
18495
  },
18496
+ {
18497
+ key: "prop",
18498
+ value: function prop(prop) {
18499
+ return this.type.prop(prop);
18500
+ }
18501
+ },
18475
18502
  {
18476
18503
  key: "enter",
18477
18504
  value: function enter(pos, side) {
@@ -18602,11 +18629,8 @@ A tree cursor object focuses on a given node in a syntax tree, and
18602
18629
  allows you to move to adjacent nodes.
18603
18630
  */ var TreeCursor = /*#__PURE__*/ function() {
18604
18631
  function TreeCursor(node) {
18605
- var /**
18606
- @internal
18607
- */ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
18632
+ var mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
18608
18633
  _class_call_check$z(this, TreeCursor);
18609
- this.mode = mode;
18610
18634
  /**
18611
18635
  @internal
18612
18636
  */ this.buffer = null;
@@ -18615,6 +18639,7 @@ allows you to move to adjacent nodes.
18615
18639
  @internal
18616
18640
  */ this.index = 0;
18617
18641
  this.bufferNode = null;
18642
+ this.mode = mode & ~IterMode.EnterBracketed;
18618
18643
  if (_instanceof$i(node, TreeNode)) {
18619
18644
  this.yieldNode(node);
18620
18645
  } else {
@@ -18958,7 +18983,7 @@ function buildTree(data) {
18958
18983
  function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
18959
18984
  var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
18960
18985
  var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
18961
- while(size < 0){
18986
+ if (size < 0) {
18962
18987
  cursor.next();
18963
18988
  if (size == -1 /* SpecialRecord.Reuse */ ) {
18964
18989
  var node = reused[id];
@@ -19125,7 +19150,7 @@ function buildTree(data) {
19125
19150
  fork.next();
19126
19151
  while(fork.pos > startPos){
19127
19152
  if (fork.size < 0) {
19128
- if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
19153
+ if (fork.size == -3 /* SpecialRecord.ContextChange */ || fork.size == -4 /* SpecialRecord.LookAhead */ ) localSkipped += 4;
19129
19154
  else break scan;
19130
19155
  } else if (fork.id >= minRepeatType) {
19131
19156
  localSkipped += 4;
@@ -19564,11 +19589,11 @@ about the parse state.
19564
19589
  var _a;
19565
19590
  var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
19566
19591
  var parser = this.p.parser;
19567
- var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
19568
- if (lookaheadRecord) this.setLookAhead(this.pos);
19592
+ var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ && this.setLookAhead(this.pos);
19569
19593
  var dPrec = parser.dynamicPrecedence(type);
19570
19594
  if (dPrec) this.score += dPrec;
19571
19595
  if (depth == 0) {
19596
+ if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
19572
19597
  this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
19573
19598
  // Zero-depth reductions are a special case—they add stuff to
19574
19599
  // the stack without popping anything off.
@@ -19582,7 +19607,9 @@ about the parse state.
19582
19607
  // expression and the state that we'll be staying in, which should
19583
19608
  // be moved to `this.state`).
19584
19609
  var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
19585
- var start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
19610
+ var start = base ? this.stack[base - 2] : this.p.ranges[0].from;
19611
+ if (type < parser.minRepeatTerm && start == this.reducePos && this.reducePos < this.pos) this.reducePos = this.pos;
19612
+ var size = this.reducePos - start;
19586
19613
  // This is a kludge to try and detect overly deep left-associative
19587
19614
  // trees, which will not increase the parse stack depth and thus
19588
19615
  // won't be caught by the regular stack-depth limit check.
@@ -19621,15 +19648,11 @@ about the parse state.
19621
19648
  var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
19622
19649
  if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
19623
19650
  // Try to omit/merge adjacent error nodes
19624
- var cur = this, top = this.buffer.length;
19625
- if (top == 0 && cur.parent) {
19626
- top = cur.bufferBase - cur.parent.bufferBase;
19627
- cur = cur.parent;
19628
- }
19629
- if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
19651
+ var top = this.buffer.length;
19652
+ if (top > 0 && this.buffer[top - 4] == 0 /* Term.Err */ && this.buffer[top - 1] > -1) {
19630
19653
  if (start == end) return;
19631
- if (cur.buffer[top - 2] >= start) {
19632
- cur.buffer[top - 2] = end;
19654
+ if (this.buffer[top - 2] >= start) {
19655
+ this.buffer[top - 2] = end;
19633
19656
  return;
19634
19657
  }
19635
19658
  }
@@ -19638,7 +19661,7 @@ about the parse state.
19638
19661
  this.buffer.push(term, start, end, size);
19639
19662
  } else {
19640
19663
  var index = this.buffer.length;
19641
- if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
19664
+ if (index > 0 && (this.buffer[index - 4] != 0 /* Term.Err */ || this.buffer[index - 1] < 0)) {
19642
19665
  var mustMove = false;
19643
19666
  for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
19644
19667
  if (this.buffer[scan - 1] >= 0) {
@@ -19673,11 +19696,11 @@ about the parse state.
19673
19696
  this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
19674
19697
  } else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
19675
19698
  var nextState = action, parser = this.p.parser;
19676
- if (end > this.pos || type <= parser.maxNode) {
19677
- this.pos = end;
19678
- if (!parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ )) this.reducePos = end;
19679
- }
19680
- this.pushState(nextState, start);
19699
+ this.pos = end;
19700
+ var skipped = parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ );
19701
+ // Skipped or zero-length non-tree tokens don't move reducePos
19702
+ if (!skipped && (end > start || type <= parser.maxNode)) this.reducePos = end;
19703
+ this.pushState(nextState, skipped ? start : Math.min(start, this.reducePos));
19681
19704
  this.shiftContext(type, start);
19682
19705
  if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
19683
19706
  } else {
@@ -19725,6 +19748,9 @@ about the parse state.
19725
19748
  value: function split() {
19726
19749
  var parent = this;
19727
19750
  var off = parent.buffer.length;
19751
+ // Leave off top error node, if there, because that might be
19752
+ // merged with other nodes.
19753
+ if (off && parent.buffer[off - 4] == 0 /* Term.Err */ ) off -= 4;
19728
19754
  // Because the top of the buffer (after this.pos) may be mutated
19729
19755
  // to reorder reductions and skipped tokens, and shared buffers
19730
19756
  // should be immutable, this copies any outstanding skipped tokens
@@ -19968,10 +19994,10 @@ about the parse state.
19968
19994
  @internal
19969
19995
  */ key: "setLookAhead",
19970
19996
  value: function setLookAhead(lookAhead) {
19971
- if (lookAhead > this.lookAhead) {
19972
- this.emitLookAhead();
19973
- this.lookAhead = lookAhead;
19974
- }
19997
+ if (lookAhead <= this.lookAhead) return false;
19998
+ this.emitLookAhead();
19999
+ this.lookAhead = lookAhead;
20000
+ return true;
19975
20001
  }
19976
20002
  },
19977
20003
  {
@@ -20864,7 +20890,12 @@ var Parse = /*#__PURE__*/ function() {
20864
20890
  }
20865
20891
  }
20866
20892
  }
20867
- if (newStacks.length > 12 /* Rec.MaxStackCount */ ) newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
20893
+ if (newStacks.length > 12 /* Rec.MaxStackCount */ ) {
20894
+ newStacks.sort(function(a, b) {
20895
+ return b.score - a.score;
20896
+ });
20897
+ newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
20898
+ }
20868
20899
  }
20869
20900
  this.minStackPos = newStacks[0].pos;
20870
20901
  for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
@@ -20959,7 +20990,7 @@ var Parse = /*#__PURE__*/ function() {
20959
20990
  if (done) continue;
20960
20991
  }
20961
20992
  var force = stack.split(), forceBase = base;
20962
- for(var j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */ ; j++){
20993
+ for(var j = 0; j < 10 /* Rec.ForceReduceLimit */ && force.forceReduce(); j++){
20963
20994
  if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
20964
20995
  var done1 = this.advanceFully(force, newStacks);
20965
20996
  if (done1) break;
@@ -20994,8 +21025,8 @@ var Parse = /*#__PURE__*/ function() {
20994
21025
  stack.recoverByDelete(token, tokenEnd);
20995
21026
  if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
20996
21027
  pushStackDedup(stack, newStacks);
20997
- } else if (!finished || finished.score < stack.score) {
20998
- finished = stack;
21028
+ } else if (!finished || finished.score < force.score) {
21029
+ finished = force;
20999
21030
  }
21000
21031
  }
21001
21032
  return finished;
@@ -21844,7 +21875,7 @@ must be quoted as JSON strings.
21844
21875
  For example:
21845
21876
 
21846
21877
  ```javascript
21847
- parser.withProps(
21878
+ parser.configure({props: [
21848
21879
  styleTags({
21849
21880
  // Style Number and BigNumber nodes
21850
21881
  "Number BigNumber": tags.number,
@@ -21859,7 +21890,7 @@ parser.withProps(
21859
21890
  // Style the node named "/" as punctuation
21860
21891
  '"/"': tags.punctuation
21861
21892
  })
21862
- )
21893
+ ]})
21863
21894
  ```
21864
21895
  */ function styleTags(spec) {
21865
21896
  var byName = Object.create(null);
@@ -21915,7 +21946,26 @@ parser.withProps(
21915
21946
  }
21916
21947
  return ruleNodeProp.add(byName);
21917
21948
  }
21918
- var ruleNodeProp = new NodeProp();
21949
+ var ruleNodeProp = new NodeProp({
21950
+ combine: function combine(a, b) {
21951
+ var cur, root, take;
21952
+ while(a || b){
21953
+ if (!a || b && a.depth >= b.depth) {
21954
+ take = b;
21955
+ b = b.next;
21956
+ } else {
21957
+ take = a;
21958
+ a = a.next;
21959
+ }
21960
+ if (cur && cur.mode == take.mode && !take.context && !cur.context) continue;
21961
+ var copy = new Rule$1(take.tags, take.mode, take.context);
21962
+ if (cur) cur.next = copy;
21963
+ else root = copy;
21964
+ cur = copy;
21965
+ }
21966
+ return root;
21967
+ }
21968
+ });
21919
21969
  var Rule$1 = /*#__PURE__*/ function() {
21920
21970
  function Rule(tags, mode, context, next) {
21921
21971
  _class_call_check$x(this, Rule);
@@ -22840,14 +22890,14 @@ function indent(str, spaces) {
22840
22890
  var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
22841
22891
  // match is required
22842
22892
  if (!match) {
22843
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
22893
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
22844
22894
  v: nextMatch1
22845
22895
  };
22846
22896
  }
22847
22897
  var token = match.token, offset = match.offset;
22848
22898
  i1 += offset;
22849
22899
  if (token === ' ') {
22850
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
22900
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22851
22901
  }
22852
22902
  tokens1 = _to_consumable_array$4(tokens1).concat([
22853
22903
  token
@@ -22866,7 +22916,7 @@ function indent(str, spaces) {
22866
22916
  if (contextKeys.some(function(el) {
22867
22917
  return el.startsWith(name);
22868
22918
  })) {
22869
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
22919
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22870
22920
  }
22871
22921
  if (dateTimeIdentifiers.some(function(el) {
22872
22922
  return el === name;
@@ -22885,9 +22935,9 @@ function indent(str, spaces) {
22885
22935
  if (dateTimeIdentifiers.some(function(el) {
22886
22936
  return el.startsWith(name);
22887
22937
  })) {
22888
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, "continue";
22938
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, "continue";
22889
22939
  }
22890
- return nextMatch = nextMatch1, tokens = tokens1, i = i1, {
22940
+ return i = i1, nextMatch = nextMatch1, tokens = tokens1, {
22891
22941
  v: nextMatch1
22892
22942
  };
22893
22943
  };
@@ -42615,7 +42665,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
42615
42665
  var parserInstance$1 = new CelParser();
42616
42666
  parserInstance$1.getBaseCstVisitorConstructor();
42617
42667
  new CelParser();
42618
- const Handlebars = handlebars_min || HandlebarsNamespace;
42668
+ const Handlebars = handlebars_min_default || HandlebarsNamespace;
42619
42669
  Handlebars.registerHelper('JSONstringify', function(value) {
42620
42670
  return JSON.stringify(value);
42621
42671
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-logger",
3
- "version": "0.136.0",
3
+ "version": "0.136.3",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,2 +0,0 @@
1
- export * from './lib/skill-logger';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -1,9 +0,0 @@
1
- import { PinsSettings } from '@digipair/engine';
2
- export declare const initialize: (path?: string) => Promise<void>;
3
- export declare const addLog: (context: any, type: string, message: string) => Promise<void>;
4
- export declare const addConsumption: (context: any, service: string, model: string, promptTokens: number, completionTokens: number) => Promise<void>;
5
- export declare const computeDailyConsumption: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
6
- export declare const read: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<any[]>;
7
- export declare const list: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<string[]>;
8
- export declare const cleaning: (params: any, pinsSettingsList: PinsSettings[], context: any) => Promise<void>;
9
- //# sourceMappingURL=skill-logger.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"skill-logger.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAU,MAAM,kBAAkB,CAAC;AA0KxD,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,kBAAyC,CAAC;AAElF,eAAO,MAAM,MAAM,GAAI,SAAS,GAAG,EAAE,MAAM,MAAM,EAAE,SAAS,MAAM,kBACd,CAAC;AAErD,eAAO,MAAM,cAAc,GACzB,SAAS,GAAG,EACZ,SAAS,MAAM,EACf,OAAO,MAAM,EACb,cAAc,MAAM,EACpB,kBAAkB,MAAM,kBACsE,CAAC;AAMjG,eAAO,MAAM,uBAAuB,GAClC,QAAQ,GAAG,EACX,kBAAkB,YAAY,EAAE,EAChC,SAAS,GAAG,kBACqE,CAAC;AAEpF,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,mBACnB,CAAC;AAE9D,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,sBACnB,CAAC;AAE9D,eAAO,MAAM,QAAQ,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,kBACnB,CAAC"}