paperclip-github-plugin 0.17.0 → 0.17.1

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/manifest.js CHANGED
@@ -691,7 +691,7 @@ var COMPANY_METRIC_API_ROUTE_URL_PATH = `/api/plugins/${GITHUB_SYNC_PLUGIN_ID}/a
691
691
  var require2 = createRequire(import.meta.url);
692
692
  var packageJson = require2("../package.json");
693
693
  var SCHEDULE_TICK_CRON = "* * * * *";
694
- var MANIFEST_VERSION = "0.17.0"?.trim() || typeof packageJson.version === "string" && packageJson.version.trim() || process.env.npm_package_version?.trim() || "0.0.0-dev";
694
+ var MANIFEST_VERSION = "0.17.1"?.trim() || typeof packageJson.version === "string" && packageJson.version.trim() || process.env.npm_package_version?.trim() || "0.0.0-dev";
695
695
  var COMPANY_SECRET_REF_VALUE_SCHEMA = {
696
696
  anyOf: [
697
697
  { type: "string" },
package/dist/ui/index.js CHANGED
@@ -276,7 +276,7 @@ var require_extend = __commonJS({
276
276
  "use strict";
277
277
  var hasOwn = Object.prototype.hasOwnProperty;
278
278
  var toStr = Object.prototype.toString;
279
- var defineProperty = Object.defineProperty;
279
+ var defineProperty2 = Object.defineProperty;
280
280
  var gOPD = Object.getOwnPropertyDescriptor;
281
281
  var isArray = function isArray2(arr) {
282
282
  if (typeof Array.isArray === "function") {
@@ -299,8 +299,8 @@ var require_extend = __commonJS({
299
299
  return typeof key === "undefined" || hasOwn.call(obj, key);
300
300
  };
301
301
  var setProperty = function setProperty2(target, options) {
302
- if (defineProperty && options.name === "__proto__") {
303
- defineProperty(target, options.name, {
302
+ if (defineProperty2 && options.name === "__proto__") {
303
+ defineProperty2(target, options.name, {
304
304
  enumerable: true,
305
305
  configurable: true,
306
306
  value: options.newValue,
@@ -370,7 +370,7 @@ import {
370
370
  usePluginToast
371
371
  } from "@paperclipai/plugin-sdk/ui";
372
372
 
373
- // node_modules/.pnpm/@ungap+structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/types.js
373
+ // node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/types.js
374
374
  var VOID = -1;
375
375
  var PRIMITIVE = 0;
376
376
  var ARRAY = 1;
@@ -382,7 +382,8 @@ var SET = 6;
382
382
  var ERROR = 7;
383
383
  var BIGINT = 8;
384
384
 
385
- // node_modules/.pnpm/@ungap+structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/deserialize.js
385
+ // node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/deserialize.js
386
+ var { defineProperty } = Object;
386
387
  var env = typeof self === "object" ? self : globalThis;
387
388
  var guard = (name2, init) => {
388
389
  switch (name2) {
@@ -417,8 +418,16 @@ var deserializer = ($2, _) => {
417
418
  }
418
419
  case OBJECT: {
419
420
  const object = as({}, index2);
420
- for (const [key, index3] of value)
421
- object[unpair(key)] = unpair(index3);
421
+ for (const [key, index3] of value) {
422
+ const k = unpair(key), value2 = unpair(index3);
423
+ if (k === "__proto__") defineProperty(object, k, {
424
+ value: value2,
425
+ configurable: true,
426
+ enumerable: true,
427
+ writable: true
428
+ });
429
+ else object[k] = value2;
430
+ }
422
431
  return object;
423
432
  }
424
433
  case DATE:
@@ -456,6 +465,8 @@ var deserializer = ($2, _) => {
456
465
  const { buffer } = new Uint8Array(value);
457
466
  return as(new DataView(buffer), value);
458
467
  }
468
+ case "-0":
469
+ return -0;
459
470
  }
460
471
  return as(guard(type, value), index2);
461
472
  };
@@ -463,10 +474,10 @@ var deserializer = ($2, _) => {
463
474
  };
464
475
  var deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
465
476
 
466
- // node_modules/.pnpm/@ungap+structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/serialize.js
477
+ // node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/serialize.js
467
478
  var EMPTY = "";
468
479
  var { toString } = {};
469
- var { keys } = Object;
480
+ var { keys, is } = Object;
470
481
  var typeOf = (value) => {
471
482
  const type = typeof value;
472
483
  if (type !== "object" || !value)
@@ -513,6 +524,10 @@ var serializer = (strict, json, $2, _) => {
513
524
  TYPE = BIGINT;
514
525
  entry = value.toString();
515
526
  break;
527
+ case "number":
528
+ if (!value && is(value, -0))
529
+ return _.push(["-0"]) - 1;
530
+ break;
516
531
  case "function":
517
532
  case "symbol":
518
533
  if (strict)
@@ -596,7 +611,7 @@ var serialize = (value, { json, lossy } = {}) => {
596
611
  return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
597
612
  };
598
613
 
599
- // node_modules/.pnpm/@ungap+structured-clone@1.3.3/node_modules/@ungap/structured-clone/esm/index.js
614
+ // node_modules/.pnpm/@ungap+structured-clone@1.4.0/node_modules/@ungap/structured-clone/esm/index.js
600
615
  var esm_default = typeof structuredClone === "function" ? (
601
616
  /* c8 ignore start */
602
617
  (any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any)
@@ -10576,7 +10591,7 @@ function visitParents(tree, test, visitor, reverse) {
10576
10591
  } else {
10577
10592
  check = test;
10578
10593
  }
10579
- const is2 = convert(check);
10594
+ const is3 = convert(check);
10580
10595
  const step = reverse ? -1 : 1;
10581
10596
  factory(tree, void 0, [])();
10582
10597
  function factory(node2, index2, parents) {
@@ -10602,7 +10617,7 @@ function visitParents(tree, test, visitor, reverse) {
10602
10617
  let subresult;
10603
10618
  let offset;
10604
10619
  let grandparents;
10605
- if (!test || is2(node2, index2, parents[parents.length - 1] || void 0)) {
10620
+ if (!test || is3(node2, index2, parents[parents.length - 1] || void 0)) {
10606
10621
  result = toResult(visitor(node2, parents));
10607
10622
  if (result[0] === EXIT) {
10608
10623
  return result;
@@ -12015,7 +12030,7 @@ var urlAttributes = {
12015
12030
  ]
12016
12031
  };
12017
12032
 
12018
- // node_modules/.pnpm/react-markdown@10.1.0_@types+react@19.2.17_react@19.2.7/node_modules/react-markdown/lib/index.js
12033
+ // node_modules/.pnpm/react-markdown@10.1.0_@types+react@19.3.0_react@19.3.0/node_modules/react-markdown/lib/index.js
12019
12034
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12020
12035
  import { useEffect, useState } from "react";
12021
12036
 
@@ -19171,7 +19186,7 @@ function isUint8Array2(value) {
19171
19186
  );
19172
19187
  }
19173
19188
 
19174
- // node_modules/.pnpm/react-markdown@10.1.0_@types+react@19.2.17_react@19.2.7/node_modules/react-markdown/lib/index.js
19189
+ // node_modules/.pnpm/react-markdown@10.1.0_@types+react@19.3.0_react@19.3.0/node_modules/react-markdown/lib/index.js
19175
19190
  var changelog = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md";
19176
19191
  var emptyPlugins = [];
19177
19192
  var emptyRemarkRehypeOptions = { allowDangerousHtml: true };
@@ -21773,21 +21788,26 @@ function gfmStrikethrough(options) {
21773
21788
  }
21774
21789
  }
21775
21790
 
21776
- // node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/edit-map.js
21791
+ // node_modules/.pnpm/micromark-extension-gfm-table@2.1.2/node_modules/micromark-extension-gfm-table/lib/edit-map.js
21777
21792
  var EditMap = class {
21778
21793
  /**
21779
21794
  * Create a new edit map.
21780
21795
  */
21781
21796
  constructor() {
21782
21797
  this.map = [];
21798
+ this.index = /* @__PURE__ */ new Map();
21783
21799
  }
21784
21800
  /**
21785
21801
  * Create an edit: a remove and/or add at a certain place.
21786
21802
  *
21787
21803
  * @param {number} index
21804
+ * Index at which to apply the edit.
21788
21805
  * @param {number} remove
21806
+ * Count of items to remove at the index.
21789
21807
  * @param {Array<Event>} add
21808
+ * Items to add at the index.
21790
21809
  * @returns {undefined}
21810
+ * Nothing.
21791
21811
  */
21792
21812
  add(index2, remove, add) {
21793
21813
  addImplementation(this, index2, remove, add);
@@ -21808,7 +21828,9 @@ var EditMap = class {
21808
21828
  * Done, change the events.
21809
21829
  *
21810
21830
  * @param {Array<Event>} events
21831
+ * List of events to apply the edits to.
21811
21832
  * @returns {undefined}
21833
+ * Nothing.
21812
21834
  */
21813
21835
  consume(events) {
21814
21836
  this.map.sort(function(a, b) {
@@ -21834,25 +21856,25 @@ var EditMap = class {
21834
21856
  slice = vecs.pop();
21835
21857
  }
21836
21858
  this.map.length = 0;
21859
+ this.index.clear();
21837
21860
  }
21838
21861
  };
21839
21862
  function addImplementation(editMap, at, remove, add) {
21840
- let index2 = 0;
21841
21863
  if (remove === 0 && add.length === 0) {
21842
21864
  return;
21843
21865
  }
21844
- while (index2 < editMap.map.length) {
21845
- if (editMap.map[index2][0] === at) {
21846
- editMap.map[index2][1] += remove;
21847
- editMap.map[index2][2].push(...add);
21848
- return;
21849
- }
21850
- index2 += 1;
21866
+ const existing = editMap.index.get(at);
21867
+ if (existing) {
21868
+ existing[1] += remove;
21869
+ existing[2].push(...add);
21870
+ return;
21851
21871
  }
21852
- editMap.map.push([at, remove, add]);
21872
+ const change = [at, remove, add];
21873
+ editMap.map.push(change);
21874
+ editMap.index.set(at, change);
21853
21875
  }
21854
21876
 
21855
- // node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/infer.js
21877
+ // node_modules/.pnpm/micromark-extension-gfm-table@2.1.2/node_modules/micromark-extension-gfm-table/lib/infer.js
21856
21878
  function gfmTableAlign(events, index2) {
21857
21879
  let inDelimiterRow = false;
21858
21880
  const align = [];
@@ -21879,7 +21901,7 @@ function gfmTableAlign(events, index2) {
21879
21901
  return align;
21880
21902
  }
21881
21903
 
21882
- // node_modules/.pnpm/micromark-extension-gfm-table@2.1.1/node_modules/micromark-extension-gfm-table/lib/syntax.js
21904
+ // node_modules/.pnpm/micromark-extension-gfm-table@2.1.2/node_modules/micromark-extension-gfm-table/lib/syntax.js
21883
21905
  function gfmTable() {
21884
21906
  return {
21885
21907
  flow: {
@@ -21900,10 +21922,15 @@ function tokenizeTable(effects, ok3, nok) {
21900
21922
  function start2(code4) {
21901
21923
  let index2 = self2.events.length - 1;
21902
21924
  while (index2 > -1) {
21903
- const type = self2.events[index2][1].type;
21925
+ const {
21926
+ type
21927
+ } = self2.events[index2][1];
21904
21928
  if (type === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
21905
- type === "linePrefix") index2--;
21906
- else break;
21929
+ type === "linePrefix") {
21930
+ index2--;
21931
+ } else {
21932
+ break;
21933
+ }
21907
21934
  }
21908
21935
  const tail = index2 > -1 ? self2.events[index2][1].type : null;
21909
21936
  const next2 = tail === "tableHead" || tail === "tableRow" ? bodyRowStart : headRowBefore;