@rulemetric/cli 0.5.3 → 0.6.0

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 (160) hide show
  1. package/bin/dev.js +7 -0
  2. package/dist/base-command.js +4 -4
  3. package/dist/{chunk-7DRLX3DN.js → chunk-3POYC5NA.js} +3 -3
  4. package/dist/{chunk-TJ2M5QVL.js → chunk-3QH73QOQ.js} +2 -2
  5. package/dist/{chunk-CXWY5XKD.js → chunk-4LHEN2FS.js} +8 -8
  6. package/dist/{chunk-CROYS75W.js → chunk-7K4ILWS7.js} +3 -3
  7. package/dist/{chunk-TDTHAOXO.js → chunk-DR5WLIOU.js} +2 -2
  8. package/dist/{chunk-ANOWI23I.js → chunk-HWGRTIXN.js} +98 -105
  9. package/dist/chunk-HWGRTIXN.js.map +7 -0
  10. package/dist/{chunk-T76YQCKX.js → chunk-IATQXFJA.js} +2 -2
  11. package/dist/{chunk-346TGPVR.js → chunk-JCYCAQ6U.js} +126 -33
  12. package/dist/chunk-JCYCAQ6U.js.map +7 -0
  13. package/dist/{chunk-AUUHXCJU.js → chunk-JEJ3J5J6.js} +2 -2
  14. package/dist/{chunk-OAQG5WBV.js → chunk-LAKZUE35.js} +2 -2
  15. package/dist/{chunk-JNFIYBFL.js → chunk-N2X35ITW.js} +7 -1
  16. package/dist/{chunk-JNFIYBFL.js.map → chunk-N2X35ITW.js.map} +2 -2
  17. package/dist/{chunk-CCSR73HF.js → chunk-N5A2IQAK.js} +2 -2
  18. package/dist/{chunk-VCG4Q53B.js → chunk-OTOWLUOJ.js} +2 -2
  19. package/dist/{chunk-FTJRMUID.js → chunk-OVGP4OGK.js} +25 -1
  20. package/dist/chunk-OVGP4OGK.js.map +7 -0
  21. package/dist/{chunk-OKCFYPIQ.js → chunk-RCMXTLQF.js} +2 -2
  22. package/dist/{chunk-CGUV6TUA.js → chunk-RUCSRN7F.js} +2 -2
  23. package/dist/{chunk-4UJATBTG.js → chunk-SLL3OBKN.js} +4 -4
  24. package/dist/{chunk-CB43W53J.js → chunk-SZ7VDCD6.js} +3 -3
  25. package/dist/{chunk-N52AHNBH.js → chunk-W4MZXKZ2.js} +6 -2
  26. package/dist/chunk-W4MZXKZ2.js.map +7 -0
  27. package/dist/{chunk-KHJUQFIK.js → chunk-YSEQWCN4.js} +2 -2
  28. package/dist/{chunk-CWFVBGX2.js → chunk-ZRLYHBPN.js} +4 -2
  29. package/dist/chunk-ZRLYHBPN.js.map +7 -0
  30. package/dist/{chunk-ER5DPPHB.js → chunk-ZSGKRCKD.js} +6 -3
  31. package/dist/chunk-ZSGKRCKD.js.map +7 -0
  32. package/dist/commands/antigravity/backfill.js +5 -5
  33. package/dist/commands/auth/create-key.js +4 -4
  34. package/dist/commands/auth/login.js +19 -5
  35. package/dist/commands/auth/login.js.map +2 -2
  36. package/dist/commands/auth/logout.js +4 -4
  37. package/dist/commands/auth/revoke-key.js +4 -4
  38. package/dist/commands/auth/status.js +4 -4
  39. package/dist/commands/catalog/index.js +4 -4
  40. package/dist/commands/catalog/recommend.js +4 -4
  41. package/dist/commands/convert.js +6 -5
  42. package/dist/commands/convert.js.map +2 -2
  43. package/dist/commands/converters.js +4 -4
  44. package/dist/commands/crons/list.js +4 -4
  45. package/dist/commands/crons/run.js +4 -4
  46. package/dist/commands/dashboard.js +4 -4
  47. package/dist/commands/eval-targets/create.js +4 -4
  48. package/dist/commands/eval-targets/list.js +4 -4
  49. package/dist/commands/evals/agent.js +12 -12
  50. package/dist/commands/evals/benchmark.js +5 -5
  51. package/dist/commands/evals/compare.js +4 -4
  52. package/dist/commands/evals/create.js +4 -4
  53. package/dist/commands/evals/optimize-description.js +4 -4
  54. package/dist/commands/evals/optimize.js +4 -4
  55. package/dist/commands/evals/run.js +4 -4
  56. package/dist/commands/gateway/ensure.js +5 -5
  57. package/dist/commands/hooks/install.js +88 -55
  58. package/dist/commands/hooks/install.js.map +2 -2
  59. package/dist/commands/hooks/run.js +9 -7
  60. package/dist/commands/hooks/run.js.map +2 -2
  61. package/dist/commands/hooks/uninstall.js +57 -11
  62. package/dist/commands/hooks/uninstall.js.map +2 -2
  63. package/dist/commands/import.js +4 -4
  64. package/dist/commands/instructions/create.js +4 -4
  65. package/dist/commands/instructions/delete.js +4 -4
  66. package/dist/commands/instructions/fork.js +4 -4
  67. package/dist/commands/instructions/get.js +4 -4
  68. package/dist/commands/instructions/list.js +4 -4
  69. package/dist/commands/instructions/promote.js +4 -4
  70. package/dist/commands/instructions/pull.js +4 -4
  71. package/dist/commands/instructions/upstream.js +4 -4
  72. package/dist/commands/instructions/versions.js +4 -4
  73. package/dist/commands/launcher.js +4 -4
  74. package/dist/commands/org/current.js +9 -9
  75. package/dist/commands/org/list.js +6 -6
  76. package/dist/commands/org/switch.js +7 -7
  77. package/dist/commands/packs/add-instruction.js +4 -4
  78. package/dist/commands/packs/apply.js +4 -4
  79. package/dist/commands/packs/create.js +4 -4
  80. package/dist/commands/packs/fork.js +4 -4
  81. package/dist/commands/packs/get.js +4 -4
  82. package/dist/commands/packs/list.js +4 -4
  83. package/dist/commands/packs/remove-instruction.js +4 -4
  84. package/dist/commands/proxy/env.js +5 -5
  85. package/dist/commands/proxy/logs.js +4 -4
  86. package/dist/commands/proxy/restart.js +4 -4
  87. package/dist/commands/proxy/setup.js +4 -4
  88. package/dist/commands/proxy/start.js +4 -4
  89. package/dist/commands/proxy/status.js +5 -5
  90. package/dist/commands/proxy/stop.js +4 -4
  91. package/dist/commands/research/backfill.js +5 -5
  92. package/dist/commands/research/tail-transcript.js +5 -5
  93. package/dist/commands/service/install.js +12 -6
  94. package/dist/commands/service/install.js.map +2 -2
  95. package/dist/commands/service/status.js +4 -4
  96. package/dist/commands/service/uninstall.js +4 -4
  97. package/dist/commands/sessions/analyze.js +4 -4
  98. package/dist/commands/sessions/end.js +4 -4
  99. package/dist/commands/sessions/import.js +4 -4
  100. package/dist/commands/sessions/list.js +4 -4
  101. package/dist/commands/sessions/start.js +6 -6
  102. package/dist/commands/setup.js +10 -10
  103. package/dist/commands/setup.js.map +2 -2
  104. package/dist/commands/skills/export-approved.js +4 -4
  105. package/dist/commands/skills/install.js +4 -4
  106. package/dist/commands/skills/list.js +4 -4
  107. package/dist/commands/skills/publish.js +4 -4
  108. package/dist/commands/skills/search.js +4 -4
  109. package/dist/commands/skills/update.js +4 -4
  110. package/dist/commands/suggestions/accept.js +4 -4
  111. package/dist/commands/suggestions/dismiss.js +4 -4
  112. package/dist/commands/suggestions/list.js +4 -4
  113. package/dist/commands/suggestions/refresh.js +4 -4
  114. package/dist/dashboard/Dashboard.js +6 -4
  115. package/dist/dashboard/Dashboard.js.map +1 -1
  116. package/dist/dashboard/data.js +3 -1
  117. package/dist/dashboard/launcher/LauncherOverlay.js +5 -3
  118. package/dist/dashboard/launcher/api.js +3 -1
  119. package/dist/dashboard/launcher/useLaunchJobs.js +4 -2
  120. package/dist/lib/active-org-refresh.js +3 -3
  121. package/dist/lib/agent-loop.js +9 -9
  122. package/dist/lib/antigravity-transcript.js +2 -2
  123. package/dist/lib/api-client.js +3 -1
  124. package/dist/lib/eval-benchmark.js +2 -2
  125. package/dist/lib/eval-conversation-handler.js +2 -2
  126. package/dist/lib/gateway-lifecycle.js +7 -3
  127. package/dist/lib/handlers/cron-suggest-instructions.js +2 -2
  128. package/dist/lib/handlers/process-conversation.js +3 -3
  129. package/dist/lib/handlers/process-eval.js +2 -2
  130. package/dist/lib/handlers/process-insights.js +2 -2
  131. package/dist/lib/handlers/process-launch.js +2 -2
  132. package/dist/lib/hooks-config.js +7 -1
  133. package/dist/lib/manual-tasks.js +2 -2
  134. package/dist/lib/research-client.js +2 -2
  135. package/dist/lib/setup-steps.js +8 -4
  136. package/dist/lib/statusline-shim.js +3 -1
  137. package/dist/lib/terminal-target-heartbeat.js +2 -2
  138. package/oclif.manifest.json +2 -2
  139. package/package.json +6 -6
  140. package/dist/chunk-346TGPVR.js.map +0 -7
  141. package/dist/chunk-ANOWI23I.js.map +0 -7
  142. package/dist/chunk-CWFVBGX2.js.map +0 -7
  143. package/dist/chunk-ER5DPPHB.js.map +0 -7
  144. package/dist/chunk-FTJRMUID.js.map +0 -7
  145. package/dist/chunk-N52AHNBH.js.map +0 -7
  146. /package/dist/{chunk-7DRLX3DN.js.map → chunk-3POYC5NA.js.map} +0 -0
  147. /package/dist/{chunk-TJ2M5QVL.js.map → chunk-3QH73QOQ.js.map} +0 -0
  148. /package/dist/{chunk-CXWY5XKD.js.map → chunk-4LHEN2FS.js.map} +0 -0
  149. /package/dist/{chunk-CROYS75W.js.map → chunk-7K4ILWS7.js.map} +0 -0
  150. /package/dist/{chunk-TDTHAOXO.js.map → chunk-DR5WLIOU.js.map} +0 -0
  151. /package/dist/{chunk-T76YQCKX.js.map → chunk-IATQXFJA.js.map} +0 -0
  152. /package/dist/{chunk-AUUHXCJU.js.map → chunk-JEJ3J5J6.js.map} +0 -0
  153. /package/dist/{chunk-OAQG5WBV.js.map → chunk-LAKZUE35.js.map} +0 -0
  154. /package/dist/{chunk-CCSR73HF.js.map → chunk-N5A2IQAK.js.map} +0 -0
  155. /package/dist/{chunk-VCG4Q53B.js.map → chunk-OTOWLUOJ.js.map} +0 -0
  156. /package/dist/{chunk-OKCFYPIQ.js.map → chunk-RCMXTLQF.js.map} +0 -0
  157. /package/dist/{chunk-CGUV6TUA.js.map → chunk-RUCSRN7F.js.map} +0 -0
  158. /package/dist/{chunk-4UJATBTG.js.map → chunk-SLL3OBKN.js.map} +0 -0
  159. /package/dist/{chunk-CB43W53J.js.map → chunk-SZ7VDCD6.js.map} +0 -0
  160. /package/dist/{chunk-KHJUQFIK.js.map → chunk-YSEQWCN4.js.map} +0 -0
