@getmarrow/mcp 3.9.102 → 3.9.106

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 (152) hide show
  1. package/README.md +71 -24
  2. package/dist/approval-reply.d.ts +2 -0
  3. package/dist/approval-reply.d.ts.map +1 -0
  4. package/dist/approval-reply.js +18 -0
  5. package/dist/approval-reply.js.map +1 -0
  6. package/dist/cli.js +1716 -1644
  7. package/dist/cli.js.map +1 -1
  8. package/dist/codex-plugin-pins.d.ts +19 -0
  9. package/dist/codex-plugin-pins.d.ts.map +1 -0
  10. package/dist/codex-plugin-pins.js +61 -0
  11. package/dist/codex-plugin-pins.js.map +1 -0
  12. package/dist/codex-plugins.d.ts +34 -0
  13. package/dist/codex-plugins.d.ts.map +1 -0
  14. package/dist/codex-plugins.js +240 -0
  15. package/dist/codex-plugins.js.map +1 -0
  16. package/dist/env.d.ts +8 -0
  17. package/dist/env.d.ts.map +1 -1
  18. package/dist/env.js +83 -4
  19. package/dist/env.js.map +1 -1
  20. package/dist/hook-context.d.ts.map +1 -1
  21. package/dist/hook-context.js +25 -0
  22. package/dist/hook-context.js.map +1 -1
  23. package/dist/hook-contract.d.ts +4 -3
  24. package/dist/hook-contract.d.ts.map +1 -1
  25. package/dist/hook-contract.js +43 -5
  26. package/dist/hook-contract.js.map +1 -1
  27. package/dist/hook-pre-action.d.ts +80 -3
  28. package/dist/hook-pre-action.d.ts.map +1 -1
  29. package/dist/hook-pre-action.js +435 -29
  30. package/dist/hook-pre-action.js.map +1 -1
  31. package/dist/hook-tool-policy.d.ts +73 -4
  32. package/dist/hook-tool-policy.d.ts.map +1 -1
  33. package/dist/hook-tool-policy.js +287 -18
  34. package/dist/hook-tool-policy.js.map +1 -1
  35. package/dist/hook.d.ts +1 -1
  36. package/dist/hook.d.ts.map +1 -1
  37. package/dist/hook.js +15 -7
  38. package/dist/hook.js.map +1 -1
  39. package/dist/host-approval-state.d.ts +7 -0
  40. package/dist/host-approval-state.d.ts.map +1 -1
  41. package/dist/host-approval-state.js +15 -0
  42. package/dist/host-approval-state.js.map +1 -1
  43. package/dist/host-approval.d.ts +22 -1
  44. package/dist/host-approval.d.ts.map +1 -1
  45. package/dist/host-approval.js +65 -4
  46. package/dist/host-approval.js.map +1 -1
  47. package/dist/host-session.d.ts +11 -0
  48. package/dist/host-session.d.ts.map +1 -1
  49. package/dist/host-session.js +49 -0
  50. package/dist/host-session.js.map +1 -1
  51. package/dist/index.d.ts +5 -1
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +23 -11
  54. package/dist/index.js.map +1 -1
  55. package/dist/keyless-server.d.ts +53 -0
  56. package/dist/keyless-server.d.ts.map +1 -0
  57. package/dist/keyless-server.js +230 -0
  58. package/dist/keyless-server.js.map +1 -0
  59. package/dist/normalized-action.d.ts +31 -6
  60. package/dist/normalized-action.d.ts.map +1 -1
  61. package/dist/normalized-action.js +550 -105
  62. package/dist/normalized-action.js.map +1 -1
  63. package/dist/own-server-identity.d.ts +142 -0
  64. package/dist/own-server-identity.d.ts.map +1 -0
  65. package/dist/own-server-identity.js +1123 -0
  66. package/dist/own-server-identity.js.map +1 -0
  67. package/dist/own-tool.d.ts +21 -9
  68. package/dist/own-tool.d.ts.map +1 -1
  69. package/dist/own-tool.js +25 -10
  70. package/dist/own-tool.js.map +1 -1
  71. package/dist/redact.d.ts +23 -0
  72. package/dist/redact.d.ts.map +1 -1
  73. package/dist/redact.js +181 -8
  74. package/dist/redact.js.map +1 -1
  75. package/dist/seatbelt/classifier-pin.d.ts +15 -0
  76. package/dist/seatbelt/classifier-pin.d.ts.map +1 -0
  77. package/dist/seatbelt/classifier-pin.js +26 -0
  78. package/dist/seatbelt/classifier-pin.js.map +1 -0
  79. package/dist/seatbelt/env-dump.d.ts +45 -0
  80. package/dist/seatbelt/env-dump.d.ts.map +1 -0
  81. package/dist/seatbelt/env-dump.js +308 -0
  82. package/dist/seatbelt/env-dump.js.map +1 -0
  83. package/dist/seatbelt/fallback-copy.d.ts +16 -0
  84. package/dist/seatbelt/fallback-copy.d.ts.map +1 -0
  85. package/dist/seatbelt/fallback-copy.js +68 -0
  86. package/dist/seatbelt/fallback-copy.js.map +1 -0
  87. package/dist/seatbelt/guards.d.ts +10 -0
  88. package/dist/seatbelt/guards.d.ts.map +1 -0
  89. package/dist/seatbelt/guards.js +509 -0
  90. package/dist/seatbelt/guards.js.map +1 -0
  91. package/dist/seatbelt/hook.d.ts +91 -0
  92. package/dist/seatbelt/hook.d.ts.map +1 -0
  93. package/dist/seatbelt/hook.js +396 -0
  94. package/dist/seatbelt/hook.js.map +1 -0
  95. package/dist/seatbelt/longopts.d.ts +68 -0
  96. package/dist/seatbelt/longopts.d.ts.map +1 -0
  97. package/dist/seatbelt/longopts.js +377 -0
  98. package/dist/seatbelt/longopts.js.map +1 -0
  99. package/dist/seatbelt/mapper.d.ts +83 -0
  100. package/dist/seatbelt/mapper.d.ts.map +1 -0
  101. package/dist/seatbelt/mapper.js +10581 -0
  102. package/dist/seatbelt/mapper.js.map +1 -0
  103. package/dist/seatbelt/record.d.ts +94 -0
  104. package/dist/seatbelt/record.d.ts.map +1 -0
  105. package/dist/seatbelt/record.js +776 -0
  106. package/dist/seatbelt/record.js.map +1 -0
  107. package/dist/seatbelt/tables.d.ts +82 -0
  108. package/dist/seatbelt/tables.d.ts.map +1 -0
  109. package/dist/seatbelt/tables.js +352 -0
  110. package/dist/seatbelt/tables.js.map +1 -0
  111. package/dist/seatbelt-deploy.d.ts +100 -0
  112. package/dist/seatbelt-deploy.d.ts.map +1 -0
  113. package/dist/seatbelt-deploy.js +393 -0
  114. package/dist/seatbelt-deploy.js.map +1 -0
  115. package/dist/seatbelt-fs.d.ts +30 -0
  116. package/dist/seatbelt-fs.d.ts.map +1 -0
  117. package/dist/seatbelt-fs.js +94 -0
  118. package/dist/seatbelt-fs.js.map +1 -0
  119. package/dist/seatbelt-git.d.ts +212 -0
  120. package/dist/seatbelt-git.d.ts.map +1 -0
  121. package/dist/seatbelt-git.js +844 -0
  122. package/dist/seatbelt-git.js.map +1 -0
  123. package/dist/seatbelt-mode.d.ts +77 -0
  124. package/dist/seatbelt-mode.d.ts.map +1 -0
  125. package/dist/seatbelt-mode.js +496 -0
  126. package/dist/seatbelt-mode.js.map +1 -0
  127. package/dist/seatbelt-path.d.ts +123 -0
  128. package/dist/seatbelt-path.d.ts.map +1 -0
  129. package/dist/seatbelt-path.js +482 -0
  130. package/dist/seatbelt-path.js.map +1 -0
  131. package/dist/seatbelt-scripts.d.ts +109 -0
  132. package/dist/seatbelt-scripts.d.ts.map +1 -0
  133. package/dist/seatbelt-scripts.js +1060 -0
  134. package/dist/seatbelt-scripts.js.map +1 -0
  135. package/dist/secret-paths.d.ts +17 -0
  136. package/dist/secret-paths.d.ts.map +1 -0
  137. package/dist/secret-paths.js +32 -0
  138. package/dist/secret-paths.js.map +1 -0
  139. package/dist/session-loop-guard.d.ts.map +1 -1
  140. package/dist/session-loop-guard.js +15 -5
  141. package/dist/session-loop-guard.js.map +1 -1
  142. package/dist/tool-catalog.js +2 -2
  143. package/dist/tool-catalog.js.map +1 -1
  144. package/dist/types.d.ts +2 -1
  145. package/dist/types.d.ts.map +1 -1
  146. package/package.json +3 -2
  147. package/server.json +3 -3
  148. package/vendor/classifier/MANIFEST.json +25 -0
  149. package/vendor/classifier/classifier.js +1356 -0
  150. package/vendor/classifier/policy-baseline.js +187 -0
  151. package/vendor/classifier/redact.js +59 -0
  152. package/vendor/classifier/shell-parse.js +455 -0
