token-goat 2.2.1 → 2.2.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.
@@ -9493,7 +9493,7 @@ init_define_import_meta_env();
9493
9493
  import { createRequire } from "node:module";
9494
9494
  function resolveVersion() {
9495
9495
  if (true) {
9496
- return "2.2.1";
9496
+ return "2.2.2";
9497
9497
  }
9498
9498
  const require2 = createRequire(import.meta.url);
9499
9499
  const pkg = require2("../package.json");
@@ -10889,7 +10889,16 @@ var MONITORING_COMMAND_PATTERNS = [
10889
10889
  { pattern: /^codex(?:\s|$)/, recallHint: '--tail 100 --grep "error|suggestion|verdict|conclusion"' },
10890
10890
  { pattern: /^(?:~\/\.claude\/bin\/|\.claude\/bin\/)?glm\.sh(?:\s|$)/, recallHint: '--tail 100 --grep "error|verdict|conclusion|suggestion"' },
10891
10891
  // cat of a single source file — output is the full file; pre-bash emits a token-goat read suggestion
10892
- { pattern: /^cat\s+\S+\.(java|py|ts|tsx|js|jsx|go|rb|rs|cpp|cc|cxx|c|h|hpp|kt|swift|cs|php|scala|clj)\s*$/, recallHint: "--tail 50" }
10892
+ { pattern: /^cat\s+\S+\.(java|py|ts|tsx|js|jsx|go|rb|rs|cpp|cc|cxx|c|h|hpp|kt|swift|cs|php|scala|clj)\s*$/, recallHint: "--tail 50" },
10893
+ // PowerShell read-only system-state queries (stable over 60-120s)
10894
+ {
10895
+ pattern: /^(?:powershell(?:\.exe)?|pwsh(?:\.exe)?)\s+(?:-\w+\s+)*-Command\s+["']?Get-(?:CimInstance|Process|Counter|Service|PSDrive|WmiObject)\b/i,
10896
+ recallHint: "--tail 50"
10897
+ },
10898
+ // token-goat section/outline/symbol repeat calls — output is stable until the file changes
10899
+ { pattern: /^token-goat\s+section\s+["'][^"']+["']/, recallHint: "" },
10900
+ { pattern: /^token-goat\s+outline\s+\S+/, recallHint: "" },
10901
+ { pattern: /^token-goat\s+symbol\s+\S+/, recallHint: "" }
10893
10902
  ];
10894
10903
  function getMonitoringRecallHint(cmd) {
10895
10904
  for (const { pattern, recallHint } of MONITORING_COMMAND_PATTERNS) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "token-goat",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "Surgical token-reduction companion for Claude Code and other AI coding agents",
5
5
  "type": "module",
6
6
  "main": "./dist/token-goat.mjs",