@@ -1,4 +1,8 @@
1
1
  import {
2
+ removeStatuslineShim
3
+ } from "../../chunk-N2X35ITW.js";
4
+ import {
5
+ readClaudeSettings,
2
6
  removeAntigravityHooks,
3
7
  removeAntigravityUserHooks,
4
8
  removeClaudeCodeHooks,
@@ -8,24 +12,43 @@ import {
8
12
  removeCursorUserProxyConfig,
9
13
  removeVSCodeProxyConfig,
10
14
  removeVSCodeUserProxyConfig,
11
- uninstallMacOSProxyEnv
12
- } from "../../chunk-ANOWI23I.js";
15
+ uninstallMacOSProxyEnv,
16
+ writeClaudeSettingsWithBackup
17
+ } from "../../chunk-HWGRTIXN.js";
13
18
  import {
14
19
  stopGateway
15
- } from "../../chunk-FTJRMUID.js";
20
+ } from "../../chunk-OVGP4OGK.js";
16
21
  import {
17
22
  BaseCommand
18
- } from "../../chunk-CB43W53J.js";
23
+ } from "../../chunk-SZ7VDCD6.js";
19
24
  import "../../chunk-R56PH7YE.js";
20
- import "../../chunk-4UJATBTG.js";
21
- import "../../chunk-CWFVBGX2.js";
22
- import "../../chunk-W2YERO7E.js";
25
+ import "../../chunk-SLL3OBKN.js";
23
26
  import "../../chunk-EKJ2CABV.js";