@@ -2,7 +2,14 @@ import { marrowAgentRuntime, marrowEnforcement } from './index';
2
2
  import { type HoldPlan } from './host-approval';
3
3
  import { MARROW_OUTAGE_WARNING } from './hook-contract';
4
4
  /** A protected action with no Marrow key anywhere this machine keeps one (MARROW_API_KEY, ~/.marrow/env.local or ~/.marrow/env, owner-only). */
5
- export declare const NO_KEY_TEXT = "Marrow has no API key on this machine. Owner: create one at getmarrow.ai/signup, then run the installer activate command in a terminal. Do not retry this action.";
5
+ export declare const NO_KEY_TEXT = "Marrow has no API key on this machine, so it held this action. To approve actions like this, create a key at getmarrow.ai/signup and add it: getmarrow.ai/docs#start-here (Claude Code plugin: put MARROW_API_KEY in ~/.marrow/env, chmod 600, then /reload-plugins). Agent: do not retry this action.";
6
+ /** Seatbelt mode `claimed_no_key` (spec §1.1): account evidence on the machine but no usable key. Same text as src/seatbelt/hook.ts. */
7
+ export declare const CLAIMED_NO_KEY_TEXT = "Marrow is linked to an account but has no working key; owner: run `npx -y @getmarrow/install@latest doctor`.";
8
+ /**
9
+ * `claimed_no_key` without account evidence (a mode fallback): the same holds, never an account claim.
10
+ * This constant is the generic wording; the hold names its reason (setupUnconfirmedText). Same text as src/seatbelt/hook.ts.
11
+ */
12
+ export declare const SETUP_UNCONFIRMED_TEXT = "Marrow stopped this action: there is no Marrow key on this machine, and Marrow uses its stricter no-key mode here because it could not confirm this machine's setup. Fix (for the person at this machine, not the agent): run npx -y @getmarrow/install@latest doctor, or add a Marrow key (getmarrow.ai/docs#start-here). Agent: do not retry it another way and do not edit Marrow settings; tell the user why it was stopped. Code: setup_unconfirmed.";
6
13
  export { MARROW_OUTAGE_WARNING };
