@allocator-one/harness-cli 1.5.0 → 1.5.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.
|
@@ -514,12 +514,19 @@ function pageCount(meta) {
|
|
|
514
514
|
function dedupe(records) {
|
|
515
515
|
const seen = /* @__PURE__ */ new Set();
|
|
516
516
|
return records.filter((record) => {
|
|
517
|
-
const
|
|
517
|
+
const id = record["id"];
|
|
518
|
+
const key = id === void 0 || id === null ? `struct:${stableKey(record)}` : `id:${stableKey(id)}`;
|
|
518
519
|
if (seen.has(key)) return false;
|
|
519
520
|
seen.add(key);
|
|
520
521
|
return true;
|
|
521
522
|
});
|
|
522
523
|
}
|
|
524
|
+
function stableKey(value) {
|
|
525
|
+
return JSON.stringify(
|
|
526
|
+
value,
|
|
527
|
+
(_field, nested) => nested !== null && typeof nested === "object" && !Array.isArray(nested) ? Object.fromEntries(Object.entries(nested).sort(([a], [b]) => a < b ? -1 : 1)) : nested
|
|
528
|
+
);
|
|
529
|
+
}
|
|
523
530
|
|
|
524
531
|
// src/commands/issues.ts
|
|
525
532
|
var PRIORITY_NAMES = { urgent: 1, high: 2, medium: 3, low: 4, none: 0 };
|
package/dist/cli.js
CHANGED
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
version,
|
|
71
71
|
workflowStates,
|
|
72
72
|
writeCredentials
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-CIW4OU5G.js";
|
|
74
74
|
|
|
75
75
|
// src/cli.ts
|
|
76
76
|
import { createInterface as createInterface2 } from "readline";
|
|
@@ -1391,7 +1391,7 @@ program.command("upload").description("upload a file; prints markdown to referen
|
|
|
1391
1391
|
});
|
|
1392
1392
|
});
|
|
1393
1393
|
program.command("mcp").description("run the MCP server over stdio (for agents)").action(async () => {
|
|
1394
|
-
const { startMcpServer } = await import("./server-
|
|
1394
|
+
const { startMcpServer } = await import("./server-J2V5JXFY.js");
|
|
1395
1395
|
await startMcpServer();
|
|
1396
1396
|
});
|
|
1397
1397
|
program.command("login").description("sign in via the browser (infra.one session)").option("--url <url>", "host to sign in to").option("--no-browser", "print the URL and prompt for a pasted token instead").option(
|