27
+ import "../../chunk-ZRLYHBPN.js";
28
+ import "../../chunk-W2YERO7E.js";
24
29
  import "../../chunk-NSBPE2FW.js";
25
30
 
26
31
  // src/commands/hooks/uninstall.ts
27
32
  import { existsSync, readFileSync, writeFileSync } from "node:fs";
33
+ import { spawnSync } from "node:child_process";
34
+ import { homedir } from "node:os";
28
35
  import { join } from "node:path";
36
+ var CERT_PATH = join(homedir(), ".mitmproxy", "mitmproxy-ca-cert.pem");
37
+ function untrustCACert() {
38
+ if (!existsSync(CERT_PATH)) return false;
39
+ if (process.platform === "darwin") {
40
+ return spawnSync("sudo", ["security", "remove-trusted-cert", "-d", CERT_PATH], { stdio: "inherit" }).status === 0;
41
+ }
42
+ if (process.platform === "linux") {
43
+ const rm = spawnSync("sudo", ["rm", "-f", "/usr/local/share/ca-certificates/mitmproxy-ca.crt"], { stdio: "inherit" });
44
+ if (rm.status !== 0) return false;
45
+ return spawnSync("sudo", ["update-ca-certificates", "--fresh"], { stdio: "inherit" }).status === 0;
46
+ }
47
+ if (process.platform === "win32") {
48
+ return spawnSync("certutil", ["-delstore", "Root", "mitmproxy"], { stdio: "inherit" }).status === 0;
49
+ }
50
+ return false;
51
+ }
29
52
  var HooksUninstall = class extends BaseCommand {
30
53
  static description = "Remove session tracking hooks from the current project";
31
54
  static examples = [
@@ -37,24 +60,34 @@ var HooksUninstall = class extends BaseCommand {
37
60
  this.log("No .claude/settings.json found \u2014 nothing to uninstall.");
38
61
  return;
39
62
  }
40
- const settings = JSON.parse(readFileSync(configPath, "utf-8"));
63
+ const { settings, recoveredBackup } = readClaudeSettings(configPath);
64
+ if (recoveredBackup) {
65
+ this.log(`[!!] ${configPath} was not valid JSON \u2014 backed up to ${recoveredBackup}; continuing.`);
66
+ }
41
67
  let changed = false;
42
68
  if (removeClaudeCodeHooks(settings)) {
43
69
  this.log("Removed RuleMetric hooks from .claude/settings.json");
44
70
  changed = true;
45
71
  }
46
72
  const env = settings.env;
47
- if (env?.HTTPS_PROXY || env?.NODE_EXTRA_CA_CERTS) {
73
+ let removedProxyEnv = false;
74
+ if (env && (env.HTTPS_PROXY || env.NO_PROXY || env.NODE_EXTRA_CA_CERTS)) {
48
75
  delete env.HTTPS_PROXY;
76
+ delete env.NO_PROXY;
49
77
  delete env.NODE_EXTRA_CA_CERTS;
50
78
  if (Object.keys(env).length === 0) {
51
79
  delete settings.env;
52
80
  }
53
- this.log("Removed HTTPS_PROXY and NODE_EXTRA_CA_CERTS from .claude/settings.json");
81
+ this.log("Removed HTTPS_PROXY, NO_PROXY and NODE_EXTRA_CA_CERTS from .claude/settings.json");
82
+ changed = true;
83
+ removedProxyEnv = true;
84
+ }
85
+ if (removeStatuslineShim(settings)) {
86
+ this.log("Removed RuleMetric statusline shim from .claude/settings.json");
54
87
  changed = true;
55
88
  }
56
89
  if (changed) {
57
- writeFileSync(configPath, JSON.stringify(settings, null, 2) + "\n");
90
+ writeClaudeSettingsWithBackup(configPath, settings);
58
91
  } else {
59
92
  this.log("No hooks or proxy config found \u2014 nothing to uninstall.");
60
93
  }
@@ -108,6 +141,19 @@ var HooksUninstall = class extends BaseCommand {
108
141
  this.log("Removed HTTPS_PROXY LaunchAgent");
109
142
  changed = true;
110
143
  }
144
+ if (removedProxyEnv && existsSync(CERT_PATH)) {
145
+ this.log("Removing the mitmproxy CA from the system trust store (requires sudo)...");
146
+ if (untrustCACert()) {
147
+ this.log("[OK] mitmproxy CA untrusted.");
148
+ } else {
149
+ this.log(`[!!] Could not untrust the CA automatically. Remove it manually:`);
150
+ if (process.platform === "darwin") {
151
+ this.log(` sudo security remove-trusted-cert -d ${CERT_PATH}`);
152
+ } else if (process.platform === "linux") {
153
+ this.log(` sudo rm -f /usr/local/share/ca-certificates/mitmproxy-ca.crt && sudo update-ca-certificates --fresh`);
154
+ }
155
+ }
156
+ }
111
157
  if (stopGateway()) {
112
158
  this.log("Gateway stopped.");
113
159
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/commands/hooks/uninstall.ts"],
4
- "sourcesContent": ["import { existsSync, readFileSync, writeFileSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { BaseCommand } from '../../base-command.js';\nimport { stopGateway } from '../../lib/gateway-lifecycle.js';\nimport { removeClaudeCodeHooks, removeCursorHooks, removeCursorUserHooks, removeCopilotHooks, removeAntigravityHooks, removeAntigravityUserHooks, removeVSCodeProxyConfig, uninstallMacOSProxyEnv, removeVSCodeUserProxyConfig, removeCursorUserProxyConfig } from '../../lib/hooks-config.js';\n\nexport default class HooksUninstall extends BaseCommand {\n static override description = 'Remove session tracking hooks from the current project';\n\n static override examples = [\n '<%= config.bin %> hooks uninstall',\n ];\n\n async run(): Promise<void> {\n const configPath = join(process.cwd(), '.claude', 'settings.json');\n\n if (!existsSync(configPath)) {\n this.log('No .claude/settings.json found \u2014 nothing to uninstall.');\n return;\n }\n\n const settings: Record<string, unknown> = JSON.parse(readFileSync(configPath, 'utf-8'));\n\n let changed = false;\n\n // Remove only RuleMetric's hooks \u2014 preserve the user's own. The old wholesale\n // `delete settings.hooks` also nuked unrelated project hooks.\n if (removeClaudeCodeHooks(settings)) {\n this.log('Removed RuleMetric hooks from .claude/settings.json');\n changed = true;\n }\n\n // Remove gateway proxy env\n const env = settings.env as Record<string, string> | undefined;\n if (env?.HTTPS_PROXY || env?.NODE_EXTRA_CA_CERTS) {\n delete env.HTTPS_PROXY;\n delete env.NODE_EXTRA_CA_CERTS;\n if (Object.keys(env).length === 0) {\n delete settings.env;\n }\n this.log('Removed HTTPS_PROXY and NODE_EXTRA_CA_CERTS from .claude/settings.json');\n changed = true;\n }\n\n if (changed) {\n writeFileSync(configPath, JSON.stringify(settings, null, 2) + '\\n');\n } else {\n this.log('No hooks or proxy config found \u2014 nothing to uninstall.');\n }\n\n // Remove Cursor hooks\n // Remove Cursor and Copilot hooks\n if (removeCursorHooks(process.cwd())) {\n this.log('Removed RuleMetric hooks from .cursor/hooks.json');\n changed = true;\n }\n if (removeCursorUserHooks()) {\n this.log('Removed RuleMetric hooks from ~/.cursor/hooks.json');\n changed = true;\n }\n\n // Remove Cursor proxy config\n const cursorSettingsPath = join(process.cwd(), '.cursor', 'settings.json');\n if (existsSync(cursorSettingsPath)) {\n try {\n const cursorSettings = JSON.parse(readFileSync(cursorSettingsPath, 'utf-8'));\n if (cursorSettings['http.proxy']?.includes('localhost')) {\n delete cursorSettings['http.proxy'];\n delete cursorSettings['http.proxyStrictSSL'];\n writeFileSync(cursorSettingsPath, JSON.stringify(cursorSettings, null, 2) + '\\n');\n this.log('Removed proxy config from .cursor/settings.json');\n changed = true;\n }\n } catch { /* not valid JSON, skip */ }\n }\n\n // Remove Copilot hooks\n if (removeCopilotHooks(process.cwd())) {\n this.log('Removed RuleMetric hooks from .github/hooks/');\n changed = true;\n }\n\n // Remove Antigravity hooks (workspace + user)\n if (removeAntigravityHooks(process.cwd())) {\n this.log('Removed RuleMetric block from .agents/hooks.json');\n changed = true;\n }\n if (removeAntigravityUserHooks()) {\n this.log('Removed RuleMetric block from ~/.gemini/config/hooks.json');\n changed = true;\n }\n\n // Remove VS Code proxy config (workspace + user settings)\n if (removeVSCodeProxyConfig(process.cwd())) {\n this.log('Removed proxy config from .vscode/settings.json');\n changed = true;\n }\n if (removeVSCodeUserProxyConfig()) {\n this.log('Removed proxy config from VS Code user settings');\n changed = true;\n }\n if (removeCursorUserProxyConfig()) {\n this.log('Removed proxy config from Cursor user settings');\n changed = true;\n }\n\n // Remove macOS LaunchAgent + launchctl env vars\n if (uninstallMacOSProxyEnv()) {\n this.log('Removed HTTPS_PROXY LaunchAgent');\n changed = true;\n }\n\n // Stop gateway\n if (stopGateway()) {\n this.log('Gateway stopped.');\n }\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY,cAAc,qBAAqB;AACxD,SAAS,YAAY;AAKrB,IAAqB,iBAArB,cAA4C,YAAY;AAAA,EACtD,OAAgB,cAAc;AAAA,EAE9B,OAAgB,WAAW;AAAA,IACzB;AAAA,EACF;AAAA,EAEA,MAAM,MAAqB;AACzB,UAAM,aAAa,KAAK,QAAQ,IAAI,GAAG,WAAW,eAAe;AAEjE,QAAI,CAAC,WAAW,UAAU,GAAG;AAC3B,WAAK,IAAI,6DAAwD;AACjE;AAAA,IACF;AAEA,UAAM,WAAoC,KAAK,MAAM,aAAa,YAAY,OAAO,CAAC;AAEtF,QAAI,UAAU;AAId,QAAI,sBAAsB,QAAQ,GAAG;AACnC,WAAK,IAAI,qDAAqD;AAC9D,gBAAU;AAAA,IACZ;AAGA,UAAM,MAAM,SAAS;AACrB,QAAI,KAAK,eAAe,KAAK,qBAAqB;AAChD,aAAO,IAAI;AACX,aAAO,IAAI;AACX,UAAI,OAAO,KAAK,GAAG,EAAE,WAAW,GAAG;AACjC,eAAO,SAAS;AAAA,MAClB;AACA,WAAK,IAAI,wEAAwE;AACjF,gBAAU;AAAA,IACZ;AAEA,QAAI,SAAS;AACX,oBAAc,YAAY,KAAK,UAAU,UAAU,MAAM,CAAC,IAAI,IAAI;AAAA,IACpE,OAAO;AACL,WAAK,IAAI,6DAAwD;AAAA,IACnE;AAIA,Q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jB,WAAK,IAAI,kBAAkB;AAAA,IAC7B;AAAA,EACF;AACF;",
4
+ "sourcesContent": ["import { existsSync, readFileSync, writeFileSync } from 'node:fs';\nimport { spawnSync } from 'node:child_process';\nimport { homedir } from 'node:os';\nimport { join } from 'node:path';\nimport { BaseCommand } from '../../base-command.js';\nimport { stopGateway } from '../../lib/gateway-lifecycle.js';\nimport { removeClaudeCodeHooks, readClaudeSettings, writeClaudeSettingsWithBackup, removeCursorHooks, removeCursorUserHooks, removeCopilotHooks, removeAntigravityHooks, removeAntigravityUserHooks, removeVSCodeProxyConfig, uninstallMacOSProxyEnv, removeVSCodeUserProxyConfig, removeCursorUserProxyConfig } from '../../lib/hooks-config.js';\nimport { removeStatuslineShim } from '../../lib/statusline-shim.js';\n\nconst CERT_PATH = join(homedir(), '.mitmproxy', 'mitmproxy-ca-cert.pem');\n\n/**\n * Best-effort reverse of install's trustCACert(): remove the mitmproxy root CA\n * from the system trust store. Without this, `hooks uninstall` leaves a MITM\n * root trusted system-wide forever \u2014 a real security residue of a supposedly\n * complete reversal. Runs sudo (symmetric with install, which sudo-trusts it).\n */\nfunction untrustCACert(): boolean {\n if (!existsSync(CERT_PATH)) return false;\n if (process.platform === 'darwin') {\n return spawnSync('sudo', ['security', 'remove-trusted-cert', '-d', CERT_PATH], { stdio: 'inherit' }).status === 0;\n }\n if (process.platform === 'linux') {\n const rm = spawnSync('sudo', ['rm', '-f', '/usr/local/share/ca-certificates/mitmproxy-ca.crt'], { stdio: 'inherit' });\n if (rm.status !== 0) return false;\n return spawnSync('sudo', ['update-ca-certificates', '--fresh'], { stdio: 'inherit' }).status === 0;\n }\n if (process.platform === 'win32') {\n return spawnSync('certutil', ['-delstore', 'Root', 'mitmproxy'], { stdio: 'inherit' }).status === 0;\n }\n return false;\n}\n\nexport default class HooksUninstall extends BaseCommand {\n static override description = 'Remove session tracking hooks from the current project';\n\n static override examples = [\n '<%= config.bin %> hooks uninstall',\n ];\n\n async run(): Promise<void> {\n const configPath = join(process.cwd(), '.claude', 'settings.json');\n\n if (!existsSync(configPath)) {\n this.log('No .claude/settings.json found \u2014 nothing to uninstall.');\n return;\n }\n\n // Guard the read: a malformed settings.json must not crash uninstall (the\n // one command a user runs precisely because things are broken).\n const { settings, recoveredBackup } = readClaudeSettings(configPath);\n if (recoveredBackup) {\n this.log(`[!!] ${configPath} was not valid JSON \u2014 backed up to ${recoveredBackup}; continuing.`);\n }\n\n let changed = false;\n\n // Remove only RuleMetric's hooks \u2014 preserve the user's own. The old wholesale\n // `delete settings.hooks` also nuked unrelated project hooks.\n if (removeClaudeCodeHooks(settings)) {\n this.log('Removed RuleMetric hooks from .claude/settings.json');\n changed = true;\n }\n\n // Remove gateway proxy env (HTTPS_PROXY + NO_PROXY + NODE_EXTRA_CA_CERTS \u2014\n // install writes all three; leaving NO_PROXY behind is a stray orphan).\n const env = settings.env as Record<string, string> | undefined;\n let removedProxyEnv = false;\n if (env && (env.HTTPS_PROXY || env.NO_PROXY || env.NODE_EXTRA_CA_CERTS)) {\n delete env.HTTPS_PROXY;\n delete env.NO_PROXY;\n delete env.NODE_EXTRA_CA_CERTS;\n if (Object.keys(env).length === 0) {\n delete settings.env;\n }\n this.log('Removed HTTPS_PROXY, NO_PROXY and NODE_EXTRA_CA_CERTS from .claude/settings.json');\n changed = true;\n removedProxyEnv = true;\n }\n\n // Remove our statusline shim (otherwise Claude Code keeps POSTing usage via it).\n if (removeStatuslineShim(settings)) {\n this.log('Removed RuleMetric statusline shim from .claude/settings.json');\n changed = true;\n }\n\n if (changed) {\n writeClaudeSettingsWithBackup(configPath, settings);\n } else {\n this.log('No hooks or proxy config found \u2014 nothing to uninstall.');\n }\n\n // Remove Cursor hooks\n // Remove Cursor and Copilot hooks\n if (removeCursorHooks(process.cwd())) {\n this.log('Removed RuleMetric hooks from .cursor/hooks.json');\n changed = true;\n }\n if (removeCursorUserHooks()) {\n this.log('Removed RuleMetric hooks from ~/.cursor/hooks.json');\n changed = true;\n }\n\n // Remove Cursor proxy config\n const cursorSettingsPath = join(process.cwd(), '.cursor', 'settings.json');\n if (existsSync(cursorSettingsPath)) {\n try {\n const cursorSettings = JSON.parse(readFileSync(cursorSettingsPath, 'utf-8'));\n if (cursorSettings['http.proxy']?.includes('localhost')) {\n delete cursorSettings['http.proxy'];\n delete cursorSettings['http.proxyStrictSSL'];\n writeFileSync(cursorSettingsPath, JSON.stringify(cursorSettings, null, 2) + '\\n');\n this.log('Removed proxy config from .cursor/settings.json');\n changed = true;\n }\n } catch { /* not valid JSON, skip */ }\n }\n\n // Remove Copilot hooks\n if (removeCopilotHooks(process.cwd())) {\n this.log('Removed RuleMetric hooks from .github/hooks/');\n changed = true;\n }\n\n // Remove Antigravity hooks (workspace + user)\n if (removeAntigravityHooks(process.cwd())) {\n this.log('Removed RuleMetric block from .agents/hooks.json');\n changed = true;\n }\n if (removeAntigravityUserHooks()) {\n this.log('Removed RuleMetric block from ~/.gemini/config/hooks.json');\n changed = true;\n }\n\n // Remove VS Code proxy config (workspace + user settings)\n if (removeVSCodeProxyConfig(process.cwd())) {\n this.log('Removed proxy config from .vscode/settings.json');\n changed = true;\n }\n if (removeVSCodeUserProxyConfig()) {\n this.log('Removed proxy config from VS Code user settings');\n changed = true;\n }\n if (removeCursorUserProxyConfig()) {\n this.log('Removed proxy config from Cursor user settings');\n changed = true;\n }\n\n // Remove macOS LaunchAgent + launchctl env vars\n if (uninstallMacOSProxyEnv()) {\n this.log('Removed HTTPS_PROXY LaunchAgent');\n changed = true;\n }\n\n // Untrust the mitmproxy CA (only if this was a proxy install \u2014 hooks-only\n // users never trusted one, so don't sudo-prompt them). This runs sudo,\n // symmetric with install's sudo-trust; without it a MITM root stays trusted.\n if (removedProxyEnv && existsSync(CERT_PATH)) {\n this.log('Removing the mitmproxy CA from the system trust store (requires sudo)...');\n if (untrustCACert()) {\n this.log('[OK] mitmproxy CA untrusted.');\n } else {\n this.log(`[!!] Could not untrust the CA automatically. Remove it manually:`);\n if (process.platform === 'darwin') {\n this.log(` sudo security remove-trusted-cert -d ${CERT_PATH}`);\n } else if (process.platform === 'linux') {\n this.log(` sudo rm -f /usr/local/share/ca-certificates/mitmproxy-ca.crt && sudo update-ca-certificates --fresh`);\n }\n }\n }\n\n // Stop gateway\n if (stopGateway()) {\n this.log('Gateway stopped.');\n }\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,YAAY,cAAc,qBAAqB;AACxD,SAAS,iBAAiB;AAC1B,SAAS,eAAe;AACxB,SAAS,YAAY;AAMrB,IAAM,YAAY,KAAK,QAAQ,GAAG,cAAc,uBAAuB;AAQvE,SAAS,gBAAyB;AAChC,MAAI,CAAC,WAAW,SAAS,EAAG,QAAO;AACnC,MAAI,QAAQ,aAAa,UAAU;AACjC,WAAO,UAAU,QAAQ,CAAC,YAAY,uBAAuB,MAAM,SAAS,GAAG,EAAE,OAAO,UAAU,CAAC,EAAE,WAAW;AAAA,EAClH;AACA,MAAI,QAAQ,aAAa,SAAS;AAChC,UAAM,KAAK,UAAU,QAAQ,CAAC,MAAM,MAAM,mDAAmD,GAAG,EAAE,OAAO,UAAU,CAAC;AACpH,QAAI,GAAG,WAAW,EAAG,QAAO;AAC5B,WAAO,UAAU,QAAQ,CAAC,0BAA0B,SAAS,GAAG,EAAE,OAAO,UAAU,CAAC,EAAE,WAAW;AAAA,EACnG;AACA,MAAI,QAAQ,aAAa,SAAS;AAChC,WAAO,UAAU,YAAY,CAAC,aAAa,QAAQ,WAAW,GAAG,EAAE,OAAO,UAAU,CAAC,EAAE,WAAW;AAAA,EACpG;AACA,SAAO;AACT;AAEA,IAAqB,iBAArB,cAA4C,YAAY;AAAA,EACtD,OAAgB,cAAc;AAAA,EAE9B,OAAgB,WAAW;AAAA,IACzB;AAAA,EACF;AAAA,EAEA,MAAM,MAAqB;AACzB,UAAM,aAAa,KAAK,QAAQ,IAAI,GAAG,WAAW,eAAe;AAEjE,QAAI,CAAC,WAAW,UAAU,GAAG;AA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CB43W53J.js";
3
+ } from "../chunk-SZ7VDCD6.js";
4
4
  import "../chunk-R56PH7YE.js";
5
- import "../chunk-4UJATBTG.js";
5
+ import "../chunk-SLL3OBKN.js";
6
+ import "../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiPost
8
- } from "../chunk-CWFVBGX2.js";
9
+ } from "../chunk-ZRLYHBPN.js";
9
10
  import "../chunk-W2YERO7E.js";
10
- import "../chunk-EKJ2CABV.js";
11
11
  import "../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/import.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiPost
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/instructions/create.ts
@@ -3,15 +3,15 @@ import {
3
3
  } from "../../chunk-7NYKWN7U.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-CB43W53J.js";
6
+ } from "../../chunk-SZ7VDCD6.js";
7
7
  import "../../chunk-R56PH7YE.js";
8
- import "../../chunk-4UJATBTG.js";
8
+ import "../../chunk-SLL3OBKN.js";
9
+ import "../../chunk-EKJ2CABV.js";
9
10
  import {
10
11
  apiDelete,
11
12
  apiGet
12
- } from "../../chunk-CWFVBGX2.js";
13
+ } from "../../chunk-ZRLYHBPN.js";
13
14
  import "../../chunk-W2YERO7E.js";
14
- import "../../chunk-EKJ2CABV.js";
15
15
  import "../../chunk-NSBPE2FW.js";
16
16
 
17
17
  // src/commands/instructions/delete.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiPost
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/instructions/fork.ts
@@ -7,14 +7,14 @@ import {
7
7
  } from "../../chunk-BZDKEQKU.js";
8
8
  import {
9
9
  BaseCommand
10
- } from "../../chunk-CB43W53J.js";
10
+ } from "../../chunk-SZ7VDCD6.js";
11
11
  import "../../chunk-R56PH7YE.js";
