tenjin-cli 0.1.0-alpha.16 → 0.1.0-alpha.17

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 (110) hide show
  1. package/README.md +2 -0
  2. package/dist/chunk-2G2WLVHB.js +102 -0
  3. package/dist/chunk-2G2WLVHB.js.map +1 -0
  4. package/dist/chunk-2I4QTOLB.js +11 -0
  5. package/dist/chunk-2I4QTOLB.js.map +1 -0
  6. package/dist/{chunk-HVRC33OL.js → chunk-2JGT3KDW.js} +4 -6
  7. package/dist/{chunk-HVRC33OL.js.map → chunk-2JGT3KDW.js.map} +1 -1
  8. package/dist/chunk-35M3VITA.js +102 -0
  9. package/dist/chunk-35M3VITA.js.map +1 -0
  10. package/dist/{chunk-5X4SZ5BF.js → chunk-5QHHRMRA.js} +4 -4
  11. package/dist/{chunk-BFFM2WFK.js → chunk-5UDD5VSY.js} +2 -2
  12. package/dist/{chunk-BFFM2WFK.js.map → chunk-5UDD5VSY.js.map} +1 -1
  13. package/dist/{chunk-OIM4HLN6.js → chunk-7QKHZQKW.js} +295 -20
  14. package/dist/chunk-7QKHZQKW.js.map +1 -0
  15. package/dist/{chunk-BBVUVBUO.js → chunk-AR7U7BRG.js} +44 -7
  16. package/dist/{chunk-BBVUVBUO.js.map → chunk-AR7U7BRG.js.map} +1 -1
  17. package/dist/{chunk-DMZZLPZN.js → chunk-AUKDYPPX.js} +14 -89
  18. package/dist/chunk-AUKDYPPX.js.map +1 -0
  19. package/dist/{chunk-PZEN5PHN.js → chunk-J5INH7WB.js} +17 -3
  20. package/dist/chunk-J5INH7WB.js.map +1 -0
  21. package/dist/{chunk-7WEQQJLG.js → chunk-JLEF5WHM.js} +66 -2
  22. package/dist/chunk-JLEF5WHM.js.map +1 -0
  23. package/dist/{chunk-GULLJQXA.js → chunk-KK4YGYTV.js} +127 -17
  24. package/dist/chunk-KK4YGYTV.js.map +1 -0
  25. package/dist/{chunk-YEETV6IW.js → chunk-KUBEYXSO.js} +10 -12
  26. package/dist/{chunk-YEETV6IW.js.map → chunk-KUBEYXSO.js.map} +1 -1
  27. package/dist/{chunk-2U5ZVEV3.js → chunk-LJ4DMVFI.js} +5 -5
  28. package/dist/{chunk-3AJS6LLN.js → chunk-MRGADYDD.js} +7 -7
  29. package/dist/{chunk-25TJPVBF.js → chunk-O4ZNKFRU.js} +28 -15
  30. package/dist/chunk-O4ZNKFRU.js.map +1 -0
  31. package/dist/{chunk-OJLYNM4Z.js → chunk-PDA2BVFY.js} +77 -19
  32. package/dist/chunk-PDA2BVFY.js.map +1 -0
  33. package/dist/{chunk-L3PVMIYQ.js → chunk-QDD2RN7G.js} +29 -119
  34. package/dist/chunk-QDD2RN7G.js.map +1 -0
  35. package/dist/chunk-S2NRVRPF.js +171 -0
  36. package/dist/chunk-S2NRVRPF.js.map +1 -0
  37. package/dist/chunk-TGLKKLQG.js +11 -0
  38. package/dist/chunk-TGLKKLQG.js.map +1 -0
  39. package/dist/chunk-TP4D47BY.js +127 -0
  40. package/dist/chunk-TP4D47BY.js.map +1 -0
  41. package/dist/{chunk-WH7OWT6G.js → chunk-U2DZISAH.js} +2 -8
  42. package/dist/chunk-U2DZISAH.js.map +1 -0
  43. package/dist/{chunk-USS336NF.js → chunk-WGQVJM56.js} +5 -5
  44. package/dist/chunk-WGQVJM56.js.map +1 -0
  45. package/dist/{chunk-YJHHCWM3.js → chunk-WLMJE3GJ.js} +3 -3
  46. package/dist/{chunk-U5DXNFJC.js → chunk-WS4JA6TC.js} +3 -3
  47. package/dist/{chunk-SKAHDQH7.js → chunk-XZOEUYMX.js} +6 -7
  48. package/dist/{chunk-SKAHDQH7.js.map → chunk-XZOEUYMX.js.map} +1 -1
  49. package/dist/{cli-M3XCSOU6.js → cli-VHYYYYXM.js} +43 -29
  50. package/dist/{cli-M3XCSOU6.js.map → cli-VHYYYYXM.js.map} +1 -1
  51. package/dist/{config-MXOX7XDR.js → config-5ADBAAXU.js} +11 -10
  52. package/dist/{doctor-LU4YIZWM.js → doctor-Q35VQW3S.js} +108 -21
  53. package/dist/doctor-Q35VQW3S.js.map +1 -0
  54. package/dist/{fund-A54P2QFK.js → fund-GDDPL2BB.js} +11 -10
  55. package/dist/{fund-A54P2QFK.js.map → fund-GDDPL2BB.js.map} +1 -1
  56. package/dist/hook-command-PBERPRE3.js +763 -0
  57. package/dist/hook-command-PBERPRE3.js.map +1 -0
  58. package/dist/index.js +2 -2
  59. package/dist/{install-XUM2XSHW.js → install-OKDKGUXM.js} +21 -14
  60. package/dist/{install-wallet-QIOFORTX.js → install-wallet-SI4LZ73K.js} +10 -9
  61. package/dist/{install-wallet-QIOFORTX.js.map → install-wallet-SI4LZ73K.js.map} +1 -1
  62. package/dist/{mcp-HJC2PLRV.js → mcp-XX3WRQEZ.js} +63 -31
  63. package/dist/{mcp-HJC2PLRV.js.map → mcp-XX3WRQEZ.js.map} +1 -1
  64. package/dist/{pay-SBXZEPEP.js → pay-3SYKHKWJ.js} +15 -13
  65. package/dist/{redact-46ZHF2NH.js → redact-6W23GGJC.js} +4 -6
  66. package/dist/{send-ASD2ZXJD.js → send-LQRKTEJT.js} +10 -9
  67. package/dist/{send-ASD2ZXJD.js.map → send-LQRKTEJT.js.map} +1 -1
  68. package/dist/{skill-placement-NFVHY6A3.js → skill-placement-JMDPSKE6.js} +12 -13
  69. package/dist/{skill-placement-NFVHY6A3.js.map → skill-placement-JMDPSKE6.js.map} +1 -1
  70. package/dist/{status-T2SDB57A.js → status-FFC6FO72.js} +8 -7
  71. package/dist/{status-T2SDB57A.js.map → status-FFC6FO72.js.map} +1 -1
  72. package/dist/{status-line-CGPUSDMC.js → status-line-SAXSU6CR.js} +19 -3
  73. package/dist/status-line-SAXSU6CR.js.map +1 -0
  74. package/dist/{status-line-wiring-BYPHTYZE.js → status-line-wiring-L2WYIYBM.js} +5 -6
  75. package/dist/tenjin-daemon.mjs +384 -23
  76. package/dist/{uninstall-FKYZHAM3.js → uninstall-OACH27UV.js} +18 -15
  77. package/dist/{uninstall-FKYZHAM3.js.map → uninstall-OACH27UV.js.map} +1 -1
  78. package/dist/{update-ANJ2AOTN.js → update-4W6EKLGZ.js} +6 -7
  79. package/dist/{update-ANJ2AOTN.js.map → update-4W6EKLGZ.js.map} +1 -1
  80. package/dist/{wallet-PWAHVKWW.js → wallet-BMEXRR3P.js} +10 -9
  81. package/docs/agent-permissions.md +16 -8
  82. package/docs/safety-model.md +1 -1
  83. package/package.json +1 -1
  84. package/dist/chunk-25TJPVBF.js.map +0 -1
  85. package/dist/chunk-7WEQQJLG.js.map +0 -1
  86. package/dist/chunk-DMZZLPZN.js.map +0 -1
  87. package/dist/chunk-GULLJQXA.js.map +0 -1
  88. package/dist/chunk-L3PVMIYQ.js.map +0 -1
  89. package/dist/chunk-OCBHUHWB.js +0 -69
  90. package/dist/chunk-OCBHUHWB.js.map +0 -1
  91. package/dist/chunk-OIM4HLN6.js.map +0 -1
  92. package/dist/chunk-OJLYNM4Z.js.map +0 -1
  93. package/dist/chunk-PZEN5PHN.js.map +0 -1
  94. package/dist/chunk-USS336NF.js.map +0 -1
  95. package/dist/chunk-WH7OWT6G.js.map +0 -1
  96. package/dist/doctor-LU4YIZWM.js.map +0 -1
  97. package/dist/hook-command-U6KWPEDQ.js +0 -377
  98. package/dist/hook-command-U6KWPEDQ.js.map +0 -1
  99. package/dist/status-line-CGPUSDMC.js.map +0 -1
  100. /package/dist/{chunk-5X4SZ5BF.js.map → chunk-5QHHRMRA.js.map} +0 -0
  101. /package/dist/{chunk-2U5ZVEV3.js.map → chunk-LJ4DMVFI.js.map} +0 -0
  102. /package/dist/{chunk-3AJS6LLN.js.map → chunk-MRGADYDD.js.map} +0 -0
  103. /package/dist/{chunk-YJHHCWM3.js.map → chunk-WLMJE3GJ.js.map} +0 -0
  104. /package/dist/{chunk-U5DXNFJC.js.map → chunk-WS4JA6TC.js.map} +0 -0
  105. /package/dist/{config-MXOX7XDR.js.map → config-5ADBAAXU.js.map} +0 -0
  106. /package/dist/{install-XUM2XSHW.js.map → install-OKDKGUXM.js.map} +0 -0
  107. /package/dist/{pay-SBXZEPEP.js.map → pay-3SYKHKWJ.js.map} +0 -0
  108. /package/dist/{redact-46ZHF2NH.js.map → redact-6W23GGJC.js.map} +0 -0
  109. /package/dist/{status-line-wiring-BYPHTYZE.js.map → status-line-wiring-L2WYIYBM.js.map} +0 -0
  110. /package/dist/{wallet-PWAHVKWW.js.map → wallet-BMEXRR3P.js.map} +0 -0