7
14
  export declare const MAX_PRE_ACTION_INPUT_BYTES: number;
8
15
  export declare const PRE_ACTION_CONTROL_TIMEOUT_MS = 8000;
@@ -33,6 +40,8 @@ type HookHarness = 'claude-code' | 'cline' | 'codex' | 'cursor' | 'gemini' | 'gr
33
40
  export declare const HOLD_OWNER_DENIAL = "Marrow is holding this action for approval. Retry it after approval.";
34
41
  /** Marrow did not answer within the hook's time limit: an action that can be held stays held. */
35
42
  export declare const HELD_SLOW_TEXT = "Marrow did not answer in time, so this action is held. Retry it in a moment.";
43
+ /** Marrow cannot be reached (a real outage): a high-risk action fails closed; routine actions keep the outage allow. */
44
+ export declare const HELD_OFFLINE_TEXT = "Marrow cannot be reached right now, so this high-risk action is held; routine actions keep running. Retry it when Marrow is back.";
36
45
  /** The only denial @getmarrow/install's Grok guard passes through (any other output blocks with a launch failure). */
37
46
  export declare const GROK_FIXED_DENIAL = "Marrow blocked this protected action.";
38
47
  /**
@@ -56,6 +65,8 @@ type PreActionControlResult = {
56
65
  permit: Awaited<ReturnType<typeof marrowEnforcement>> | null;
57
66
  protectedRisk: boolean;
58
67
  enforcementError?: string;
68
+ /** The hold is because this machine has no usable key (NO_KEY_TEXT, CLAIMED_NO_KEY_TEXT or SETUP_UNCONFIRMED_TEXT); set where those texts are set. */
69
+ credentialsUnavailable?: boolean;
59
70
  failure?: 'credential_scope' | 'unavailable';
60
71
  outage?: boolean;
61
72
  /** Marrow did not answer inside the hook's time budget (slow, not down). */