12
- import "../../chunk-4UJATBTG.js";
12
+ import "../../chunk-SLL3OBKN.js";
13
+ import "../../chunk-EKJ2CABV.js";
13
14
  import {
14
15
  apiGet
15
- } from "../../chunk-CWFVBGX2.js";
16
+ } from "../../chunk-ZRLYHBPN.js";
16
17
  import "../../chunk-W2YERO7E.js";
17
- import "../../chunk-EKJ2CABV.js";
18
18
  import "../../chunk-NSBPE2FW.js";
19
19
 
20
20
  // src/commands/instructions/get.ts
@@ -5,14 +5,14 @@ import {
5
5
  } from "../../chunk-BZDKEQKU.js";
6
6
  import {
7
7
  BaseCommand
8
- } from "../../chunk-CB43W53J.js";
8
+ } from "../../chunk-SZ7VDCD6.js";
9
9
  import "../../chunk-R56PH7YE.js";
10
- import "../../chunk-4UJATBTG.js";
10
+ import "../../chunk-SLL3OBKN.js";
11
+ import "../../chunk-EKJ2CABV.js";
11
12
  import {
12
13
  apiGet
13
- } from "../../chunk-CWFVBGX2.js";
14
+ } from "../../chunk-ZRLYHBPN.js";
14
15
  import "../../chunk-W2YERO7E.js";
