@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.
Files changed (60) hide show
  1. package/DEVIATIONS.md +2 -1
  2. package/dist/antigravity-hook.js +1 -1
  3. package/dist/antigravity-statusline.js +1 -1
  4. package/dist/antigravity-stop-hook.js +1 -1
  5. package/dist/claude-hook.js +1 -1
  6. package/dist/claude-sessionstart-hook.js +1 -1
  7. package/dist/claude-stop-hook.js +1 -1
  8. package/dist/cline.js +1 -1
  9. package/dist/codebuddy-hook.js +1 -1
  10. package/dist/codebuddy-sessionstart-hook.js +1 -1
  11. package/dist/codebuddy-stop-hook.js +1 -1
  12. package/dist/codex-hook.js +1 -1
  13. package/dist/codex-sessionstart-hook.js +1 -1
  14. package/dist/codex-stop-hook.js +1 -1
  15. package/dist/copilot-hook.js +1 -1
  16. package/dist/copilot-sessionstart-hook.js +1 -1
  17. package/dist/copilot-stop-hook.js +1 -1
  18. package/dist/cursor-hook.js +1 -1
  19. package/dist/cursor-sessionstart-hook.js +1 -1
  20. package/dist/cursor-stop-hook.js +1 -1
  21. package/dist/dcode-hook.js +1 -1
  22. package/dist/dcode-sessionstart-hook.js +1 -1
  23. package/dist/dcode-stop-hook.js +1 -1
  24. package/dist/deepen.js +1 -1
  25. package/dist/devin-hook.js +1 -1
  26. package/dist/devin-sessionstart-hook.js +1 -1
  27. package/dist/devin-stop-hook.js +1 -1
  28. package/dist/droid-hook.js +1 -1
  29. package/dist/droid-sessionstart-hook.js +1 -1
  30. package/dist/droid-stop-hook.js +1 -1
  31. package/dist/dsh.js +1 -1
  32. package/dist/grok-hook.js +1 -1
  33. package/dist/grok-sessionstart-hook.js +1 -1
  34. package/dist/grok-stop-hook.js +1 -1
  35. package/dist/hindsight-seed.js +1 -1
  36. package/dist/index.js +2248 -14664
  37. package/dist/installer.js +1 -1
  38. package/dist/kilo.js +2248 -14664
  39. package/dist/kimi-hook.js +1 -1
  40. package/dist/kimi-sessionstart-hook.js +1 -1
  41. package/dist/kimi-stop-hook.js +1 -1
  42. package/dist/mcp-server.js +75 -19
  43. package/dist/opencode2.js +2250 -14666
  44. package/dist/pi.js +1 -1
  45. package/dist/prime-agent.js +1 -1
  46. package/dist/qwen-hook.js +1 -1
  47. package/dist/qwen-sessionstart-hook.js +1 -1
  48. package/dist/qwen-stop-hook.js +1 -1
  49. package/dist/status.js +1 -1
  50. package/dist/traecode-hook.js +1 -1
  51. package/dist/traecode-sessionstart-hook.js +1 -1
  52. package/dist/traecode-stop-hook.js +1 -1
  53. package/dist/workbuddy-hook.js +1 -1
  54. package/dist/workbuddy-sessionstart-hook.js +1 -1
  55. package/dist/workbuddy-stop-hook.js +1 -1
  56. package/dist/zcode-hook.js +1 -1
  57. package/dist/zcode-sessionstart-hook.js +1 -1
  58. package/dist/zcode-stop-hook.js +1 -1
  59. package/npm-shrinkwrap.json +208 -203
  60. package/package.json +6 -3
package/dist/kimi-hook.js CHANGED
@@ -1277,7 +1277,7 @@ var PLUGIN_GOVERNED_BANK_FIELDS = [
1277
1277
  ];
1278
1278
 
1279
1279
  // package.json
1280
- var version = "0.8.7";
1280
+ var version = "0.8.10";
1281
1281
 
1282
1282
  // src/core/util.ts
1283
1283
  import { accessSync, constants } from "fs";
@@ -1348,7 +1348,7 @@ var PLUGIN_GOVERNED_BANK_FIELDS = [
1348
1348
  ];
1349
1349
 
1350
1350
  // package.json
1351
- var version = "0.8.7";
1351
+ var version = "0.8.10";
1352
1352
 
1353
1353
  // src/core/util.ts
1354
1354
  import { accessSync, constants } from "fs";
@@ -1214,7 +1214,7 @@ var PLUGIN_GOVERNED_BANK_FIELDS = [
1214
1214
  ];
1215
1215
 
1216
1216
  // package.json
1217
- var version = "0.8.7";
1217
+ var version = "0.8.10";
1218
1218
 
1219
1219
  // src/core/util.ts
1220
1220
  import { accessSync, constants } from "fs";
@@ -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
- function decodeValidScheme(scheme) {
3828
- const decodedScheme = unescape(String(scheme));
3829
- if (!VALID_SCHEME.test(decodedScheme)) {
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 decodedScheme;
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
- if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
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 = decodeValidScheme(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 pathNoScheme = !options.skipEscape && component.scheme === void 0 && !hasAuthority;
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 = decodeValidScheme(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 (pathNoScheme) {
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
- parsed.host = new URL("http://" + parsed.host).hostname;
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
- const decodedScheme = unescape(parsed.scheme);
4099
- if (VALID_SCHEME.test(decodedScheme)) {
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 || "URI host is malformed.";
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.7";
37934
+ var version2 = "0.8.10";
37879
37935
 
37880
37936
  // src/core/util.ts
37881
37937
  import { accessSync, constants } from "fs";