@vectorize-io/hindsight-coding-agents 0.8.1 → 0.8.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/README.md +6 -2
- package/dist/antigravity-hook.js +4 -1
- package/dist/antigravity-statusline.js +1 -1
- package/dist/antigravity-stop-hook.js +4 -1
- package/dist/claude-hook.js +4 -1
- package/dist/claude-sessionstart-hook.js +4 -1
- package/dist/claude-stop-hook.js +4 -1
- package/dist/cline.js +33 -28
- package/dist/codebuddy-hook.js +4 -1
- package/dist/codebuddy-sessionstart-hook.js +4 -1
- package/dist/codebuddy-stop-hook.js +4 -1
- package/dist/codex-hook.js +4 -1
- package/dist/codex-sessionstart-hook.js +4 -1
- package/dist/codex-stop-hook.js +4 -1
- package/dist/copilot-hook.js +4 -1
- package/dist/copilot-sessionstart-hook.js +4 -1
- package/dist/copilot-stop-hook.js +4 -1
- package/dist/cursor-hook.js +4 -1
- package/dist/cursor-sessionstart-hook.js +4 -1
- package/dist/cursor-stop-hook.js +4 -1
- package/dist/daemon-start.js +1 -1
- package/dist/dcode-hook.js +4 -1
- package/dist/dcode-sessionstart-hook.js +4 -1
- package/dist/dcode-stop-hook.js +4 -1
- package/dist/deepen.js +113 -31
- package/dist/devin-hook.js +4 -1
- package/dist/devin-sessionstart-hook.js +4 -1
- package/dist/devin-stop-hook.js +4 -1
- package/dist/droid-hook.js +4 -1
- package/dist/droid-sessionstart-hook.js +4 -1
- package/dist/droid-stop-hook.js +4 -1
- package/dist/dsh.js +33 -28
- package/dist/grok-hook.js +4 -1
- package/dist/grok-sessionstart-hook.js +4 -1
- package/dist/grok-stop-hook.js +4 -1
- package/dist/hindsight-seed.js +1 -1
- package/dist/index.js +33 -28
- package/dist/installer.js +4 -1
- package/dist/kilo.js +33 -28
- package/dist/kimi-hook.js +4 -1
- package/dist/kimi-sessionstart-hook.js +4 -1
- package/dist/kimi-stop-hook.js +4 -1
- package/dist/mcp-server.js +12 -4
- package/dist/opencode2.js +33 -28
- package/dist/pi.js +33 -28
- package/dist/prime-agent.js +33 -28
- package/dist/qwen-hook.js +4 -1
- package/dist/qwen-sessionstart-hook.js +4 -1
- package/dist/qwen-stop-hook.js +4 -1
- package/dist/status.js +10 -2
- package/dist/traecode-hook.js +4 -1
- package/dist/traecode-sessionstart-hook.js +4 -1
- package/dist/traecode-stop-hook.js +4 -1
- package/dist/workbuddy-hook.js +4 -1
- package/dist/workbuddy-sessionstart-hook.js +4 -1
- package/dist/workbuddy-stop-hook.js +4 -1
- package/dist/zcode-hook.js +4 -1
- package/dist/zcode-sessionstart-hook.js +4 -1
- package/dist/zcode-stop-hook.js +4 -1
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/skill/SKILL.md +6 -2
package/dist/kilo.js
CHANGED
|
@@ -656,7 +656,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
// package.json
|
|
659
|
-
var version = "0.8.
|
|
659
|
+
var version = "0.8.2";
|
|
660
660
|
|
|
661
661
|
// src/core/util.ts
|
|
662
662
|
import { accessSync, constants } from "fs";
|
|
@@ -16917,7 +16917,7 @@ function date4(params) {
|
|
|
16917
16917
|
config(en_default());
|
|
16918
16918
|
|
|
16919
16919
|
// src/core/knowledge-tools.ts
|
|
16920
|
-
import { createHash as
|
|
16920
|
+
import { createHash as createHash4 } from "crypto";
|
|
16921
16921
|
import { existsSync as existsSync4 } from "fs";
|
|
16922
16922
|
import { homedir as homedir6 } from "os";
|
|
16923
16923
|
import { join as join12 } from "path";
|
|
@@ -16928,7 +16928,33 @@ import { execFileSync as execFileSync4 } from "child_process";
|
|
|
16928
16928
|
// src/core/git.ts
|
|
16929
16929
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
16930
16930
|
import { resolve as resolve2 } from "path";
|
|
16931
|
+
|
|
16932
|
+
// src/core/uuid.ts
|
|
16933
|
+
import { createHash as createHash2 } from "crypto";
|
|
16934
|
+
var HINDSIGHT_NAMESPACE = "e75686a4-e923-4326-a0d1-358f1c6c3eb4";
|
|
16935
|
+
function uuidV5(name, namespace = HINDSIGHT_NAMESPACE) {
|
|
16936
|
+
const ns = Buffer.from(namespace.replace(/-/g, ""), "hex");
|
|
16937
|
+
if (ns.length !== 16) throw new Error(`invalid UUID namespace: ${namespace}`);
|
|
16938
|
+
const bytes = Buffer.from(
|
|
16939
|
+
createHash2("sha1").update(ns).update(Buffer.from(name, "utf8")).digest().subarray(0, 16)
|
|
16940
|
+
);
|
|
16941
|
+
bytes[6] = bytes[6] & 15 | 80;
|
|
16942
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
16943
|
+
const hex5 = bytes.toString("hex");
|
|
16944
|
+
return [
|
|
16945
|
+
hex5.slice(0, 8),
|
|
16946
|
+
hex5.slice(8, 12),
|
|
16947
|
+
hex5.slice(12, 16),
|
|
16948
|
+
hex5.slice(16, 20),
|
|
16949
|
+
hex5.slice(20)
|
|
16950
|
+
].join("-");
|
|
16951
|
+
}
|
|
16952
|
+
|
|
16953
|
+
// src/core/git.ts
|
|
16954
|
+
var US = "";
|
|
16955
|
+
var RS = "";
|
|
16931
16956
|
var GITLOG_HEAD = "gitlog-head:";
|
|
16957
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
16932
16958
|
function git(repo, ...args) {
|
|
16933
16959
|
return execFileSync2("git", ["-C", repo, "-c", "log.showSignature=false", ...args], {
|
|
16934
16960
|
encoding: "utf8",
|
|
@@ -16977,7 +17003,7 @@ async function gitLogIsCurrent(client, repo, head) {
|
|
|
16977
17003
|
|
|
16978
17004
|
// src/core/survey.ts
|
|
16979
17005
|
import { execFileSync as execFileSync3, spawn as realSpawn5 } from "child_process";
|
|
16980
|
-
import { createHash as
|
|
17006
|
+
import { createHash as createHash3 } from "crypto";
|
|
16981
17007
|
import { existsSync as existsSync3 } from "fs";
|
|
16982
17008
|
import { homedir as homedir5, tmpdir as tmpdir2 } from "os";
|
|
16983
17009
|
import { dirname as dirname7, join as join11 } from "path";
|
|
@@ -17231,7 +17257,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17231
17257
|
});
|
|
17232
17258
|
const { cfg, bankId } = resolveHostConfig(harness, repoDir);
|
|
17233
17259
|
if (cfg.disabled) return false;
|
|
17234
|
-
const key =
|
|
17260
|
+
const key = createHash3("sha256").update(JSON.stringify([cfg.apiUrl.replace(/\/+$/, ""), cfg.apiToken ?? "", bankId])).digest("hex");
|
|
17235
17261
|
const lease = acquireLease(
|
|
17236
17262
|
opts.lease?.dir ?? join11(tmpdir2(), "hindsight-coding-agent", "surveys"),
|
|
17237
17263
|
key,
|
|
@@ -17504,7 +17530,7 @@ function buildKnowledgeTools(client, bankId, opts = {}) {
|
|
|
17504
17530
|
annotations: NON_DESTRUCTIVE_WRITE_ANNOTATIONS,
|
|
17505
17531
|
handler: guarded(async ({ title, content }) => {
|
|
17506
17532
|
const slug = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
17507
|
-
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${
|
|
17533
|
+
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${createHash4("sha256").update(title).digest("hex")}` : slug;
|
|
17508
17534
|
const stamp = opts.stampFor?.();
|
|
17509
17535
|
const metadata = {
|
|
17510
17536
|
...stamp?.metadata,
|
|
@@ -17531,7 +17557,7 @@ function buildKnowledgeTools(client, bankId, opts = {}) {
|
|
|
17531
17557
|
}
|
|
17532
17558
|
|
|
17533
17559
|
// src/core/retain-cursor.ts
|
|
17534
|
-
import { createHash as
|
|
17560
|
+
import { createHash as createHash5 } from "crypto";
|
|
17535
17561
|
var PENDING_MAX_AGE_MS = 12 * 60 * 60 * 1e3;
|
|
17536
17562
|
var PENDING_MAX_BYTES = 256 * 1024;
|
|
17537
17563
|
var MAX_CURSOR_PATHS = 16;
|
|
@@ -17547,7 +17573,7 @@ function pendingReplayable(cursor, now) {
|
|
|
17547
17573
|
}
|
|
17548
17574
|
var MAX_CURSOR_OPS = 8;
|
|
17549
17575
|
function fingerprintTurns(turns, count) {
|
|
17550
|
-
const h =
|
|
17576
|
+
const h = createHash5("sha1").update(String(count));
|
|
17551
17577
|
for (let i = 0; i < count; i++) h.update("\n" + JSON.stringify(turns[i]));
|
|
17552
17578
|
return h.digest("hex");
|
|
17553
17579
|
}
|
|
@@ -17571,27 +17597,6 @@ function memoryCursorStore() {
|
|
|
17571
17597
|
};
|
|
17572
17598
|
}
|
|
17573
17599
|
|
|
17574
|
-
// src/core/uuid.ts
|
|
17575
|
-
import { createHash as createHash5 } from "crypto";
|
|
17576
|
-
var HINDSIGHT_NAMESPACE = "e75686a4-e923-4326-a0d1-358f1c6c3eb4";
|
|
17577
|
-
function uuidV5(name, namespace = HINDSIGHT_NAMESPACE) {
|
|
17578
|
-
const ns = Buffer.from(namespace.replace(/-/g, ""), "hex");
|
|
17579
|
-
if (ns.length !== 16) throw new Error(`invalid UUID namespace: ${namespace}`);
|
|
17580
|
-
const bytes = Buffer.from(
|
|
17581
|
-
createHash5("sha1").update(ns).update(Buffer.from(name, "utf8")).digest().subarray(0, 16)
|
|
17582
|
-
);
|
|
17583
|
-
bytes[6] = bytes[6] & 15 | 80;
|
|
17584
|
-
bytes[8] = bytes[8] & 63 | 128;
|
|
17585
|
-
const hex5 = bytes.toString("hex");
|
|
17586
|
-
return [
|
|
17587
|
-
hex5.slice(0, 8),
|
|
17588
|
-
hex5.slice(8, 12),
|
|
17589
|
-
hex5.slice(12, 16),
|
|
17590
|
-
hex5.slice(16, 20),
|
|
17591
|
-
hex5.slice(20)
|
|
17592
|
-
].join("-");
|
|
17593
|
-
}
|
|
17594
|
-
|
|
17595
17600
|
// src/core/chat.ts
|
|
17596
17601
|
function withRefId(refId, turns, baseTs) {
|
|
17597
17602
|
return [{ role: "system", content: `REF-ID: ${refId}`, timestamp: baseTs }, ...turns];
|
package/dist/kimi-hook.js
CHANGED
|
@@ -657,7 +657,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
// package.json
|
|
660
|
-
var version = "0.8.
|
|
660
|
+
var version = "0.8.2";
|
|
661
661
|
|
|
662
662
|
// src/core/util.ts
|
|
663
663
|
import { accessSync, constants } from "fs";
|
|
@@ -2472,6 +2472,9 @@ import { join as join11 } from "path";
|
|
|
2472
2472
|
// src/core/git.ts
|
|
2473
2473
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
2474
2474
|
import { resolve as resolve2 } from "path";
|
|
2475
|
+
var US = "";
|
|
2476
|
+
var RS = "";
|
|
2477
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
2475
2478
|
|
|
2476
2479
|
// src/core/status.ts
|
|
2477
2480
|
import { execFileSync as execFileSync4 } from "child_process";
|
|
@@ -673,7 +673,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
// package.json
|
|
676
|
-
var version = "0.8.
|
|
676
|
+
var version = "0.8.2";
|
|
677
677
|
|
|
678
678
|
// src/core/util.ts
|
|
679
679
|
import { accessSync, constants } from "fs";
|
|
@@ -2364,7 +2364,10 @@ import { join as join11 } from "path";
|
|
|
2364
2364
|
// src/core/git.ts
|
|
2365
2365
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
2366
2366
|
import { resolve as resolve2 } from "path";
|
|
2367
|
+
var US = "";
|
|
2368
|
+
var RS = "";
|
|
2367
2369
|
var GITLOG_HEAD = "gitlog-head:";
|
|
2370
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
2368
2371
|
function git(repo, ...args) {
|
|
2369
2372
|
return execFileSync2("git", ["-C", repo, "-c", "log.showSignature=false", ...args], {
|
|
2370
2373
|
encoding: "utf8",
|
package/dist/kimi-stop-hook.js
CHANGED
|
@@ -633,7 +633,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
// package.json
|
|
636
|
-
var version = "0.8.
|
|
636
|
+
var version = "0.8.2";
|
|
637
637
|
|
|
638
638
|
// src/core/util.ts
|
|
639
639
|
import { accessSync, constants } from "fs";
|
|
@@ -2766,6 +2766,9 @@ async function runRetainHook(spec, makeClient = (o) => new HindsightClient(o)) {
|
|
|
2766
2766
|
// src/core/git.ts
|
|
2767
2767
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
2768
2768
|
import { resolve as resolve2 } from "path";
|
|
2769
|
+
var US = "";
|
|
2770
|
+
var RS = "";
|
|
2771
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
2769
2772
|
|
|
2770
2773
|
// src/core/status.ts
|
|
2771
2774
|
import { execFileSync as execFileSync4 } from "child_process";
|
package/dist/mcp-server.js
CHANGED
|
@@ -31968,7 +31968,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
31968
31968
|
}
|
|
31969
31969
|
|
|
31970
31970
|
// package.json
|
|
31971
|
-
var version2 = "0.8.
|
|
31971
|
+
var version2 = "0.8.2";
|
|
31972
31972
|
|
|
31973
31973
|
// src/core/util.ts
|
|
31974
31974
|
import { accessSync, constants } from "fs";
|
|
@@ -33241,7 +33241,7 @@ function resolveHostMemory(harness, directory) {
|
|
|
33241
33241
|
}
|
|
33242
33242
|
|
|
33243
33243
|
// src/core/knowledge-tools.ts
|
|
33244
|
-
import { createHash as
|
|
33244
|
+
import { createHash as createHash4 } from "crypto";
|
|
33245
33245
|
import { existsSync as existsSync3 } from "fs";
|
|
33246
33246
|
import { homedir as homedir5 } from "os";
|
|
33247
33247
|
import { join as join10 } from "path";
|
|
@@ -33252,6 +33252,14 @@ import { execFileSync as execFileSync3 } from "child_process";
|
|
|
33252
33252
|
// src/core/git.ts
|
|
33253
33253
|
import { execFileSync } from "child_process";
|
|
33254
33254
|
import { resolve as resolve2 } from "path";
|
|
33255
|
+
|
|
33256
|
+
// src/core/uuid.ts
|
|
33257
|
+
import { createHash as createHash2 } from "crypto";
|
|
33258
|
+
|
|
33259
|
+
// src/core/git.ts
|
|
33260
|
+
var US = "";
|
|
33261
|
+
var RS = "";
|
|
33262
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
33255
33263
|
function git(repo, ...args) {
|
|
33256
33264
|
return execFileSync("git", ["-C", repo, "-c", "log.showSignature=false", ...args], {
|
|
33257
33265
|
encoding: "utf8",
|
|
@@ -33290,7 +33298,7 @@ function parsePageList(raw) {
|
|
|
33290
33298
|
|
|
33291
33299
|
// src/core/survey.ts
|
|
33292
33300
|
import { execFileSync as execFileSync2, spawn as realSpawn3 } from "child_process";
|
|
33293
|
-
import { createHash as
|
|
33301
|
+
import { createHash as createHash3 } from "crypto";
|
|
33294
33302
|
import { existsSync as existsSync2 } from "fs";
|
|
33295
33303
|
import { homedir as homedir4, tmpdir } from "os";
|
|
33296
33304
|
import { dirname as dirname5, join as join9 } from "path";
|
|
@@ -33549,7 +33557,7 @@ function buildKnowledgeTools(client, bankId, opts = {}) {
|
|
|
33549
33557
|
annotations: NON_DESTRUCTIVE_WRITE_ANNOTATIONS,
|
|
33550
33558
|
handler: guarded(async ({ title, content }) => {
|
|
33551
33559
|
const slug = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
33552
|
-
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${
|
|
33560
|
+
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${createHash4("sha256").update(title).digest("hex")}` : slug;
|
|
33553
33561
|
const stamp = opts.stampFor?.();
|
|
33554
33562
|
const metadata = {
|
|
33555
33563
|
...stamp?.metadata,
|
package/dist/opencode2.js
CHANGED
|
@@ -15167,7 +15167,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
15167
15167
|
}
|
|
15168
15168
|
|
|
15169
15169
|
// package.json
|
|
15170
|
-
var version2 = "0.8.
|
|
15170
|
+
var version2 = "0.8.2";
|
|
15171
15171
|
|
|
15172
15172
|
// src/core/util.ts
|
|
15173
15173
|
import { accessSync, constants } from "fs";
|
|
@@ -16914,7 +16914,7 @@ ${toolGuide(opts)}
|
|
|
16914
16914
|
}
|
|
16915
16915
|
|
|
16916
16916
|
// src/core/knowledge-tools.ts
|
|
16917
|
-
import { createHash as
|
|
16917
|
+
import { createHash as createHash4 } from "crypto";
|
|
16918
16918
|
import { existsSync as existsSync4 } from "fs";
|
|
16919
16919
|
import { homedir as homedir6 } from "os";
|
|
16920
16920
|
import { join as join12 } from "path";
|
|
@@ -16925,7 +16925,33 @@ import { execFileSync as execFileSync4 } from "child_process";
|
|
|
16925
16925
|
// src/core/git.ts
|
|
16926
16926
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
16927
16927
|
import { resolve as resolve2 } from "path";
|
|
16928
|
+
|
|
16929
|
+
// src/core/uuid.ts
|
|
16930
|
+
import { createHash as createHash2 } from "crypto";
|
|
16931
|
+
var HINDSIGHT_NAMESPACE = "e75686a4-e923-4326-a0d1-358f1c6c3eb4";
|
|
16932
|
+
function uuidV5(name, namespace = HINDSIGHT_NAMESPACE) {
|
|
16933
|
+
const ns = Buffer.from(namespace.replace(/-/g, ""), "hex");
|
|
16934
|
+
if (ns.length !== 16) throw new Error(`invalid UUID namespace: ${namespace}`);
|
|
16935
|
+
const bytes = Buffer.from(
|
|
16936
|
+
createHash2("sha1").update(ns).update(Buffer.from(name, "utf8")).digest().subarray(0, 16)
|
|
16937
|
+
);
|
|
16938
|
+
bytes[6] = bytes[6] & 15 | 80;
|
|
16939
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
16940
|
+
const hex5 = bytes.toString("hex");
|
|
16941
|
+
return [
|
|
16942
|
+
hex5.slice(0, 8),
|
|
16943
|
+
hex5.slice(8, 12),
|
|
16944
|
+
hex5.slice(12, 16),
|
|
16945
|
+
hex5.slice(16, 20),
|
|
16946
|
+
hex5.slice(20)
|
|
16947
|
+
].join("-");
|
|
16948
|
+
}
|
|
16949
|
+
|
|
16950
|
+
// src/core/git.ts
|
|
16951
|
+
var US = "";
|
|
16952
|
+
var RS = "";
|
|
16928
16953
|
var GITLOG_HEAD = "gitlog-head:";
|
|
16954
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
16929
16955
|
function git(repo, ...args) {
|
|
16930
16956
|
return execFileSync2("git", ["-C", repo, "-c", "log.showSignature=false", ...args], {
|
|
16931
16957
|
encoding: "utf8",
|
|
@@ -16974,7 +17000,7 @@ async function gitLogIsCurrent(client, repo, head) {
|
|
|
16974
17000
|
|
|
16975
17001
|
// src/core/survey.ts
|
|
16976
17002
|
import { execFileSync as execFileSync3, spawn as realSpawn5 } from "child_process";
|
|
16977
|
-
import { createHash as
|
|
17003
|
+
import { createHash as createHash3 } from "crypto";
|
|
16978
17004
|
import { existsSync as existsSync3 } from "fs";
|
|
16979
17005
|
import { homedir as homedir5, tmpdir as tmpdir2 } from "os";
|
|
16980
17006
|
import { dirname as dirname7, join as join11 } from "path";
|
|
@@ -17217,7 +17243,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17217
17243
|
});
|
|
17218
17244
|
const { cfg, bankId } = resolveHostConfig(harness, repoDir);
|
|
17219
17245
|
if (cfg.disabled) return false;
|
|
17220
|
-
const key =
|
|
17246
|
+
const key = createHash3("sha256").update(JSON.stringify([cfg.apiUrl.replace(/\/+$/, ""), cfg.apiToken ?? "", bankId])).digest("hex");
|
|
17221
17247
|
const lease = acquireLease(
|
|
17222
17248
|
opts.lease?.dir ?? join11(tmpdir2(), "hindsight-coding-agent", "surveys"),
|
|
17223
17249
|
key,
|
|
@@ -17490,7 +17516,7 @@ function buildKnowledgeTools(client, bankId, opts = {}) {
|
|
|
17490
17516
|
annotations: NON_DESTRUCTIVE_WRITE_ANNOTATIONS,
|
|
17491
17517
|
handler: guarded(async ({ title, content }) => {
|
|
17492
17518
|
const slug = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
17493
|
-
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${
|
|
17519
|
+
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${createHash4("sha256").update(title).digest("hex")}` : slug;
|
|
17494
17520
|
const stamp = opts.stampFor?.();
|
|
17495
17521
|
const metadata = {
|
|
17496
17522
|
...stamp?.metadata,
|
|
@@ -17517,7 +17543,7 @@ function buildKnowledgeTools(client, bankId, opts = {}) {
|
|
|
17517
17543
|
}
|
|
17518
17544
|
|
|
17519
17545
|
// src/core/retain-cursor.ts
|
|
17520
|
-
import { createHash as
|
|
17546
|
+
import { createHash as createHash5 } from "crypto";
|
|
17521
17547
|
var PENDING_MAX_AGE_MS = 12 * 60 * 60 * 1e3;
|
|
17522
17548
|
var PENDING_MAX_BYTES = 256 * 1024;
|
|
17523
17549
|
var MAX_CURSOR_PATHS = 16;
|
|
@@ -17533,7 +17559,7 @@ function pendingReplayable(cursor, now) {
|
|
|
17533
17559
|
}
|
|
17534
17560
|
var MAX_CURSOR_OPS = 8;
|
|
17535
17561
|
function fingerprintTurns(turns, count) {
|
|
17536
|
-
const h =
|
|
17562
|
+
const h = createHash5("sha1").update(String(count));
|
|
17537
17563
|
for (let i = 0; i < count; i++) h.update("\n" + JSON.stringify(turns[i]));
|
|
17538
17564
|
return h.digest("hex");
|
|
17539
17565
|
}
|
|
@@ -17557,27 +17583,6 @@ function memoryCursorStore() {
|
|
|
17557
17583
|
};
|
|
17558
17584
|
}
|
|
17559
17585
|
|
|
17560
|
-
// src/core/uuid.ts
|
|
17561
|
-
import { createHash as createHash5 } from "crypto";
|
|
17562
|
-
var HINDSIGHT_NAMESPACE = "e75686a4-e923-4326-a0d1-358f1c6c3eb4";
|
|
17563
|
-
function uuidV5(name, namespace = HINDSIGHT_NAMESPACE) {
|
|
17564
|
-
const ns = Buffer.from(namespace.replace(/-/g, ""), "hex");
|
|
17565
|
-
if (ns.length !== 16) throw new Error(`invalid UUID namespace: ${namespace}`);
|
|
17566
|
-
const bytes = Buffer.from(
|
|
17567
|
-
createHash5("sha1").update(ns).update(Buffer.from(name, "utf8")).digest().subarray(0, 16)
|
|
17568
|
-
);
|
|
17569
|
-
bytes[6] = bytes[6] & 15 | 80;
|
|
17570
|
-
bytes[8] = bytes[8] & 63 | 128;
|
|
17571
|
-
const hex5 = bytes.toString("hex");
|
|
17572
|
-
return [
|
|
17573
|
-
hex5.slice(0, 8),
|
|
17574
|
-
hex5.slice(8, 12),
|
|
17575
|
-
hex5.slice(12, 16),
|
|
17576
|
-
hex5.slice(16, 20),
|
|
17577
|
-
hex5.slice(20)
|
|
17578
|
-
].join("-");
|
|
17579
|
-
}
|
|
17580
|
-
|
|
17581
17586
|
// src/core/chat.ts
|
|
17582
17587
|
function withRefId(refId, turns, baseTs) {
|
|
17583
17588
|
return [{ role: "system", content: `REF-ID: ${refId}`, timestamp: baseTs }, ...turns];
|
package/dist/pi.js
CHANGED
|
@@ -15167,7 +15167,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
15167
15167
|
}
|
|
15168
15168
|
|
|
15169
15169
|
// package.json
|
|
15170
|
-
var version2 = "0.8.
|
|
15170
|
+
var version2 = "0.8.2";
|
|
15171
15171
|
|
|
15172
15172
|
// src/core/util.ts
|
|
15173
15173
|
import { accessSync, constants } from "fs";
|
|
@@ -16914,7 +16914,7 @@ ${toolGuide(opts)}
|
|
|
16914
16914
|
}
|
|
16915
16915
|
|
|
16916
16916
|
// src/core/knowledge-tools.ts
|
|
16917
|
-
import { createHash as
|
|
16917
|
+
import { createHash as createHash4 } from "crypto";
|
|
16918
16918
|
import { existsSync as existsSync4 } from "fs";
|
|
16919
16919
|
import { homedir as homedir6 } from "os";
|
|
16920
16920
|
import { join as join12 } from "path";
|
|
@@ -16925,7 +16925,33 @@ import { execFileSync as execFileSync4 } from "child_process";
|
|
|
16925
16925
|
// src/core/git.ts
|
|
16926
16926
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
16927
16927
|
import { resolve as resolve2 } from "path";
|
|
16928
|
+
|
|
16929
|
+
// src/core/uuid.ts
|
|
16930
|
+
import { createHash as createHash2 } from "crypto";
|
|
16931
|
+
var HINDSIGHT_NAMESPACE = "e75686a4-e923-4326-a0d1-358f1c6c3eb4";
|
|
16932
|
+
function uuidV5(name, namespace = HINDSIGHT_NAMESPACE) {
|
|
16933
|
+
const ns = Buffer.from(namespace.replace(/-/g, ""), "hex");
|
|
16934
|
+
if (ns.length !== 16) throw new Error(`invalid UUID namespace: ${namespace}`);
|
|
16935
|
+
const bytes = Buffer.from(
|
|
16936
|
+
createHash2("sha1").update(ns).update(Buffer.from(name, "utf8")).digest().subarray(0, 16)
|
|
16937
|
+
);
|
|
16938
|
+
bytes[6] = bytes[6] & 15 | 80;
|
|
16939
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
16940
|
+
const hex3 = bytes.toString("hex");
|
|
16941
|
+
return [
|
|
16942
|
+
hex3.slice(0, 8),
|
|
16943
|
+
hex3.slice(8, 12),
|
|
16944
|
+
hex3.slice(12, 16),
|
|
16945
|
+
hex3.slice(16, 20),
|
|
16946
|
+
hex3.slice(20)
|
|
16947
|
+
].join("-");
|
|
16948
|
+
}
|
|
16949
|
+
|
|
16950
|
+
// src/core/git.ts
|
|
16951
|
+
var US = "";
|
|
16952
|
+
var RS = "";
|
|
16928
16953
|
var GITLOG_HEAD = "gitlog-head:";
|
|
16954
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
16929
16955
|
function git(repo, ...args) {
|
|
16930
16956
|
return execFileSync2("git", ["-C", repo, "-c", "log.showSignature=false", ...args], {
|
|
16931
16957
|
encoding: "utf8",
|
|
@@ -16974,7 +17000,7 @@ async function gitLogIsCurrent(client, repo, head) {
|
|
|
16974
17000
|
|
|
16975
17001
|
// src/core/survey.ts
|
|
16976
17002
|
import { execFileSync as execFileSync3, spawn as realSpawn5 } from "child_process";
|
|
16977
|
-
import { createHash as
|
|
17003
|
+
import { createHash as createHash3 } from "crypto";
|
|
16978
17004
|
import { existsSync as existsSync3 } from "fs";
|
|
16979
17005
|
import { homedir as homedir5, tmpdir as tmpdir2 } from "os";
|
|
16980
17006
|
import { dirname as dirname7, join as join11 } from "path";
|
|
@@ -17217,7 +17243,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17217
17243
|
});
|
|
17218
17244
|
const { cfg, bankId } = resolveHostConfig(harness, repoDir);
|
|
17219
17245
|
if (cfg.disabled) return false;
|
|
17220
|
-
const key =
|
|
17246
|
+
const key = createHash3("sha256").update(JSON.stringify([cfg.apiUrl.replace(/\/+$/, ""), cfg.apiToken ?? "", bankId])).digest("hex");
|
|
17221
17247
|
const lease = acquireLease(
|
|
17222
17248
|
opts.lease?.dir ?? join11(tmpdir2(), "hindsight-coding-agent", "surveys"),
|
|
17223
17249
|
key,
|
|
@@ -17490,7 +17516,7 @@ function buildKnowledgeTools(client, bankId, opts = {}) {
|
|
|
17490
17516
|
annotations: NON_DESTRUCTIVE_WRITE_ANNOTATIONS,
|
|
17491
17517
|
handler: guarded(async ({ title, content }) => {
|
|
17492
17518
|
const slug = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
17493
|
-
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${
|
|
17519
|
+
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${createHash4("sha256").update(title).digest("hex")}` : slug;
|
|
17494
17520
|
const stamp = opts.stampFor?.();
|
|
17495
17521
|
const metadata = {
|
|
17496
17522
|
...stamp?.metadata,
|
|
@@ -17517,7 +17543,7 @@ function buildKnowledgeTools(client, bankId, opts = {}) {
|
|
|
17517
17543
|
}
|
|
17518
17544
|
|
|
17519
17545
|
// src/core/retain-cursor.ts
|
|
17520
|
-
import { createHash as
|
|
17546
|
+
import { createHash as createHash5 } from "crypto";
|
|
17521
17547
|
var PENDING_MAX_AGE_MS = 12 * 60 * 60 * 1e3;
|
|
17522
17548
|
var PENDING_MAX_BYTES = 256 * 1024;
|
|
17523
17549
|
var MAX_CURSOR_PATHS = 16;
|
|
@@ -17533,7 +17559,7 @@ function pendingReplayable(cursor, now) {
|
|
|
17533
17559
|
}
|
|
17534
17560
|
var MAX_CURSOR_OPS = 8;
|
|
17535
17561
|
function fingerprintTurns(turns, count) {
|
|
17536
|
-
const h =
|
|
17562
|
+
const h = createHash5("sha1").update(String(count));
|
|
17537
17563
|
for (let i = 0; i < count; i++) h.update("\n" + JSON.stringify(turns[i]));
|
|
17538
17564
|
return h.digest("hex");
|
|
17539
17565
|
}
|
|
@@ -17557,27 +17583,6 @@ function memoryCursorStore() {
|
|
|
17557
17583
|
};
|
|
17558
17584
|
}
|
|
17559
17585
|
|
|
17560
|
-
// src/core/uuid.ts
|
|
17561
|
-
import { createHash as createHash5 } from "crypto";
|
|
17562
|
-
var HINDSIGHT_NAMESPACE = "e75686a4-e923-4326-a0d1-358f1c6c3eb4";
|
|
17563
|
-
function uuidV5(name, namespace = HINDSIGHT_NAMESPACE) {
|
|
17564
|
-
const ns = Buffer.from(namespace.replace(/-/g, ""), "hex");
|
|
17565
|
-
if (ns.length !== 16) throw new Error(`invalid UUID namespace: ${namespace}`);
|
|
17566
|
-
const bytes = Buffer.from(
|
|
17567
|
-
createHash5("sha1").update(ns).update(Buffer.from(name, "utf8")).digest().subarray(0, 16)
|
|
17568
|
-
);
|
|
17569
|
-
bytes[6] = bytes[6] & 15 | 80;
|
|
17570
|
-
bytes[8] = bytes[8] & 63 | 128;
|
|
17571
|
-
const hex3 = bytes.toString("hex");
|
|
17572
|
-
return [
|
|
17573
|
-
hex3.slice(0, 8),
|
|
17574
|
-
hex3.slice(8, 12),
|
|
17575
|
-
hex3.slice(12, 16),
|
|
17576
|
-
hex3.slice(16, 20),
|
|
17577
|
-
hex3.slice(20)
|
|
17578
|
-
].join("-");
|
|
17579
|
-
}
|
|
17580
|
-
|
|
17581
17586
|
// src/core/chat.ts
|
|
17582
17587
|
function withRefId(refId, turns, baseTs) {
|
|
17583
17588
|
return [{ role: "system", content: `REF-ID: ${refId}`, timestamp: baseTs }, ...turns];
|
package/dist/prime-agent.js
CHANGED
|
@@ -15167,7 +15167,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
15167
15167
|
}
|
|
15168
15168
|
|
|
15169
15169
|
// package.json
|
|
15170
|
-
var version2 = "0.8.
|
|
15170
|
+
var version2 = "0.8.2";
|
|
15171
15171
|
|
|
15172
15172
|
// src/core/util.ts
|
|
15173
15173
|
import { accessSync, constants } from "fs";
|
|
@@ -16914,7 +16914,7 @@ ${toolGuide(opts)}
|
|
|
16914
16914
|
}
|
|
16915
16915
|
|
|
16916
16916
|
// src/core/knowledge-tools.ts
|
|
16917
|
-
import { createHash as
|
|
16917
|
+
import { createHash as createHash4 } from "crypto";
|
|
16918
16918
|
import { existsSync as existsSync4 } from "fs";
|
|
16919
16919
|
import { homedir as homedir6 } from "os";
|
|
16920
16920
|
import { join as join12 } from "path";
|
|
@@ -16925,7 +16925,33 @@ import { execFileSync as execFileSync4 } from "child_process";
|
|
|
16925
16925
|
// src/core/git.ts
|
|
16926
16926
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
16927
16927
|
import { resolve as resolve2 } from "path";
|
|
16928
|
+
|
|
16929
|
+
// src/core/uuid.ts
|
|
16930
|
+
import { createHash as createHash2 } from "crypto";
|
|
16931
|
+
var HINDSIGHT_NAMESPACE = "e75686a4-e923-4326-a0d1-358f1c6c3eb4";
|
|
16932
|
+
function uuidV5(name, namespace = HINDSIGHT_NAMESPACE) {
|
|
16933
|
+
const ns = Buffer.from(namespace.replace(/-/g, ""), "hex");
|
|
16934
|
+
if (ns.length !== 16) throw new Error(`invalid UUID namespace: ${namespace}`);
|
|
16935
|
+
const bytes = Buffer.from(
|
|
16936
|
+
createHash2("sha1").update(ns).update(Buffer.from(name, "utf8")).digest().subarray(0, 16)
|
|
16937
|
+
);
|
|
16938
|
+
bytes[6] = bytes[6] & 15 | 80;
|
|
16939
|
+
bytes[8] = bytes[8] & 63 | 128;
|
|
16940
|
+
const hex3 = bytes.toString("hex");
|
|
16941
|
+
return [
|
|
16942
|
+
hex3.slice(0, 8),
|
|
16943
|
+
hex3.slice(8, 12),
|
|
16944
|
+
hex3.slice(12, 16),
|
|
16945
|
+
hex3.slice(16, 20),
|
|
16946
|
+
hex3.slice(20)
|
|
16947
|
+
].join("-");
|
|
16948
|
+
}
|
|
16949
|
+
|
|
16950
|
+
// src/core/git.ts
|
|
16951
|
+
var US = "";
|
|
16952
|
+
var RS = "";
|
|
16928
16953
|
var GITLOG_HEAD = "gitlog-head:";
|
|
16954
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
16929
16955
|
function git(repo, ...args) {
|
|
16930
16956
|
return execFileSync2("git", ["-C", repo, "-c", "log.showSignature=false", ...args], {
|
|
16931
16957
|
encoding: "utf8",
|
|
@@ -16974,7 +17000,7 @@ async function gitLogIsCurrent(client, repo, head) {
|
|
|
16974
17000
|
|
|
16975
17001
|
// src/core/survey.ts
|
|
16976
17002
|
import { execFileSync as execFileSync3, spawn as realSpawn5 } from "child_process";
|
|
16977
|
-
import { createHash as
|
|
17003
|
+
import { createHash as createHash3 } from "crypto";
|
|
16978
17004
|
import { existsSync as existsSync3 } from "fs";
|
|
16979
17005
|
import { homedir as homedir5, tmpdir as tmpdir2 } from "os";
|
|
16980
17006
|
import { dirname as dirname7, join as join11 } from "path";
|
|
@@ -17217,7 +17243,7 @@ async function startCodebaseSurvey(repoDir, opts = {}) {
|
|
|
17217
17243
|
});
|
|
17218
17244
|
const { cfg, bankId } = resolveHostConfig(harness, repoDir);
|
|
17219
17245
|
if (cfg.disabled) return false;
|
|
17220
|
-
const key =
|
|
17246
|
+
const key = createHash3("sha256").update(JSON.stringify([cfg.apiUrl.replace(/\/+$/, ""), cfg.apiToken ?? "", bankId])).digest("hex");
|
|
17221
17247
|
const lease = acquireLease(
|
|
17222
17248
|
opts.lease?.dir ?? join11(tmpdir2(), "hindsight-coding-agent", "surveys"),
|
|
17223
17249
|
key,
|
|
@@ -17490,7 +17516,7 @@ function buildKnowledgeTools(client, bankId, opts = {}) {
|
|
|
17490
17516
|
annotations: NON_DESTRUCTIVE_WRITE_ANNOTATIONS,
|
|
17491
17517
|
handler: guarded(async ({ title, content }) => {
|
|
17492
17518
|
const slug = title.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
|
|
17493
|
-
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${
|
|
17519
|
+
const docId = /[^\x00-\x7f]/.test(title) || !slug ? `${slug || "doc"}--${createHash4("sha256").update(title).digest("hex")}` : slug;
|
|
17494
17520
|
const stamp = opts.stampFor?.();
|
|
17495
17521
|
const metadata = {
|
|
17496
17522
|
...stamp?.metadata,
|
|
@@ -17517,7 +17543,7 @@ function buildKnowledgeTools(client, bankId, opts = {}) {
|
|
|
17517
17543
|
}
|
|
17518
17544
|
|
|
17519
17545
|
// src/core/retain-cursor.ts
|
|
17520
|
-
import { createHash as
|
|
17546
|
+
import { createHash as createHash5 } from "crypto";
|
|
17521
17547
|
var PENDING_MAX_AGE_MS = 12 * 60 * 60 * 1e3;
|
|
17522
17548
|
var PENDING_MAX_BYTES = 256 * 1024;
|
|
17523
17549
|
var MAX_CURSOR_PATHS = 16;
|
|
@@ -17533,7 +17559,7 @@ function pendingReplayable(cursor, now) {
|
|
|
17533
17559
|
}
|
|
17534
17560
|
var MAX_CURSOR_OPS = 8;
|
|
17535
17561
|
function fingerprintTurns(turns, count) {
|
|
17536
|
-
const h =
|
|
17562
|
+
const h = createHash5("sha1").update(String(count));
|
|
17537
17563
|
for (let i = 0; i < count; i++) h.update("\n" + JSON.stringify(turns[i]));
|
|
17538
17564
|
return h.digest("hex");
|
|
17539
17565
|
}
|
|
@@ -17557,27 +17583,6 @@ function memoryCursorStore() {
|
|
|
17557
17583
|
};
|
|
17558
17584
|
}
|
|
17559
17585
|
|
|
17560
|
-
// src/core/uuid.ts
|
|
17561
|
-
import { createHash as createHash5 } from "crypto";
|
|
17562
|
-
var HINDSIGHT_NAMESPACE = "e75686a4-e923-4326-a0d1-358f1c6c3eb4";
|
|
17563
|
-
function uuidV5(name, namespace = HINDSIGHT_NAMESPACE) {
|
|
17564
|
-
const ns = Buffer.from(namespace.replace(/-/g, ""), "hex");
|
|
17565
|
-
if (ns.length !== 16) throw new Error(`invalid UUID namespace: ${namespace}`);
|
|
17566
|
-
const bytes = Buffer.from(
|
|
17567
|
-
createHash5("sha1").update(ns).update(Buffer.from(name, "utf8")).digest().subarray(0, 16)
|
|
17568
|
-
);
|
|
17569
|
-
bytes[6] = bytes[6] & 15 | 80;
|
|
17570
|
-
bytes[8] = bytes[8] & 63 | 128;
|
|
17571
|
-
const hex3 = bytes.toString("hex");
|
|
17572
|
-
return [
|
|
17573
|
-
hex3.slice(0, 8),
|
|
17574
|
-
hex3.slice(8, 12),
|
|
17575
|
-
hex3.slice(12, 16),
|
|
17576
|
-
hex3.slice(16, 20),
|
|
17577
|
-
hex3.slice(20)
|
|
17578
|
-
].join("-");
|
|
17579
|
-
}
|
|
17580
|
-
|
|
17581
17586
|
// src/core/chat.ts
|
|
17582
17587
|
function withRefId(refId, turns, baseTs) {
|
|
17583
17588
|
return [{ role: "system", content: `REF-ID: ${refId}`, timestamp: baseTs }, ...turns];
|
package/dist/qwen-hook.js
CHANGED
|
@@ -657,7 +657,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
// package.json
|
|
660
|
-
var version = "0.8.
|
|
660
|
+
var version = "0.8.2";
|
|
661
661
|
|
|
662
662
|
// src/core/util.ts
|
|
663
663
|
import { accessSync, constants } from "fs";
|
|
@@ -2472,6 +2472,9 @@ import { join as join11 } from "path";
|
|
|
2472
2472
|
// src/core/git.ts
|
|
2473
2473
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
2474
2474
|
import { resolve as resolve2 } from "path";
|
|
2475
|
+
var US = "";
|
|
2476
|
+
var RS = "";
|
|
2477
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
2475
2478
|
|
|
2476
2479
|
// src/core/status.ts
|
|
2477
2480
|
import { execFileSync as execFileSync4 } from "child_process";
|
|
@@ -673,7 +673,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
// package.json
|
|
676
|
-
var version = "0.8.
|
|
676
|
+
var version = "0.8.2";
|
|
677
677
|
|
|
678
678
|
// src/core/util.ts
|
|
679
679
|
import { accessSync, constants } from "fs";
|
|
@@ -2364,7 +2364,10 @@ import { join as join11 } from "path";
|
|
|
2364
2364
|
// src/core/git.ts
|
|
2365
2365
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
2366
2366
|
import { resolve as resolve2 } from "path";
|
|
2367
|
+
var US = "";
|
|
2368
|
+
var RS = "";
|
|
2367
2369
|
var GITLOG_HEAD = "gitlog-head:";
|
|
2370
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
2368
2371
|
function git(repo, ...args) {
|
|
2369
2372
|
return execFileSync2("git", ["-C", repo, "-c", "log.showSignature=false", ...args], {
|
|
2370
2373
|
encoding: "utf8",
|
package/dist/qwen-stop-hook.js
CHANGED
|
@@ -633,7 +633,7 @@ function codingBankManifest(overrides, mode = DEFAULT_RETAIN_EXTRACTION_MODE, de
|
|
|
633
633
|
}
|
|
634
634
|
|
|
635
635
|
// package.json
|
|
636
|
-
var version = "0.8.
|
|
636
|
+
var version = "0.8.2";
|
|
637
637
|
|
|
638
638
|
// src/core/util.ts
|
|
639
639
|
import { accessSync, constants } from "fs";
|
|
@@ -2766,6 +2766,9 @@ async function runRetainHook(spec, makeClient = (o) => new HindsightClient(o)) {
|
|
|
2766
2766
|
// src/core/git.ts
|
|
2767
2767
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
2768
2768
|
import { resolve as resolve2 } from "path";
|
|
2769
|
+
var US = "";
|
|
2770
|
+
var RS = "";
|
|
2771
|
+
var GITLOG_FORMAT = `--format=%h${US}%ad${US}%an${US}%s${US}%b${RS}`;
|
|
2769
2772
|
|
|
2770
2773
|
// src/core/status.ts
|
|
2771
2774
|
import { execFileSync as execFileSync4 } from "child_process";
|