15
- import "../../chunk-EKJ2CABV.js";
16
16
  import "../../chunk-NSBPE2FW.js";
17
17
 
18
18
  // src/commands/instructions/list.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiPost
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/instructions/promote.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiPost
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/instructions/pull.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiGet
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/instructions/upstream.ts
@@ -6,14 +6,14 @@ import {
6
6
  } from "../../chunk-BZDKEQKU.js";
7
7
  import {
8
8
  BaseCommand
9
- } from "../../chunk-CB43W53J.js";
9
+ } from "../../chunk-SZ7VDCD6.js";
10
10
  import "../../chunk-R56PH7YE.js";
11
- import "../../chunk-4UJATBTG.js";
11
+ import "../../chunk-SLL3OBKN.js";
12
+ import "../../chunk-EKJ2CABV.js";
12
13
  import {
13
14
  apiGet
14
- } from "../../chunk-CWFVBGX2.js";
15
+ } from "../../chunk-ZRLYHBPN.js";
15
16
  import "../../chunk-W2YERO7E.js";
16
- import "../../chunk-EKJ2CABV.js";
17
17
  import "../../chunk-NSBPE2FW.js";
18
18
 
19
19
  // src/commands/instructions/versions.ts
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../chunk-CB43W53J.js";
3
+ } from "../chunk-SZ7VDCD6.js";
4
4
  import "../chunk-R56PH7YE.js";
