paperclip-github-plugin 0.14.0 → 0.14.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/README.md +2 -0
- package/dist/manifest.js +1 -1
- package/dist/ui/index.js +5 -5
- package/dist/ui/index.js.map +3 -3
- package/dist/worker.js +68 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -245,6 +245,8 @@ Branch publication uses an isolated temporary bare repository backed by the trus
|
|
|
245
245
|
|
|
246
246
|
The call is ordered and retry-safe rather than a cross-system transaction: a published branch may remain if GitHub PR creation or Paperclip link persistence fails. On retry, the tool re-verifies and republishes the exact SHA, then recovers an already-open PR only when repository, head, base, and head SHA all match before repairing the link and metric. It never deletes a branch or closes a PR as automatic compensation.
|
|
247
247
|
|
|
248
|
+
After that durable link is written, pull-request tools can use the same `paperclipIssueId` to read or update the PR immediately, even when the Paperclip issue was created natively and has no linked GitHub issue. If one Paperclip issue has same-number PRs in different repositories, the caller must also supply the repository so the worker can reject ambiguous or unlinked selections.
|
|
249
|
+
|
|
248
250
|
When an agent sends GitHub body content through the plugin, including issue bodies, pull request descriptions, comments, and review-thread replies, the plugin adds a GitHub-flavored Markdown footer with a horizontal rule and compact heading that discloses AI authorship. If the tool caller supplies `llmModel`, the footer also includes the model name, for example `###### ✨ This comment was AI-generated using gpt-5.4`.
|
|
249
251
|
|
|
250
252
|
### KPI attribution API route
|
package/dist/manifest.js
CHANGED
|
@@ -641,7 +641,7 @@ var COMPANY_METRIC_API_ROUTE_URL_PATH = `/api/plugins/${GITHUB_SYNC_PLUGIN_ID}/a
|
|
|
641
641
|
var require2 = createRequire(import.meta.url);
|
|
642
642
|
var packageJson = require2("../package.json");
|
|
643
643
|
var SCHEDULE_TICK_CRON = "* * * * *";
|
|
644
|
-
var MANIFEST_VERSION = "0.14.
|
|
644
|
+
var MANIFEST_VERSION = "0.14.1"?.trim() || typeof packageJson.version === "string" && packageJson.version.trim() || process.env.npm_package_version?.trim() || "0.0.0-dev";
|
|
645
645
|
var manifest = {
|
|
646
646
|
id: GITHUB_SYNC_PLUGIN_ID,
|
|
647
647
|
apiVersion: 1,
|
package/dist/ui/index.js
CHANGED
|
@@ -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.
|
|
373
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.3.2/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,7 @@ var SET = 6;
|
|
|
382
382
|
var ERROR = 7;
|
|
383
383
|
var BIGINT = 8;
|
|
384
384
|
|
|
385
|
-
// node_modules/.pnpm/@ungap+structured-clone@1.3.
|
|
385
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.3.2/node_modules/@ungap/structured-clone/esm/deserialize.js
|
|
386
386
|
var env = typeof self === "object" ? self : globalThis;
|
|
387
387
|
var guard = (name2, init) => {
|
|
388
388
|
switch (name2) {
|
|
@@ -460,7 +460,7 @@ var deserializer = ($2, _) => {
|
|
|
460
460
|
};
|
|
461
461
|
var deserialize = (serialized) => deserializer(/* @__PURE__ */ new Map(), serialized)(0);
|
|
462
462
|
|
|
463
|
-
// node_modules/.pnpm/@ungap+structured-clone@1.3.
|
|
463
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.3.2/node_modules/@ungap/structured-clone/esm/serialize.js
|
|
464
464
|
var EMPTY = "";
|
|
465
465
|
var { toString } = {};
|
|
466
466
|
var { keys } = Object;
|
|
@@ -559,7 +559,7 @@ var serializer = (strict, json, $2, _) => {
|
|
|
559
559
|
return index2;
|
|
560
560
|
}
|
|
561
561
|
case DATE:
|
|
562
|
-
return as([TYPE, value.toISOString()], value);
|
|
562
|
+
return as([TYPE, isNaN(value.getTime()) ? EMPTY : value.toISOString()], value);
|
|
563
563
|
case REGEXP: {
|
|
564
564
|
const { source, flags } = value;
|
|
565
565
|
return as([TYPE, { source, flags }], value);
|
|
@@ -593,7 +593,7 @@ var serialize = (value, { json, lossy } = {}) => {
|
|
|
593
593
|
return serializer(!(json || lossy), !!json, /* @__PURE__ */ new Map(), _)(value), _;
|
|
594
594
|
};
|
|
595
595
|
|
|
596
|
-
// node_modules/.pnpm/@ungap+structured-clone@1.3.
|
|
596
|
+
// node_modules/.pnpm/@ungap+structured-clone@1.3.2/node_modules/@ungap/structured-clone/esm/index.js
|
|
597
597
|
var esm_default = typeof structuredClone === "function" ? (
|
|
598
598
|
/* c8 ignore start */
|
|
599
599
|
(any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any)
|