@@ -63,7 +74,7 @@ type PreActionControlResult = {
63
74
  };
64
75
  export declare function isMarrowOutage(result: PreActionControlResult): boolean;
65
76
  export declare function controlFailureKind(error: unknown): PreActionControlResult['failure'];
66
- export declare function controlRejectionMessage(error: unknown, agentId?: string): string;
77
+ export declare function controlRejectionMessage(error: unknown, agentId?: string, kind?: PreActionControlResult['failure']): string;
67
78
  export type OwnerApprovalPrompt = {
68
79
  available: boolean;
69
80
  unavailableReason: string;
@@ -97,8 +108,35 @@ export declare function advisoryGateNotice(runtime: PreActionControlResult['runt
97
108
  export declare function runtimeGateVerdict(runtime: PreActionControlResult['runtime']): GateVerdict | null;
98
109
  export declare function gateDecisionMessage(verdict: GateVerdict, ask: boolean, prompt?: OwnerApprovalPrompt): string;
99
110
  export declare function localControlAllowOutput(harness: 'claude-code' | 'cline' | 'codex' | 'cursor' | 'gemini' | 'grok' | 'windsurf' | 'mcp-client'): Record<string, unknown> | null;
111
+ /** Keyless seatbelt: a host that cannot hand this action to its own approval prompt holds it (no account to approve it). */
112
+ export declare const SEATBELT_HELD_TEXT = "MARROW SEATBELT held this action: this host cannot show its own approval prompt here, and no Marrow account is linked to approve it. If you (the person at this machine) meant it, run it yourself in your own terminal. Agent: do not retry it another way and do not edit Marrow settings; tell the user it was held. For approval prompts, add a Marrow key: getmarrow.ai/docs#start-here.";
113
+ export declare const SEATBELT_CURSOR_ASK_USER_TEXT = "Marrow seatbelt (no account linked): approve this action here only if you expected it.";
114
+ export declare const SEATBELT_CURSOR_ASK_AGENT_TEXT = "Cursor is asking the user to approve this action (Marrow seatbelt, no account linked). Wait for the answer; do not retry it another way.";
115
+ /**
116
+ * The keyless seatbelt's answer for an action it does not stop (spec §1.3 "pass": Marrow adds no
117
+ * decision and the host's own permission flow runs). `heldBefore`: the 3.9.103 keyless hook held this
118
+ * action (protected, or not read-only on Windsurf, Gemini or Grok). `null` means exit 0, no output.
119
+ * - Not held before: exactly the answer 3.9.103 gave (its read-only and unprotected passes).
120
+ * - Held before: never an explicit allow that could skip the host's own approval step.
121
+ * Claude Code and Codex `{}` (no permissionDecision), Cline `{cancel:false}`, Windsurf no output:
122
+ * the hosts' neutral answers (see PASS_THROUGH_HOSTS), so their own approval step runs.
123
+ * Gemini CLI `{"decision":"allow"}`: the installed guard passes only that or a fixed denial (no
124
+ * output is a launch failure that blocks), and Gemini applies its own policy and confirmation
125
+ * after the BeforeTool hook whatever an "allow" says, so it is Gemini's neutral answer.
126
+ * Cursor beforeShellExecution / beforeMCPExecution: "ask", so Cursor's own approval prompt decides.
127
+ * Cursor preToolUse (no neutral answer, "ask" not enforced) and Grok (its guard passes only an
128
+ * explicit allow or the fixed denial, and nothing shows an allow keeps Grok's own approval): held,
129
+ * as 3.9.103 did. Any other or missing Cursor event name is treated as preToolUse.
130
+ */
131
+ export declare function seatbeltPassOutput(harness: 'claude-code' | 'cline' | 'codex' | 'cursor' | 'gemini' | 'grok' | 'windsurf' | 'mcp-client', hookEventName: unknown, heldBefore: boolean): Record<string, unknown> | null;
100
132
  export declare function localLoopGuardDenyOutput(harness: 'claude-code' | 'cline' | 'codex' | 'cursor' | 'gemini' | 'grok' | 'windsurf' | 'mcp-client', reason: string): Record<string, unknown> | null;
101
- export declare function classifyTool(event: PreToolUseEvent): {
133
+ /**
134
+ * `ownUnproven`: the label is one of Marrow's own, but the host's server
135
+ * identity check did not prove the official server (Codex, Cursor). Such a
136
+ * call is classified as a protected MCP tool of another server, never
137
+ * read-only (it imitates Marrow's names, so a read verb proves nothing).
138
+ */
139
+ export type ToolClassification = {
102
140
  action: string;
103
141
  target: string;
104
142
  type: string;
@@ -108,6 +146,29 @@ export declare function classifyTool(event: PreToolUseEvent): {
108
146
  protected: boolean;
109
147
  readOnly: boolean;
110
148
  };
149
+ /** `ownUnproven` and `postTool` are described on classifyTool. */
150
+ export type ClassifyOptions = {
151
+ ownUnproven?: boolean;
152
+ postTool?: boolean;
153
+ };
154
+ /**
155
+ * The classification of one tool call. A Monitor command (and a native git
156
+ * equivalent such as EnterWorktree) is classified exactly as Bash running it;
157
+ * any other call carrying a command or script string gets the stricter of its
158
+ * own classification and Bash's for that text (its own classification,
159
+ * unchanged, when that is already at least as strict). A PowerShell call is
160
+ * one of those, with Bash's reading in the PowerShell dialect (no read-only
161
+ * allowlist) and never read-only. See toolPolicyReading.
162
+ *
163
+ * `postTool`: the PostToolUse hook (hook.ts) classifies a call that already ran, for the labels of its lifecycle event and the read-only
164
+ * flag of the local loop guard; no approval, redaction or stored output reads the result. That path must add ~no latency, so it asks no
165
+ * environment-print check and never loads the seatbelt mapper: its labels are the ones 3.9.103 gave (the secret-path table it shares with the
166
+ * seatbelt is the one stricter difference). Only the pre-action hook decides (and holds) on what prints the environment.
167
+ */
168
+ export declare function classifyTool(event: PreToolUseEvent, options?: ClassifyOptions): ToolClassification;
169
+ export declare const ENV_FILTER_SECRET_NAME: RegExp;
170
+ /** False for a command that cannot print the environment: the keyed hook then never loads the mapper for it. */
171
+ export declare function mayPrintEnvironment(command: string): boolean;
111
172
  export declare function cursorPreActionHookOutput(result: PreActionControlResult): Record<string, unknown>;
112
173
  export declare function clinePreActionHookOutput(result: PreActionControlResult): Record<string, unknown>;
113
174
  export declare function windsurfPreActionDecision(result: PreActionControlResult): {
@@ -145,5 +206,21 @@ export declare function installPreActionHook(startDir?: string): {
145
206
  settingsPath: string;
146
207
  installed: boolean;
147
208
  };
209
+ /**
210
+ * `marrow-mcp seatbelt-status`: exactly one line of JSON, exit 0. Read-only. On any error the unknown line.
211
+ * The installer's doctor reads it; it is not a user feature.
212
+ */
213
+ export declare function runSeatbeltStatusCommand(): void;
214
+ /**
215
+ * I3: whether a real outage (the gate never answered) holds this action. Never looser than master,
216
+ * which allowed every action in an outage. A shell command is read by the seatbelt mapper: held for an
217
+ * S0-S5/S-x hit or a program on the outage list (git push, publish, deploy, remote delete), allowed
218
+ * when the mapper read all of it and found neither (words in a message, a path or a comment never hold
219
+ * it). Anything else, or a mapper that could not finish, keeps `classifiedHighRisk` (F2).
220
+ */
221
+ export declare function outageHolds(classifiedHighRisk: boolean, read: () => {
222
+ shell: boolean;
223
+ risk: 'high' | 'not_high' | 'unknown';
224
+ }): boolean;
148
225
  export declare function runPreActionHookCommand(input?: unknown): Promise<void>;
149
226
  //# sourceMappingURL=hook-pre-action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hook-pre-action.d.ts","sourceRoot":"","sources":["../src/hook-pre-action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAgB,iBAAiB,EAAgC,MAAM,SAAS,CAAC;AAK5G,OAAO,EAsBL,KAAK,QAAQ,EAEd,MAAM,iBAAiB,CAAC;AAiBzB,OAAO,EASL,qBAAqB,EAItB,MAAM,iBAAiB,CAAC;AACzB,gJAAgJ;AAChJ,eAAO,MAAM,WAAW,sKAAsK,CAAC;AAE/L,OAAO,EAAE,qBAAqB,EAAE,CAAC;AAIjC,eAAO,MAAM,0BAA0B,QAAkB,CAAC;AAI1D,eAAO,MAAM,6BAA6B,OAAQ,CAAC;AAmBnD,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,QAAQ,CAAC,IAAI,qBAAqB;;CAMnC;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAM9D;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO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