5
- import "../chunk-4UJATBTG.js";
6
- import "../chunk-CWFVBGX2.js";
7
- import "../chunk-W2YERO7E.js";
5
+ import "../chunk-SLL3OBKN.js";
8
6
  import "../chunk-EKJ2CABV.js";
7
+ import "../chunk-ZRLYHBPN.js";
8
+ import "../chunk-W2YERO7E.js";
9
9
  import "../chunk-NSBPE2FW.js";
10
10
 
11
11
  // src/commands/launcher.ts
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
6
- import {
7
- ApiError,
8
- apiGet
9
- } from "../../chunk-CWFVBGX2.js";
10
- import {
11
- isAuthenticated
12
- } from "../../chunk-W2YERO7E.js";
5
+ import "../../chunk-SLL3OBKN.js";
13
6
  import {
14
7
  clearActiveOrg,
15
8
  isStale,
16
9
  readActiveOrg,
17
10
  writeActiveOrg
18
11
  } from "../../chunk-EKJ2CABV.js";
12
+ import {
13
+ ApiError,
14
+ apiGet
15
+ } from "../../chunk-ZRLYHBPN.js";
16
+ import {
17
+ isAuthenticated
18
+ } from "../../chunk-W2YERO7E.js";
19
19
  import "../../chunk-NSBPE2FW.js";