@@ -11,7 +11,7 @@ import { readFileSync as readFileSync4, statSync as statSync4 } from "node:fs";
11
11
  // package.json
12
12
  var package_default = {
13
13
  name: "tenjin-cli",
14
- version: "0.1.0-alpha.16",
14
+ version: "0.1.0-alpha.17",
15
15
  mcpName: "blog.tenjin/tenjin",
16
16
  type: "module",
17
17
  description: "x402 router for coding agents: one paid decision per lookup, a local wallet that pays each provider per call in USDC on Base.",
@@ -16506,6 +16506,12 @@ var HooksConfigSchema = external_exports.object({
16506
16506
  publish: external_exports.boolean(),
16507
16507
  primer: external_exports.boolean()
16508
16508
  });
16509
+ var ROUTER_CONTEXTS = ["session", "turn"];
16510
+ var RouterLayerSchema = external_exports.object({
16511
+ enabled: external_exports.boolean().optional(),
16512
+ context: external_exports.enum(ROUTER_CONTEXTS).optional()
16513
+ });
16514
+ var RouterConfigSchema = RouterLayerSchema.required();
16509
16515
  var UpdateModeSchema = external_exports.enum(["nudge", "off"]);
16510
16516
  var positiveInt = external_exports.number().int().positive();
16511
16517
  var LoopConfigSchema = external_exports.object({
@@ -16622,7 +16628,8 @@ var ConfigSchema = external_exports.object({
16622
16628
  hooks: HooksConfigSchema,
16623
16629
  update: UpdateConfigSchema,
16624
16630
  loop: LoopConfigSchema,
16625
- team: TeamConfigSchema
16631
+ team: TeamConfigSchema,
16632
+ router: RouterConfigSchema
16626
16633
  });
16627
16634
  var RawInstallConfigSchema = InstallConfigSchema.partial().extend({
16628
16635
  harness: RawInstallHarnessSchema.optional(),
@@ -16634,7 +16641,8 @@ var RawConfigSchema = ConfigSchema.partial().extend({
16634
16641
  hooks: HooksConfigSchema.partial().passthrough().optional(),
16635
16642
  update: UpdateConfigSchema.partial().passthrough().optional(),
16636
16643
  loop: LoopConfigSchema.partial().passthrough().optional(),
16637
- team: TeamConfigSchema.partial().passthrough().optional()
16644
+ team: TeamConfigSchema.partial().passthrough().optional(),
16645
+ router: RouterLayerSchema.passthrough().optional()
16638
16646
  }).passthrough();
16639
16647
  var DEFAULT_BAZAAR_REGISTRIES = [
16640
16648
  "https://api.cdp.coinbase.com/platform/v2/x402",
@@ -16683,7 +16691,8 @@ var CONFIG_DEFAULTS = {
16683
16691
  idle_exit_min: 30,
16684
16692
  port: null
16685
16693
  },
16686
- team: { publicFallback: "on" }
16694
+ team: { publicFallback: "on" },
16695
+ router: { enabled: true, context: "session" }
16687
16696
  };
16688
16697
  var NESTED_CONFIG_KEYS = /* @__PURE__ */ new Set([
16689
16698
  "publish",
@@ -16691,7 +16700,8 @@ var NESTED_CONFIG_KEYS = /* @__PURE__ */ new Set([
16691
16700
  "hooks",
16692
16701
  "update",
16693
16702
  "loop",
16694
- "team"
16703
+ "team",
16704
+ "router"
16695
16705
  ]);
16696
16706
  var CONFIG_KEYS = Object.keys(CONFIG_DEFAULTS).filter(
16697
16707
  (key) => !NESTED_CONFIG_KEYS.has(key)
@@ -16865,12 +16875,15 @@ function keysLeg(cfg, keys, fetchImpl) {
16865
16875
  }
16866
16876
 
16867
16877
  // src/hooks/question.ts
16878
+ import { createHash as createHash3 } from "node:crypto";
16879
+
16880
+ // src/lib/redact.ts
16868
16881
  import { createHash as createHash2 } from "node:crypto";
16869
16882
 
16870
16883
  // src/lib/redact-rules.json
16871
16884
  var redact_rules_default = {
16872
16885
  schemaVersion: 1,
16873
- note: "One rule table for every redaction surface in the CLI (src/lib/redact.ts), kept as data so the tenjin server-side ingest gate can vendor it verbatim. Every row is one detector: `id` is the stable finding `check`, `tier` is the finding severity, `match` is a JS regex or the name of an algorithmic detector a consumer must implement, `excerpt` is the masked-excerpt policy (never the secret), `skip` names a suppression predicate. `scopes` says where the row applies: `publish` (reported on the public marketplace), `team` (reported on a team shelf), `query` (its matches are replaced by the excerpt in hook queries by `mask()`; regex rows only). Precision first, as gitleaks and GitHub push protection do: a block row fires on a vendor prefix or an unambiguous shape, the generic `secret-assignment` row needs a secret-named word plus `=` or `:`, and entropy is never a trigger for a query. Table order is mask() order (the assignment row runs first, see its description). Several entries may share an `id`; they are one detector expressed as more than one pattern. Patterns adapted from gitleaks are MIT and attributed in NOTICE.md.",
16886
+ note: "One rule table for every redaction surface in the CLI (src/lib/redact.ts), kept as data so the tenjin server-side ingest gate can vendor it verbatim. Every row is one detector: `id` is the stable finding `check`, `tier` is the finding severity, `match` is a JS regex or the name of an algorithmic detector a consumer must implement, `excerpt` is the masked-excerpt policy (never the secret), `skip` names a suppression predicate. `scopes` says where the row applies: `publish` (reported on the public marketplace), `team` (reported on a team shelf), `query` (its matches are replaced by the excerpt in hook queries and router packets by `mask()`; regex rows, plus the `hex64`, `pemBlock` and `bip39` algorithm rows). Precision first, as gitleaks and GitHub push protection do: a block row fires on a vendor prefix or an unambiguous shape, the generic `secret-assignment` row needs a secret-named word plus `=` or `:`, and entropy is never a trigger for a query. Table order is mask() order (the assignment row runs first, see its description). Several entries may share an `id`; they are one detector expressed as more than one pattern. Patterns adapted from gitleaks are MIT and attributed in NOTICE.md.",
16874
16887
  publicHexConstants: [
16875
16888
  {
16876
16889
  value: "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
@@ -16932,7 +16945,7 @@ var redact_rules_default = {
16932
16945
  id: "secret-assignment",
16933
16946
  tier: "warn",
16934
16947
  scopes: ["query", "publish", "team"],
16935
- description: 'Secret-named assignment (API_KEY=, password:, token=) with a literal value. NOT the JSON-quoted form ("password": "..."): reading a quote after the name turned ordinary config keys into findings ({"credentials": "include"}, {"max_tokens": 128000}, {"tokenizer": "cl100k_base"}), and a JSON key is an identifier the shelf ranks on (owner decision, review round 6). The separator class is [ \\t] rather than \\s so a heading line (`## Token:`) never swallows the next line when mask() runs over whole text. FIRST IN THE TABLE ON PURPOSE: mask() applies rows in table order, and a value that is itself a vendor token (`OPENAI_API_KEY=sk-...`) must be taken whole by this row, name kept, before a vendor row could leave a stub for this row to re-match.',
16948
+ description: 'Secret-named assignment (API_KEY=, password:, token=) with a literal value. The JSON-quoted form ("password": "...") is the third row, not a quote read here: reading a quote after this name turned ordinary config keys into findings ({"credentials": "include"}, {"max_tokens": 128000}, {"tokenizer": "cl100k_base"}, review round 6). The separator class is [ \\t] rather than \\s so a heading line (`## Token:`) never swallows the next line when mask() runs over whole text. FIRST IN THE TABLE ON PURPOSE: mask() applies rows in table order, and a value that is itself a vendor token (`OPENAI_API_KEY=sk-...`) must be taken whole by this row, name kept, before a vendor row could leave a stub for this row to re-match.',
16936
16949
  source: "tenjin",
16937
16950
  match: {
16938
16951
  kind: "regex",
@@ -16966,6 +16979,25 @@ var redact_rules_default = {
16966
16979
  handler: "nonLiteralValue"
16967
16980
  }
16968
16981
  },
16982
+ {
16983
+ id: "secret-assignment",
16984
+ tier: "warn",
16985
+ scopes: ["query", "publish", "team"],
16986
+ description: 'Quoted secret name before `:` or `=` with a quoted value ("password": "...", \'api_key\' = \'...\'), the JSON and YAML form of the first row (tenjin-agent#296). Narrower than the first row on purpose, so the review-round-6 config keys stay clean: the name must END in the secret word (no `max_tokens`, `tokenizer`, `passwordHash`), and the value must be quoted and carry a letter and a digit (no `128000`, no `"include"`). A letters-only quoted password is an accepted miss.',
16987
+ source: "tenjin (tenjin-agent#296)",
16988
+ match: {
16989
+ kind: "regex",
16990
+ pattern: `(?<=["'])([A-Za-z0-9_-]*(?:API[_-]?KEY|SECRET|ACCESS[_-]?KEY|SUBSCRIPTION[_-]?KEY|PRIVATE[_-]?KEY|PASSW(?:OR)?D|TOKEN|CREDENTIALS?|AUTH[_-]?TOKEN))["'][ \\t]*[:=][ \\t]*("(?=[^"]*\\d)(?=[^"]*[A-Za-z])[^"]{6,}"|'(?=[^']*\\d)(?=[^']*[A-Za-z])[^']{6,}')`,
16991
+ flags: "gi"
16992
+ },
16993
+ excerpt: {
16994
+ kind: "custom",
16995
+ handler: "labeledValue"
16996
+ },
16997
+ skip: {
16998
+ handler: "nonLiteralValue"
16999
+ }
17000
+ },
16969
17001
  {
16970
17002
  id: "aws-access-key",
16971
17003
  tier: "block",
@@ -17388,6 +17420,146 @@ var redact_rules_default = {
17388
17420
  handler: "placeholderGroup1"
17389
17421
  }
17390
17422
  },
17423
+ {
17424
+ id: "basic-auth-header",
17425
+ tier: "warn",
17426
+ scopes: ["query", "publish"],
17427
+ description: "Authorization: Basic header: the base64 of user:password, under the entropy floor and on no vendor prefix (tenjin-agent#296). The header name is a bounded lookbehind behind a shape lookahead, so the mask keeps it, replaces the credential alone, and a whitespace run stays linear.",
17428
+ source: "tenjin (tenjin-agent#296)",
17429
+ match: {
17430
+ kind: "regex",
17431
+ pattern: "(?=[A-Za-z0-9+/]{8})(?<=\\bAuthorization:[ \\t]{0,16}Basic[ \\t]{1,16})[A-Za-z0-9+/]{8,}={0,2}(?![A-Za-z0-9+/=])",
17432
+ flags: "gi"
17433
+ },
17434
+ excerpt: {
17435
+ kind: "mask",
17436
+ keep: 0
17437
+ }
17438
+ },
17439
+ {
17440
+ id: "curl-user-credential",
17441
+ tier: "warn",
17442
+ scopes: ["query", "publish"],
17443
+ description: "curl -u / --user user:password on one command (tenjin-agent#296): the password is masked and the command and user kept. Anchored on `curl` within 200 characters of the flag on the same pipeline segment, so `docker run -u 1000:1000` never matches. A `$VAR`, a placeholder or a bare lowercase word is skipped as the assignment row skips it.",
17444
+ source: "tenjin (tenjin-agent#296)",
17445
+ match: {
17446
+ kind: "regex",
17447
+ pattern: `(\\bcurl\\b[^\\n|;&]{0,200}?[ \\t](?:-u|--user)(?:[ \\t]+|=)["']?[^\\s:"']{1,64}):([^\\s"']+)`,
17448
+ flags: "g"
17449
+ },
17450
+ excerpt: {
17451
+ kind: "custom",
17452
+ handler: "labeledValue"
17453
+ },
17454
+ skip: {
17455
+ handler: "nonLiteralValue"
17456
+ }
17457
+ },
17458
+ {
17459
+ id: "url-query-credential",
17460
+ tier: "warn",
17461
+ scopes: ["query", "publish"],
17462
+ description: "Credential-named query parameter on a URL (?key=, &api_key=, ?token=, ?sig=, ?password=): the value is masked and the name kept. The value class stops at `&`, `#`, whitespace, quotes and brackets, so a value another row already replaced with `[redacted \u2026]` is not masked twice.",
17463
+ source: "tenjin (tenjin-agent#388)",
17464
+ match: {
17465
+ kind: "regex",
17466
+ pattern: `([?&](?:key|apikey|api_key|api-key|token|access_token|auth|secret|client_secret|sig|signature|password|pwd))=([^&#\\s"'<>\\[\\]]+)`,
17467
+ flags: "gi"
17468
+ },
17469
+ excerpt: {
17470
+ kind: "custom",
17471
+ handler: "labeledValue"
17472
+ }
17473
+ },
17474
+ {
17475
+ id: "url-path-credential",
17476
+ tier: "warn",
17477
+ scopes: ["query", "publish"],
17478
+ description: "A path segment of 24 or more [A-Za-z0-9_-] characters that mixes letters and digits, on an http(s) URL: the shape a webhook secret or a signed-link token takes. A CDN hash or a content id in a path masks too; in a query that costs one routing offer. Four exclusions, each from a measured miss: a segment with two hyphenated words (an article slug), a 40-hex git commit after a git path marker (/commit/, /commits/, /blob/, /tree/, /raw/, /compare/) or on a git host (github.com, gitlab.com, bitbucket.org, codeberg.org), since elsewhere a 40-hex segment is a node key (https://<name>.quiknode.pro/<40 hex>/), a 0x-prefixed 64-hex (the hex64 row already calls a 64-hex inside a URL a hash), a UUID, and a URL character class that stops at quotes, brackets and commas, so one match never spans two URLs in a JSON string. The segment must be whole (a `.` or `%` inside it is a filename or an encoded slug, not a token). The shape lookahead runs before the scheme lookbehind, and the lookbehind is bounded, so a line of short segments stays linear.",
17479
+ source: "tenjin (tenjin-agent#388)",
17480
+ match: {
17481
+ kind: "regex",
17482
+ pattern: "\\/(?=[\\w-]{24})(?<=\\bhttps?:\\/\\/[^\\s?#\"'`<>()\\[\\]{},]{1,2048}\\/)(?=[\\w-]*[A-Za-z])(?=[\\w-]*\\d)(?![\\w-]*?(?<![A-Za-z])[A-Za-z]{3,}-[A-Za-z]{3})(?!(?:0x[0-9a-f]{64}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?![\\w-]))(?!(?=[0-9a-f]{40}(?![\\w-]))(?<=\\/(?:commit|commits|blob|tree|raw|compare)\\/|\\bhttps?:\\/\\/(?:www\\.)?(?:github\\.com|gitlab\\.com|bitbucket\\.org|codeberg\\.org)\\/[^\\s?#\"'`<>()\\[\\]{},]{0,2048}))[\\w-]{24,}(?=[.;:!]*(?:[\\/?#\\s\"'<>(),\\[\\]{}`]|$))",
17483
+ flags: "gi"
17484
+ },
17485
+ excerpt: {
17486
+ kind: "mask",
17487
+ keep: 1
17488
+ }
17489
+ },
17490
+ {
17491
+ id: "bare-hex-key",
17492
+ tier: "warn",
17493
+ scopes: ["query", "publish"],
17494
+ description: "64 hex with no 0x, the shape a private key takes when a tool exports it bare (tenjin-agent#388). A hash label within two tokens before it (tx, txn, txid, hash, sha, sha256, hmac, digest, commit, id, checksum, sig, signature, across markdown emphasis) or an http(s) URL around it makes it a hash and it is kept, the same downgrade the 0x form has. A 128-hex run (sha512) is not a 64-hex run and never matches.",
17495
+ source: "tenjin (tenjin-agent#388)",
17496
+ match: {
17497
+ kind: "regex",
17498
+ pattern: "(?<![0-9A-Za-z])[0-9a-fA-F]{64}(?![0-9A-Za-z])",
17499
+ flags: "g"
17500
+ },
17501
+ excerpt: {
17502
+ kind: "mask",
17503
+ keep: 0
17504
+ },
17505
+ skip: {
17506
+ handler: "hashLabelled"
17507
+ }
17508
+ },
17509
+ {
17510
+ id: "bare-hex-key",
17511
+ tier: "warn",
17512
+ scopes: ["query", "publish"],
17513
+ description: "A 64-hex key split into two 32-hex halves by one space or one newline, with an optional 0x on the first half. Bounded to exactly two adjacent halves: a third 32-hex run before or after (a list of MD5 sums) keeps the whole list as written, and a hash label keeps it as for the row above.",
17514
+ source: "tenjin (tenjin-agent#388)",
17515
+ match: {
17516
+ kind: "regex",
17517
+ pattern: "(?<![0-9A-Za-z])(?<![0-9a-fA-F]{32}[ \\n])(?:0x)?[0-9a-fA-F]{32}[ \\n][0-9a-fA-F]{32}(?![0-9A-Za-z])(?![ \\n][0-9a-fA-F]{32})",
17518
+ flags: "g"
17519
+ },
17520
+ excerpt: {
17521
+ kind: "mask",
17522
+ keep: 0
17523
+ },
17524
+ skip: {
17525
+ handler: "hashLabelled"
17526
+ }
17527
+ },
17528
+ {
17529
+ id: "solana-secret-key",
17530
+ tier: "warn",
17531
+ scopes: ["query", "publish"],
17532
+ description: "An 87 or 88 character base58 run: a Solana keypair's 64-byte secret key as a wallet exports it (tenjin-agent#388). A transaction signature has the same shape, so a tx or sig label before it or an http(s) URL around it keeps it, as for bare-hex-key. A 32-byte public key is 43 or 44 characters and never matches.",
17533
+ source: "tenjin (tenjin-agent#388)",
17534
+ match: {
17535
+ kind: "regex",
17536
+ pattern: "(?<![1-9A-HJ-NP-Za-km-z])[1-9A-HJ-NP-Za-km-z]{87,88}(?![1-9A-HJ-NP-Za-km-z])",
17537
+ flags: "g"
17538
+ },
17539
+ excerpt: {
17540
+ kind: "mask",
17541
+ keep: 0
17542
+ },
17543
+ skip: {
17544
+ handler: "hashLabelled"
17545
+ }
17546
+ },
17547
+ {
17548
+ id: "solana-secret-key",
17549
+ tier: "warn",
17550
+ scopes: ["query", "publish"],
17551
+ description: "A JSON array of exactly 64 integers from 0 to 255: the solana-keygen keypair file.",
17552
+ source: "tenjin (tenjin-agent#388)",
17553
+ match: {
17554
+ kind: "regex",
17555
+ pattern: "\\[\\s*(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\s*,\\s*){63}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\s*\\]",
17556
+ flags: "g"
17557
+ },
17558
+ excerpt: {
17559
+ kind: "mask",
17560
+ keep: 1
17561
+ }
17562
+ },
17391
17563
  {
17392
17564
  id: "wallet-address",
17393
17565
  tier: "warn",
@@ -17665,7 +17837,7 @@ var redact_rules_default = {
17665
17837
  {
17666
17838
  id: "raw-private-key",
17667
17839
  tier: "block",
17668
- scopes: ["publish", "team"],
17840
+ scopes: ["query", "publish", "team"],
17669
17841
  description: "0x + 64 hex with no hash context. Demoted to the warn detector hex32-value when a hash/identifier label precedes it (within two intervening tokens, across markdown and quote punctuation), when it sits inside an http(s) URL, or when it is one of the publicHexConstants below. An unlabeled bare 64-hex stays block: that is the floor.",
17670
17842
  source: "blockrun-mcp (wallet-key leak scanner)",
17671
17843
  match: {
@@ -17680,7 +17852,7 @@ var redact_rules_default = {
17680
17852
  {
17681
17853
  id: "pem-private-key",
17682
17854
  tier: "block",
17683
- scopes: ["publish", "team"],
17855
+ scopes: ["query", "publish", "team"],
17684
17856
  description: "PEM private-key armor (-----BEGIN ... PRIVATE KEY-----), RSA/EC/OPENSSH/PGP variants.",
17685
17857
  source: "gitleaks:private-key",
17686
17858
  match: {
@@ -17695,8 +17867,8 @@ var redact_rules_default = {
17695
17867
  {
17696
17868
  id: "bip39-seed-phrase",
17697
17869
  tier: "block",
17698
- scopes: ["publish", "team"],
17699
- description: "Twelve or more consecutive BIP-39 English wordlist words separated only by spaces or tabs: a wallet recovery phrase.",
17870
+ scopes: ["query", "publish", "team"],
17871
+ description: 'Twelve or more consecutive BIP-39 English wordlist words separated only by whitespace or quote characters, so a quoted `.env` value (MNEMONIC="abandon ... about") counts (tenjin-agent#296): a wallet recovery phrase.',
17700
17872
  source: "tenjin; wordlist from BIP-0039 (see NOTICE.md)",
17701
17873
  match: {
17702
17874
  kind: "algorithm",
@@ -17767,15 +17939,56 @@ function mask(text) {
17767
17939
  let out = text.replace(/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f]/g, "");
17768
17940
  for (const detector of MASK_DETECTORS) {
17769
17941
  out = out.replace(detector.re, (...args) => {
17770
- const m = args;
17942
+ const tail = typeof args.at(-1) === "object" ? 3 : 2;
17943
+ const m = Object.assign(args.slice(0, -tail), {
17944
+ index: args.at(-tail),
17945
+ input: args.at(-tail + 1)
17946
+ });
17771
17947
  return detector.skip?.(m) === true ? m[0] : detector.excerpt(m);
17772
17948
  });
17773
17949
  }
17774
- return out;
17950
+ if (MASKED_ALGORITHMS.has("hex64") || MASKED_ALGORITHMS.has("bip39")) {
17951
+ out = out.split("\n").map(maskLineSpans).join("\n");
17952
+ }
17953
+ if (MASKED_ALGORITHMS.has("bip39")) out = maskLooseMnemonics(out);
17954
+ return MASKED_ALGORITHMS.has("pemBlock") ? maskPemBlocks(out) : out;
17955
+ }
17956
+ function maskLineSpans(line) {
17957
+ const lines = [line];
17958
+ const spans = [
17959
+ ...MASKED_ALGORITHMS.has("hex64") ? scanHex64(lines) : [],
17960
+ ...MASKED_ALGORITHMS.has("bip39") ? scanSeedPhrases(lines) : []
17961
+ ].filter((f) => f.check !== "hex32-value").filter(
17962
+ (f) => f.check !== "bip39-seed-phrase" || line.slice(f.span[0], f.span[1]).split(/[\s"'`]+/).length <= SEED_PHRASE_MAX_WORDS
17963
+ ).sort((a, b) => a.span[0] - b.span[0]);
17964
+ if (spans.length === 0) return line;
17965
+ const parts = [];
17966
+ let cursor = 0;
17967
+ for (const f of spans) {
17968
+ if (f.span[0] < cursor) continue;
17969
+ parts.push(line.slice(cursor, f.span[0]), f.excerpt);
17970
+ cursor = f.span[1];
17971
+ }
17972
+ parts.push(line.slice(cursor));
17973
+ return parts.join("");
17974
+ }
17975
+ function maskPemBlocks(text) {
17976
+ let out = "";
17977
+ let rest = text;
17978
+ for (; ; ) {
17979
+ const begin = PEM_BEGIN.exec(rest);
17980
+ if (begin === null) return out + rest;
17981
+ const body = begin.index + begin[0].length;
17982
+ const end = PEM_END.exec(rest.slice(body));
17983
+ const stop2 = end === null ? rest.length : body + end.index + end[0].length;
17984
+ out += rest.slice(0, begin.index) + maskKeeping(rest.slice(begin.index, stop2), begin[0].length);
17985
+ rest = rest.slice(stop2);
17986
+ }
17775
17987
  }
17776
17988
  var SCOPES = /* @__PURE__ */ new Set(["query", "publish", "team"]);
17777
17989
  var CORPUS = redact_rules_default;
17778
17990
  var ALGORITHMS = /* @__PURE__ */ new Set(["hex64", "pemBlock", "bip39", "envDump", "entropy", "longVerbatim"]);
17991
+ var MASKABLE_ALGORITHMS = /* @__PURE__ */ new Set(["hex64", "pemBlock", "bip39"]);
17779
17992
  var EXCERPT_HANDLERS = {
17780
17993
  googleKey: (m) => maskKeeping(m[0], m[0].startsWith("AIza") ? 4 : 7),
17781
17994
  dbConnectionUri: (m) => `${m[1]}://${m[2]}:[redacted]@${m[4]}`,
@@ -17788,7 +18001,8 @@ var SKIP_HANDLERS = {
17788
18001
  placeholderGroup1: (m) => isPlaceholder(m[1] ?? ""),
17789
18002
  nonLiteralValue: skipNonLiteralValue,
17790
18003
  placeholderUsername: (m) => PLACEHOLDER_USERNAME.test(m[1] ?? m[2] ?? ""),
17791
- reservedExampleEmail: (m) => RESERVED_EXAMPLE_DOMAIN.test(m[0])
18004
+ reservedExampleEmail: (m) => RESERVED_EXAMPLE_DOMAIN.test(m[0]),
18005
+ hashLabelled: isLabelledHash
17792
18006
  };
17793
18007
  function validateScopes(rule) {
17794
18008
  if (!Array.isArray(rule.scopes) || rule.scopes.length === 0) {
@@ -17807,9 +18021,10 @@ function validateScopes(rule) {
17807
18021
  if (rule.tier === "block" && !rule.scopes.includes("team")) {
17808
18022
  throw new Error(`redact-rules.json: block rule ${rule.id} must be scoped to team as well`);
17809
18023
  }
17810
- if (rule.scopes.includes("query") && rule.match.kind !== "regex") {
18024
+ const maskable = rule.match.kind === "regex" || rule.match.kind === "algorithm" && MASKABLE_ALGORITHMS.has(rule.match.algorithm ?? "");
18025
+ if (rule.scopes.includes("query") && !maskable) {
17811
18026
  throw new Error(
17812
- `redact-rules.json: rule ${rule.id} is masked in queries but is not a regex row`
18027
+ `redact-rules.json: rule ${rule.id} is masked in queries but mask() cannot apply it`
17813
18028
  );
17814
18029
  }
17815
18030
  }
@@ -17893,6 +18108,9 @@ function compileExcerpt(rule) {
17893
18108
  validateCorpus(CORPUS.rules);
17894
18109
  var LINE_DETECTORS = compileLineDetectors(CORPUS.rules);
17895
18110
  var MASK_DETECTORS = LINE_DETECTORS.filter((d) => d.scopes.has("query"));
18111
+ var MASKED_ALGORITHMS = new Set(
18112
+ CORPUS.rules.filter((r) => r.match.kind === "algorithm" && r.scopes.includes("query")).map((r) => r.match.algorithm ?? "")
18113
+ );
17896
18114
  var RESERVED_EXAMPLE_DOMAIN = /@(?:[A-Za-z0-9-]+\.)*example\.(?:com|org|net)$/i;
17897
18115
  var PLACEHOLDER_USERNAME = /^(?:user(?:name)?|you(?:rname)?|example|foo|me|myuser|somebody)$/i;
17898
18116
  function maskKeeping(match, prefixLen) {
@@ -17949,10 +18167,153 @@ var EXAMPLE_PASSWORDS = /* @__PURE__ */ new Set([
17949
18167
  function isExamplePassword(password) {
17950
18168
  return EXAMPLE_PASSWORDS.has(password.toLowerCase());
17951
18169
  }
18170
+ var HEX64_RE = /(?<![0-9a-fx])0x[0-9a-fA-F]{64}(?![0-9a-fA-F])/gi;
18171
+ var HASH_LABEL_RE = /(?:^|[^a-z0-9])(?:blockhash|txhash|txn|tx|hash|salt|id|topic\d*|root|digest|commitment)(?:[\s:=/,._'"`‘’“”-]*[A-Za-z0-9_]{1,12}){0,2}[\s:=/,._'"`‘’“”-]*$/i;
17952
18172
  var PUBLIC_HEX_CONSTANTS = new Set(
17953
18173
  (CORPUS.publicHexConstants ?? []).map((c) => c.value.toLowerCase())
17954
18174
  );
18175
+ function scanHex64(lines) {
18176
+ const out = [];
18177
+ for (let i = 0; i < lines.length; i++) {
18178
+ const line = lines[i] ?? "";
18179
+ HEX64_RE.lastIndex = 0;
18180
+ let m;
18181
+ while ((m = HEX64_RE.exec(line)) !== null) {
18182
+ const hash2 = isHashContext(line, m.index, m[0]);
18183
+ out.push({
18184
+ check: hash2 ? "hex32-value" : "raw-private-key",
18185
+ severity: hash2 ? "warn" : "block",
18186
+ line: i + 1,
18187
+ span: [m.index, m.index + m[0].length],
18188
+ excerpt: hash2 ? `${m[0].slice(0, 6)}\u2026${m[0].slice(-4)}` : maskKeeping(m[0], 2)
18189
+ });
18190
+ }
18191
+ }
18192
+ return out;
18193
+ }
18194
+ var LABEL_LOOKBACK = 256;
18195
+ function isHashContext(line, matchIndex, match) {
18196
+ if (PUBLIC_HEX_CONSTANTS.has(match.toLowerCase())) return true;
18197
+ const from = Math.max(0, matchIndex - LABEL_LOOKBACK);
18198
+ const before = line.slice(from, matchIndex);
18199
+ const labelWindow = from === 0 ? before : before.replace(/^[A-Za-z0-9]+/, "");
18200
+ if (HASH_LABEL_RE.test(labelWindow)) return true;
18201
+ const prefix = /(\S*)$/.exec(before)?.[1] ?? "";
18202
+ return /^https?:\/\//.test(line.slice(matchIndex - prefix.length));
18203
+ }
18204
+ var BARE_HASH_LABEL_RE = /(?:^|[^a-z0-9])(?:tx|txn|txid|hash|sha\d*|hmac|digest|commit|id|checksum|sig|signature)(?:[\s:=/,._*'"`‘’“”-]*[A-Za-z0-9_]{1,12}){0,2}[\s:=/,._*'"`‘’“”-]*$/i;
18205
+ function isLabelledHash(m) {
18206
+ const input = m.input;
18207
+ const from = Math.max(0, m.index - LABEL_LOOKBACK);
18208
+ const before = input.slice(from, m.index);
18209
+ const labelWindow = from === 0 ? before : before.replace(/^[A-Za-z0-9]+/, "");
18210
+ if (BARE_HASH_LABEL_RE.test(labelWindow)) return true;
18211
+ const prefix = /(\S*)$/.exec(before)?.[1] ?? "";
18212
+ return /^https?:\/\//.test(input.slice(m.index - prefix.length));
18213
+ }
18214
+ var PEM_BEGIN = /-----BEGIN[ A-Z0-9]*PRIVATE KEY(?: BLOCK)?-----/;
18215
+ var PEM_END = /-----END[ A-Z0-9]*PRIVATE KEY(?: BLOCK)?-----/;
17955
18216
  var BIP39_WORDS = new Set(bip39_wordlist_default.words.split(" "));
18217
+ var SEED_PHRASE_MIN_WORDS = 12;
18218
+ var SEED_PHRASE_MAX_WORDS = 24;
18219
+ var SEED_PHRASE_SIZES = [24, 21, 18, 15, 12];
18220
+ var BIP39_INDEX = new Map(
18221
+ bip39_wordlist_default.words.split(" ").map((word, index) => [word, index])
18222
+ );
18223
+ var LOOSE_SEPARATOR = /^[\s,"'`]+$/;
18224
+ function maskLooseMnemonics(text) {
18225
+ const tokens = [...text.matchAll(/[A-Za-z]+/g)].map((m) => ({
18226
+ word: m[0].toLowerCase(),
18227
+ start: m.index,
18228
+ end: m.index + m[0].length
18229
+ }));
18230
+ const checked = /* @__PURE__ */ new Map();
18231
+ const valid = (window) => {
18232
+ const key = window.join(" ");
18233
+ let result = checked.get(key);
18234
+ if (result === void 0) checked.set(key, result = isMnemonic(window));
18235
+ return result;
18236
+ };
18237
+ const parts = [];
18238
+ let cursor = 0;
18239
+ let i = 0;
18240
+ while (i < tokens.length) {
18241
+ let j = i;
18242
+ while (j < tokens.length && BIP39_INDEX.has(tokens[j].word) && (j === i || LOOSE_SEPARATOR.test(text.slice(tokens[j - 1].end, tokens[j].start)))) {
18243
+ j++;
18244
+ }
18245
+ if (j === i) {
18246
+ i++;
18247
+ continue;
18248
+ }
18249
+ let k = i;
18250
+ while (k + SEED_PHRASE_MIN_WORDS <= j) {
18251
+ const size = SEED_PHRASE_SIZES.find(
18252
+ (n) => k + n <= j && valid(tokens.slice(k, k + n).map((t) => t.word))
18253
+ );
18254
+ if (size === void 0) {
18255
+ k++;
18256
+ continue;
18257
+ }
18258
+ parts.push(
18259
+ text.slice(cursor, tokens[k].start),
18260
+ `[redacted ${size}-word BIP-39 recovery phrase]`
18261
+ );
18262
+ cursor = tokens[k + size - 1].end;
18263
+ k += size;
18264
+ }
18265
+ i = j;
18266
+ }
18267
+ parts.push(text.slice(cursor));
18268
+ return parts.join("");
18269
+ }
18270
+ function isMnemonic(words) {
18271
+ let bits = 0n;
18272
+ for (const word of words) bits = bits << 11n | BigInt(BIP39_INDEX.get(word) ?? 0);
18273
+ const checksumBits = BigInt(words.length / 3);
18274
+ const entropyBytes = (words.length * 11 - words.length / 3) / 8;
18275
+ const entropy = Buffer.from(
18276
+ (bits >> checksumBits).toString(16).padStart(entropyBytes * 2, "0"),
18277
+ "hex"
18278
+ );
18279
+ const expected = BigInt(createHash2("sha256").update(entropy).digest()[0]) >> 8n - checksumBits;
18280
+ return (bits & (1n << checksumBits) - 1n) === expected;
18281
+ }
18282
+ function scanSeedPhrases(lines) {
18283
+ const out = [];
18284
+ const token = /[^\s"'`]+/g;
18285
+ for (let i = 0; i < lines.length; i++) {
18286
+ const line = lines[i] ?? "";
18287
+ token.lastIndex = 0;
18288
+ let runStart = -1;
18289
+ let runEnd = -1;
18290
+ let runWords = 0;
18291
+ let m;
18292
+ const flush = () => {
18293
+ if (runWords >= SEED_PHRASE_MIN_WORDS) {
18294
+ out.push({
18295
+ check: "bip39-seed-phrase",
18296
+ severity: "block",
18297
+ line: i + 1,
18298
+ span: [runStart, runEnd],
18299
+ excerpt: `[redacted ${runWords}-word BIP-39 recovery phrase]`
18300
+ });
18301
+ }
18302
+ runWords = 0;
18303
+ };
18304
+ while ((m = token.exec(line)) !== null) {
18305
+ if (BIP39_WORDS.has(m[0])) {
18306
+ if (runWords === 0) runStart = m.index;
18307
+ runEnd = m.index + m[0].length;
18308
+ runWords++;
18309
+ } else {
18310
+ flush();
18311
+ }
18312
+ }
18313
+ flush();
18314
+ }
18315
+ return out;
18316
+ }
17956
18317
  var EMITTED_CHECKS = {
17957
18318
  "hex32-value": "raw-private-key"
17958
18319
  };
@@ -17976,7 +18337,7 @@ function wordCount(text) {
17976
18337
  }
17977
18338
  function questionKeyOf(text) {
17978
18339
  const normalized = text.toLowerCase().replace(/\s+/g, " ").trim();
17979
- return createHash2("sha256").update(normalized).digest("hex").slice(0, 32);
18340
+ return createHash3("sha256").update(normalized).digest("hex").slice(0, 32);
17980
18341
  }
17981
18342
  function question(text) {
17982
18343
  const out = cut(mask(text), QUERY_MAX);
@@ -18072,9 +18433,9 @@ ${task}` : task;
18072
18433
  });
18073
18434
 
18074
18435
  // src/hooks/failure/keys.ts
18075
- import { createHash as createHash3 } from "node:crypto";
18436
+ import { createHash as createHash4 } from "node:crypto";
18076
18437
  function shortHash(text) {
18077
- return createHash3("sha256").update(String(text)).digest("hex").slice(0, 16);
18438
+ return createHash4("sha256").update(String(text)).digest("hex").slice(0, 16);
18078
18439
  }
18079
18440
  var SIG_LABEL = "sig_v1";
18080
18441
  var TEST_SIG_LABEL = "sig_v1_test";
@@ -19171,7 +19532,7 @@ async function health(port, timeoutMs = HEALTH_MS) {
19171
19532
  }
19172
19533
 
19173
19534
  // src/daemon/lifecycle.ts
19174
- import { createHash as createHash4 } from "node:crypto";
19535
+ import { createHash as createHash5 } from "node:crypto";
19175
19536
  import {
19176
19537
  appendFileSync as appendFileSync2,
19177
19538
  mkdirSync as mkdirSync3,
@@ -19263,7 +19624,7 @@ function derivePort(dataDir2) {
19263
19624
  path = realpathSync(dataDir2);
19264
19625
  } catch {
19265
19626
  }
19266
- const h = createHash4("sha256").update(path).digest();
19627
+ const h = createHash5("sha256").update(path).digest();
19267
19628
  return PORT_BASE + h.readUInt16BE(0) % PORT_SPAN;
19268
19629
  }
19269
19630
  function openLog(dataDir2) {
@@ -19730,9 +20091,9 @@ async function runFire(input, deps, clientSignal) {
19730
20091
  }
19731
20092
 
19732
20093
  // src/daemon/auth.ts
19733
- import { createHash as createHash5, timingSafeEqual } from "node:crypto";
20094
+ import { createHash as createHash6, timingSafeEqual } from "node:crypto";
19734
20095
  function digest(s) {
19735
- return createHash5("sha256").update(s).digest();
20096
+ return createHash6("sha256").update(s).digest();
19736
20097
  }
19737
20098
  function tokenMatches(presented, expected) {
19738
20099
  if (presented === void 0) return false;
@@ -1,37 +1,40 @@
1
1
  import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
2
2
  import {
3
3
  ALLOW_RULE,
4
- MCP_SERVER_NAME,
5
4
  mcpRemoveCommand,
6
5
  mcpScope,
7
6
  routerSettingsPath
8
- } from "./chunk-25TJPVBF.js";
9
- import "./chunk-YJHHCWM3.js";
7
+ } from "./chunk-O4ZNKFRU.js";
8
+ import {
9
+ MCP_SERVER_NAME
10
+ } from "./chunk-TGLKKLQG.js";
11
+ import "./chunk-WLMJE3GJ.js";
10
12
  import {
11
13
  persistRouterProject
12
- } from "./chunk-GULLJQXA.js";
14
+ } from "./chunk-KK4YGYTV.js";
13
15
  import "./chunk-WXC57XGG.js";
14
16
  import "./chunk-2QYORQBF.js";
15
17
  import "./chunk-MEFB5KHA.js";
18
+ import "./chunk-TP4D47BY.js";
16
19
  import {
17
20
  onPath
18
- } from "./chunk-U5DXNFJC.js";
19
- import "./chunk-OJLYNM4Z.js";
20
- import "./chunk-WH7OWT6G.js";
21
- import "./chunk-BBVUVBUO.js";
21
+ } from "./chunk-WS4JA6TC.js";
22
+ import "./chunk-2I4QTOLB.js";
23
+ import "./chunk-PDA2BVFY.js";
24
+ import "./chunk-U2DZISAH.js";
25
+ import "./chunk-AR7U7BRG.js";
22
26
  import {
23
27
  removeStatusLine
24
- } from "./chunk-HVRC33OL.js";
28
+ } from "./chunk-2JGT3KDW.js";
25
29
  import {
26
30
  inspectHooksFile,
27
31
  pruneHooks
28
- } from "./chunk-SKAHDQH7.js";
29
- import "./chunk-BFFM2WFK.js";
30
- import "./chunk-OCBHUHWB.js";
31
- import "./chunk-2BKS2FVE.js";
32
+ } from "./chunk-XZOEUYMX.js";
33
+ import "./chunk-5UDD5VSY.js";
32
34
  import {
33
35
  writeFileAtomic
34
- } from "./chunk-7WEQQJLG.js";
36
+ } from "./chunk-JLEF5WHM.js";
37
+ import "./chunk-2BKS2FVE.js";
35
38
  import "./chunk-ZXTAQYNA.js";
36
39
 
37
40
  // src/router/uninstall.ts
@@ -141,4 +144,4 @@ export {
141
144
  MCP_REMOVE_COMMAND,
142
145
  runRouterUninstall
143
146
  };
144
- //# sourceMappingURL=uninstall-FKYZHAM3.js.map
147
+ //# sourceMappingURL=uninstall-OACH27UV.js.map