@mickey-kras/hindsight-memory-router-coding-agents 0.8.7 → 0.8.10
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/DEVIATIONS.md +2 -1
- package/dist/antigravity-hook.js +1 -1
- package/dist/antigravity-statusline.js +1 -1
- package/dist/antigravity-stop-hook.js +1 -1
- package/dist/claude-hook.js +1 -1
- package/dist/claude-sessionstart-hook.js +1 -1
- package/dist/claude-stop-hook.js +1 -1
- package/dist/cline.js +1 -1
- package/dist/codebuddy-hook.js +1 -1
- package/dist/codebuddy-sessionstart-hook.js +1 -1
- package/dist/codebuddy-stop-hook.js +1 -1
- package/dist/codex-hook.js +1 -1
- package/dist/codex-sessionstart-hook.js +1 -1
- package/dist/codex-stop-hook.js +1 -1
- package/dist/copilot-hook.js +1 -1
- package/dist/copilot-sessionstart-hook.js +1 -1
- package/dist/copilot-stop-hook.js +1 -1
- package/dist/cursor-hook.js +1 -1
- package/dist/cursor-sessionstart-hook.js +1 -1
- package/dist/cursor-stop-hook.js +1 -1
- package/dist/dcode-hook.js +1 -1
- package/dist/dcode-sessionstart-hook.js +1 -1
- package/dist/dcode-stop-hook.js +1 -1
- package/dist/deepen.js +1 -1
- package/dist/devin-hook.js +1 -1
- package/dist/devin-sessionstart-hook.js +1 -1
- package/dist/devin-stop-hook.js +1 -1
- package/dist/droid-hook.js +1 -1
- package/dist/droid-sessionstart-hook.js +1 -1
- package/dist/droid-stop-hook.js +1 -1
- package/dist/dsh.js +1 -1
- package/dist/grok-hook.js +1 -1
- package/dist/grok-sessionstart-hook.js +1 -1
- package/dist/grok-stop-hook.js +1 -1
- package/dist/hindsight-seed.js +1 -1
- package/dist/index.js +2248 -14664
- package/dist/installer.js +1 -1
- package/dist/kilo.js +2248 -14664
- package/dist/kimi-hook.js +1 -1
- package/dist/kimi-sessionstart-hook.js +1 -1
- package/dist/kimi-stop-hook.js +1 -1
- package/dist/mcp-server.js +75 -19
- package/dist/opencode2.js +2250 -14666
- package/dist/pi.js +1 -1
- package/dist/prime-agent.js +1 -1
- package/dist/qwen-hook.js +1 -1
- package/dist/qwen-sessionstart-hook.js +1 -1
- package/dist/qwen-stop-hook.js +1 -1
- package/dist/status.js +1 -1
- package/dist/traecode-hook.js +1 -1
- package/dist/traecode-sessionstart-hook.js +1 -1
- package/dist/traecode-stop-hook.js +1 -1
- package/dist/workbuddy-hook.js +1 -1
- package/dist/workbuddy-sessionstart-hook.js +1 -1
- package/dist/workbuddy-stop-hook.js +1 -1
- package/dist/zcode-hook.js +1 -1
- package/dist/zcode-sessionstart-hook.js +1 -1
- package/dist/zcode-stop-hook.js +1 -1
- package/npm-shrinkwrap.json +208 -203
- package/package.json +6 -3
package/dist/kimi-hook.js
CHANGED
package/dist/kimi-stop-hook.js
CHANGED
package/dist/mcp-server.js
CHANGED
|
@@ -3337,6 +3337,37 @@ var require_utils = __commonJS({
|
|
|
3337
3337
|
}
|
|
3338
3338
|
return output2.join("");
|
|
3339
3339
|
}
|
|
3340
|
+
function removeDotSegmentsRelative(path) {
|
|
3341
|
+
if (path === "" || path[0] === "/") {
|
|
3342
|
+
return removeDotSegments(path);
|
|
3343
|
+
}
|
|
3344
|
+
const segments = path.split("/");
|
|
3345
|
+
const last = segments.length - 1;
|
|
3346
|
+
const output2 = [];
|
|
3347
|
+
let trailingDirectory = false;
|
|
3348
|
+
for (let i = 0; i <= last; i++) {
|
|
3349
|
+
const segment = segments[i];
|
|
3350
|
+
if (segment === "." || segment === "..") {
|
|
3351
|
+
if (segment === "..") {
|
|
3352
|
+
if (output2.length !== 0 && output2[output2.length - 1] !== "..") {
|
|
3353
|
+
output2.pop();
|
|
3354
|
+
} else {
|
|
3355
|
+
output2.push("..");
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
trailingDirectory = i === last;
|
|
3359
|
+
} else {
|
|
3360
|
+
output2.push(segment);
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
if (trailingDirectory && output2[output2.length - 1] !== "..") {
|
|
3364
|
+
output2.push("");
|
|
3365
|
+
}
|
|
3366
|
+
if (output2.length === 0 || output2[0] === "" || output2[0].includes(":")) {
|
|
3367
|
+
output2.unshift(".");
|
|
3368
|
+
}
|
|
3369
|
+
return output2.join("/");
|
|
3370
|
+
}
|
|
3340
3371
|
var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
|
|
3341
3372
|
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
3342
3373
|
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
@@ -3597,6 +3628,7 @@ var require_utils = __commonJS({
|
|
|
3597
3628
|
encodeFragment,
|
|
3598
3629
|
escapePreservingEscapes,
|
|
3599
3630
|
removeDotSegments,
|
|
3631
|
+
removeDotSegmentsRelative,
|
|
3600
3632
|
isIPv4,
|
|
3601
3633
|
isUUID,
|
|
3602
3634
|
normalizeIPv6,
|
|
@@ -3820,16 +3852,18 @@ var require_schemes = __commonJS({
|
|
|
3820
3852
|
var require_fast_uri = __commonJS({
|
|
3821
3853
|
"node_modules/fast-uri/index.js"(exports, module) {
|
|
3822
3854
|
"use strict";
|
|
3823
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3855
|
+
var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3824
3856
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3825
3857
|
var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
|
|
3826
3858
|
var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3859
|
+
var MALFORMED_HOST_ERROR = "URI host is malformed.";
|
|
3860
|
+
var FORBIDDEN_DOMAIN_HOST_CHARACTER = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
|
|
3861
|
+
function validateScheme(scheme) {
|
|
3862
|
+
const stringScheme = String(scheme);
|
|
3863
|
+
if (!VALID_SCHEME.test(stringScheme)) {
|
|
3830
3864
|
throw new TypeError(MALFORMED_SCHEME_ERROR);
|
|
3831
3865
|
}
|
|
3832
|
-
return
|
|
3866
|
+
return stringScheme;
|
|
3833
3867
|
}
|
|
3834
3868
|
function normalize2(uri, options) {
|
|
3835
3869
|
if (typeof uri === "string") {
|
|
@@ -3866,6 +3900,9 @@ var require_fast_uri = __commonJS({
|
|
|
3866
3900
|
const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved2.scheme);
|
|
3867
3901
|
const resolvedHost = resolved2.host;
|
|
3868
3902
|
const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
|
|
3903
|
+
if (hasForbiddenDomainHost(resolved2, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {
|
|
3904
|
+
throw new Error(MALFORMED_HOST_ERROR);
|
|
3905
|
+
}
|
|
3869
3906
|
canonicalizeHost(resolved2, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
|
|
3870
3907
|
const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(resolvedHost);
|
|
3871
3908
|
if (resolved2.error && !encodedASCIIHost) {
|
|
@@ -3907,14 +3944,15 @@ var require_fast_uri = __commonJS({
|
|
|
3907
3944
|
if (relative.path[0] === "/") {
|
|
3908
3945
|
target.path = removeDotSegments(relative.path);
|
|
3909
3946
|
} else {
|
|
3910
|
-
|
|
3947
|
+
const baseHasAuthority = base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0;
|
|
3948
|
+
if (baseHasAuthority && !base.path) {
|
|
3911
3949
|
target.path = "/" + relative.path;
|
|
3912
3950
|
} else if (!base.path) {
|
|
3913
3951
|
target.path = relative.path;
|
|
3914
3952
|
} else {
|
|
3915
3953
|
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
3916
3954
|
}
|
|
3917
|
-
target.path = removeDotSegments(target.path);
|
|
3955
|
+
target.path = base.scheme === void 0 && !baseHasAuthority && target.path[0] !== "/" ? removeDotSegmentsRelative(target.path) : removeDotSegments(target.path);
|
|
3918
3956
|
}
|
|
3919
3957
|
target.query = relative.query;
|
|
3920
3958
|
}
|
|
@@ -3952,12 +3990,13 @@ var require_fast_uri = __commonJS({
|
|
|
3952
3990
|
const options = Object.assign({}, opts);
|
|
3953
3991
|
const uriTokens = [];
|
|
3954
3992
|
if (component.scheme) {
|
|
3955
|
-
component.scheme =
|
|
3993
|
+
component.scheme = validateScheme(component.scheme);
|
|
3956
3994
|
}
|
|
3957
3995
|
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
3958
3996
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
3959
3997
|
const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
|
|
3960
|
-
const
|
|
3998
|
+
const schemelessReference = (component.scheme === void 0 || options.reference === "suffix") && !hasAuthority;
|
|
3999
|
+
const pathNoScheme = !options.skipEscape && schemelessReference;
|
|
3961
4000
|
if (component.path !== void 0) {
|
|
3962
4001
|
if (!options.skipEscape) {
|
|
3963
4002
|
component.path = serializePathEncoding(component.path, pathNoScheme);
|
|
@@ -3966,7 +4005,7 @@ var require_fast_uri = __commonJS({
|
|
|
3966
4005
|
}
|
|
3967
4006
|
}
|
|
3968
4007
|
if (options.reference !== "suffix" && component.scheme) {
|
|
3969
|
-
component.scheme =
|
|
4008
|
+
component.scheme = validateScheme(component.scheme);
|
|
3970
4009
|
uriTokens.push(component.scheme, ":");
|
|
3971
4010
|
}
|
|
3972
4011
|
const authority = recomposeAuthority(component);
|
|
@@ -3982,9 +4021,9 @@ var require_fast_uri = __commonJS({
|
|
|
3982
4021
|
if (component.path !== void 0) {
|
|
3983
4022
|
let s = component.path;
|
|
3984
4023
|
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
3985
|
-
s = removeDotSegments(s);
|
|
4024
|
+
s = schemelessReference && s[0] !== "/" ? removeDotSegmentsRelative(s) : removeDotSegments(s);
|
|
3986
4025
|
}
|
|
3987
|
-
if (
|
|
4026
|
+
if (schemelessReference) {
|
|
3988
4027
|
s = serializePathEncoding(s, true);
|
|
3989
4028
|
}
|
|
3990
4029
|
if (authority === void 0 && s[0] === "/" && s[1] === "/") {
|
|
@@ -4031,16 +4070,34 @@ var require_fast_uri = __commonJS({
|
|
|
4031
4070
|
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
4032
4071
|
}
|
|
4033
4072
|
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
4073
|
+
if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {
|
|
4074
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4075
|
+
return true;
|
|
4076
|
+
}
|
|
4034
4077
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4078
|
+
let url2;
|
|
4035
4079
|
try {
|
|
4036
|
-
|
|
4080
|
+
url2 = new URL("http://" + parsed.host);
|
|
4037
4081
|
} catch (e) {
|
|
4038
4082
|
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
4039
4083
|
return true;
|
|
4040
4084
|
}
|
|
4085
|
+
if (!isHostOnlyURL(url2)) {
|
|
4086
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4087
|
+
return true;
|
|
4088
|
+
}
|
|
4089
|
+
parsed.host = url2.hostname;
|
|
4041
4090
|
}
|
|
4042
4091
|
return false;
|
|
4043
4092
|
}
|
|
4093
|
+
function hasForbiddenDomainHost(parsed, options, schemeHandler, isIP) {
|
|
4094
|
+
return Boolean(
|
|
4095
|
+
parsed.host && isIP === false && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && FORBIDDEN_DOMAIN_HOST_CHARACTER.test(parsed.host)
|
|
4096
|
+
);
|
|
4097
|
+
}
|
|
4098
|
+
function isHostOnlyURL(url2) {
|
|
4099
|
+
return url2.username === "" && url2.password === "" && url2.port === "" && url2.pathname === "/" && url2.search === "" && url2.hash === "" && url2.hostname !== "";
|
|
4100
|
+
}
|
|
4044
4101
|
function parseWithStatus(uri, opts) {
|
|
4045
4102
|
const options = Object.assign({}, opts);
|
|
4046
4103
|
const parsed = {
|
|
@@ -4095,9 +4152,8 @@ var require_fast_uri = __commonJS({
|
|
|
4095
4152
|
parsed.query = matches[7];
|
|
4096
4153
|
parsed.fragment = matches[8];
|
|
4097
4154
|
if (parsed.scheme !== void 0) {
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
parsed.scheme = decodedScheme.toLowerCase();
|
|
4155
|
+
if (VALID_SCHEME.test(parsed.scheme)) {
|
|
4156
|
+
parsed.scheme = parsed.scheme.toLowerCase();
|
|
4101
4157
|
} else {
|
|
4102
4158
|
parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
|
|
4103
4159
|
malformedScheme = true;
|
|
@@ -4125,7 +4181,7 @@ var require_fast_uri = __commonJS({
|
|
|
4125
4181
|
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
4126
4182
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
4127
4183
|
if (malformedIPLiteral) {
|
|
4128
|
-
parsed.error = parsed.error ||
|
|
4184
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4129
4185
|
malformedAuthorityOrPort = true;
|
|
4130
4186
|
}
|
|
4131
4187
|
} else {
|
|
@@ -4153,7 +4209,7 @@ var require_fast_uri = __commonJS({
|
|
|
4153
4209
|
if (!isIP) {
|
|
4154
4210
|
host = normalizePercentEncoding(host.toLowerCase());
|
|
4155
4211
|
}
|
|
4156
|
-
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
4212
|
+
parsed.host = isIP || options.scheme !== "null" ? reescapeHostDelimiters(host, isIP) : host;
|
|
4157
4213
|
}
|
|
4158
4214
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4159
4215
|
if (parsed.path) {
|
|
@@ -37875,7 +37931,7 @@ var PLUGIN_GOVERNED_BANK_FIELDS = [
|
|
|
37875
37931
|
];
|
|
37876
37932
|
|
|
37877
37933
|
// package.json
|
|
37878
|
-
var version2 = "0.8.
|
|
37934
|
+
var version2 = "0.8.10";
|
|
37879
37935
|
|
|
37880
37936
|
// src/core/util.ts
|
|
37881
37937
|
import { accessSync, constants } from "fs";
|