20
20
 
21
21
  // src/commands/org/current.ts
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
6
- import {
7
- apiGet
8
- } from "../../chunk-CWFVBGX2.js";
9
- import "../../chunk-W2YERO7E.js";
5
+ import "../../chunk-SLL3OBKN.js";
10
6
  import {
11
7
  readActiveOrg
12
8
  } from "../../chunk-EKJ2CABV.js";
9
+ import {
10
+ apiGet
11
+ } from "../../chunk-ZRLYHBPN.js";
12
+ import "../../chunk-W2YERO7E.js";
13
13
  import "../../chunk-NSBPE2FW.js";
14
14
 
15
15
  // src/commands/org/list.ts
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
6
- import {
7
- apiGet,
8
- apiPatch
9
- } from "../../chunk-CWFVBGX2.js";
10
- import "../../chunk-W2YERO7E.js";
5
+ import "../../chunk-SLL3OBKN.js";
11
6
  import {
12
7
  clearActiveOrg,
13
8
  writeActiveOrg
14
9
  } from "../../chunk-EKJ2CABV.js";
10
+ import {
11
+ apiGet,
12
+ apiPatch
13
+ } from "../../chunk-ZRLYHBPN.js";
14
+ import "../../chunk-W2YERO7E.js";
15
15
  import "../../chunk-NSBPE2FW.js";
16
16
 
17
17
  // src/commands/org/switch.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiPost
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/packs/add-instruction.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiPost
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/packs/apply.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiPost
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/packs/create.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiPost
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/packs/fork.ts
@@ -4,14 +4,14 @@ import {
4
4
  } from "../../chunk-BZDKEQKU.js";
5
5
  import {
6
6
  BaseCommand
7
- } from "../../chunk-CB43W53J.js";
7
+ } from "../../chunk-SZ7VDCD6.js";
8
8
  import "../../chunk-R56PH7YE.js";
9
- import "../../chunk-4UJATBTG.js";
9
+ import "../../chunk-SLL3OBKN.js";
10
+ import "../../chunk-EKJ2CABV.js";
10
11
  import {
11
12
  apiGet
12
- } from "../../chunk-CWFVBGX2.js";
13
+ } from "../../chunk-ZRLYHBPN.js";
13
14
  import "../../chunk-W2YERO7E.js";
14
- import "../../chunk-EKJ2CABV.js";
15
15
  import "../../chunk-NSBPE2FW.js";
16
16
 
17
17
  // src/commands/packs/get.ts
@@ -5,14 +5,14 @@ import {
5
5
  } from "../../chunk-BZDKEQKU.js";
6
6
  import {
7
7
  BaseCommand
8
- } from "../../chunk-CB43W53J.js";
8
+ } from "../../chunk-SZ7VDCD6.js";
9
9
  import "../../chunk-R56PH7YE.js";
10
- import "../../chunk-4UJATBTG.js";
10
+ import "../../chunk-SLL3OBKN.js";
11
+ import "../../chunk-EKJ2CABV.js";
11
12
  import {
12
13
  apiGet
13
- } from "../../chunk-CWFVBGX2.js";
14
+ } from "../../chunk-ZRLYHBPN.js";
14
15
  import "../../chunk-W2YERO7E.js";
15
- import "../../chunk-EKJ2CABV.js";
16
16
  import "../../chunk-NSBPE2FW.js";
17
17
 
18
18
  // src/commands/packs/list.ts
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
5
+ import "../../chunk-SLL3OBKN.js";
6
+ import "../../chunk-EKJ2CABV.js";
6
7
  import {
7
8
  apiDelete
8
- } from "../../chunk-CWFVBGX2.js";
9
+ } from "../../chunk-ZRLYHBPN.js";
9
10
  import "../../chunk-W2YERO7E.js";
10
- import "../../chunk-EKJ2CABV.js";
11
11
  import "../../chunk-NSBPE2FW.js";
12
12
 
13
13
  // src/commands/packs/remove-instruction.ts
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  GATEWAY_PORT
3
- } from "../../chunk-FTJRMUID.js";
3
+ } from "../../chunk-OVGP4OGK.js";
4
4
  import {
5
5
  BaseCommand
6
- } from "../../chunk-CB43W53J.js";
6
+ } from "../../chunk-SZ7VDCD6.js";
7
7
  import "../../chunk-R56PH7YE.js";
8
- import "../../chunk-4UJATBTG.js";
9
- import "../../chunk-CWFVBGX2.js";
10
- import "../../chunk-W2YERO7E.js";
8
+ import "../../chunk-SLL3OBKN.js";
11
9
  import "../../chunk-EKJ2CABV.js";
10
+ import "../../chunk-ZRLYHBPN.js";
11
+ import "../../chunk-W2YERO7E.js";
12
12
  import "../../chunk-NSBPE2FW.js";
13
13
 
14
14
  // src/commands/proxy/env.ts
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  BaseCommand
3
- } from "../../chunk-CB43W53J.js";
3
+ } from "../../chunk-SZ7VDCD6.js";
4
4
  import "../../chunk-R56PH7YE.js";
5
- import "../../chunk-4UJATBTG.js";
6
- import "../../chunk-CWFVBGX2.js";
7
- import "../../chunk-W2YERO7E.js";
5
+ import "../../chunk-SLL3OBKN.js";
8
6
  import "../../chunk-EKJ2CABV.js";
7
+ import "../../chunk-ZRLYHBPN.js";
8
+ import "../../chunk-W2YERO7E.js";
9
9
  import "../../chunk-NSBPE2FW.js";
10
10
 
11
11
  // src/commands/proxy/logs.ts