@mainwave/cli 0.3.2 → 0.4.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 (88) hide show
  1. package/README.md +133 -10
  2. package/dist/adapters/claude-code.js +22 -2
  3. package/dist/adapters/claude-code.js.map +1 -1
  4. package/dist/adapters/claude-desktop.js +3 -0
  5. package/dist/adapters/claude-desktop.js.map +1 -1
  6. package/dist/adapters/codex-cli.js +18 -1
  7. package/dist/adapters/codex-cli.js.map +1 -1
  8. package/dist/adapters/copilot-chat.js +22 -0
  9. package/dist/adapters/copilot-chat.js.map +1 -1
  10. package/dist/adapters/copilot-cli.js +10 -0
  11. package/dist/adapters/copilot-cli.js.map +1 -1
  12. package/dist/adapters/cursor-enterprise.js +155 -0
  13. package/dist/adapters/cursor-enterprise.js.map +1 -0
  14. package/dist/adapters/cursor.js +205 -0
  15. package/dist/adapters/cursor.js.map +1 -0
  16. package/dist/adapters/index.js +4 -0
  17. package/dist/adapters/index.js.map +1 -1
  18. package/dist/api/index.js +3 -0
  19. package/dist/api/index.js.map +1 -0
  20. package/dist/api/types.gen.js +3 -0
  21. package/dist/api/types.gen.js.map +1 -0
  22. package/dist/core/apply.js +269 -0
  23. package/dist/core/apply.js.map +1 -0
  24. package/dist/core/auth-commands.js +167 -0
  25. package/dist/core/auth-commands.js.map +1 -0
  26. package/dist/core/behaviour-hooks.js +101 -0
  27. package/dist/core/behaviour-hooks.js.map +1 -0
  28. package/dist/core/browser.js +41 -0
  29. package/dist/core/browser.js.map +1 -0
  30. package/dist/core/codecs/cursor-hooks-json.js +90 -0
  31. package/dist/core/codecs/cursor-hooks-json.js.map +1 -0
  32. package/dist/core/detect.js +52 -0
  33. package/dist/core/detect.js.map +1 -0
  34. package/dist/core/device-login.js +76 -0
  35. package/dist/core/device-login.js.map +1 -0
  36. package/dist/core/doctor.js +51 -2
  37. package/dist/core/doctor.js.map +1 -1
  38. package/dist/core/errors.js +23 -0
  39. package/dist/core/errors.js.map +1 -1
  40. package/dist/core/flags.js +57 -0
  41. package/dist/core/flags.js.map +1 -0
  42. package/dist/core/headers.js +15 -1
  43. package/dist/core/headers.js.map +1 -1
  44. package/dist/core/interview.js +199 -0
  45. package/dist/core/interview.js.map +1 -0
  46. package/dist/core/keys.js +41 -0
  47. package/dist/core/keys.js.map +1 -0
  48. package/dist/core/markers.js +5 -1
  49. package/dist/core/markers.js.map +1 -1
  50. package/dist/core/platform.js +155 -0
  51. package/dist/core/platform.js.map +1 -0
  52. package/dist/core/prompts.js +73 -22
  53. package/dist/core/prompts.js.map +1 -1
  54. package/dist/core/skills.js +203 -0
  55. package/dist/core/skills.js.map +1 -0
  56. package/dist/core/status.js +25 -1
  57. package/dist/core/status.js.map +1 -1
  58. package/dist/core/store.js +118 -0
  59. package/dist/core/store.js.map +1 -0
  60. package/dist/core/tty.js +6 -0
  61. package/dist/core/tty.js.map +1 -1
  62. package/dist/core/ucid.js +25 -0
  63. package/dist/core/ucid.js.map +1 -0
  64. package/dist/core/ui.js +26 -0
  65. package/dist/core/ui.js.map +1 -0
  66. package/dist/core/use-case.js +75 -0
  67. package/dist/core/use-case.js.map +1 -0
  68. package/dist/core/validate.js +22 -0
  69. package/dist/core/validate.js.map +1 -1
  70. package/dist/core/verify.js +154 -0
  71. package/dist/core/verify.js.map +1 -0
  72. package/dist/core/wizard.js +236 -266
  73. package/dist/core/wizard.js.map +1 -1
  74. package/dist/main.js +215 -29
  75. package/dist/main.js.map +1 -1
  76. package/hooks/cursor-otlp.mjs +244 -0
  77. package/hooks/github-pr-marker.mjs +30 -10
  78. package/hooks/jira-ticket-marker.mjs +69 -17
  79. package/hooks/linear-ticket-marker.mjs +68 -12
  80. package/hooks/marker-core.mjs +5 -0
  81. package/hooks/vocabulary.d.mts +35 -0
  82. package/hooks/vocabulary.mjs +109 -0
  83. package/package.json +7 -3
  84. package/skills/mainwave-instrument/SKILL.md +168 -0
  85. package/skills/mainwave-instrument/reference/api.md +142 -0
  86. package/skills/mainwave-instrument/reference/frameworks.md +170 -0
  87. package/skills/mainwave-instrument/reference/troubleshooting.md +131 -0
  88. package/skills/mainwave-setup/SKILL.md +114 -0
@@ -0,0 +1,155 @@
1
+ import { homedir } from 'node:os';
2
+ import { join } from 'node:path';
3
+ import { jsonManagedCodec } from '../core/codecs/json-managed.js';
4
+ import { color } from '../core/format.js';
5
+ import { buildHeaders, HEADER_NAME, headerBearerToken, jsonObjectHeaders } from '../core/headers.js';
6
+ /**
7
+ * Cursor's native OpenTelemetry Export (MAI-1436) — the Enterprise-plan surface,
8
+ * distinct from the `cursor` hooks adapter (any-plan behaviour telemetry).
9
+ *
10
+ * Cursor exports OTLP/HTTP binary-protobuf **metrics + logs** (no traces) to a
11
+ * destination configured in the Cursor dashboard → Team Settings → OpenTelemetry
12
+ * Export: a base URL (Cursor appends `/v1/metrics` and `/v1/logs` itself) plus
13
+ * custom headers, stored encrypted. There is no local config file and no MDM
14
+ * profile format — configuration is console-paste only. So, like the Claude
15
+ * Desktop (Cowork) adapter, this writes a portable reference profile to
16
+ * `~/.mainwave/` purely so the values are recorded and re-run-prefillable, and
17
+ * `printPostSetupInstructions` renders the block the admin pastes into the
18
+ * console (the one place we deliberately print the real bearer key — the admin
19
+ * has to copy it).
20
+ *
21
+ * Tenancy rides on the OTLP headers (`X-Mainwave-UCID` / `X-Mainwave-Source` /
22
+ * `X-Mainwave-User-Email`), the same mechanism the hooks / Codex / Copilot
23
+ * adapters use — the collector promotes them to `mainwave.*` resource attributes
24
+ * for both metrics and logs (MAI-74). The source tag is `coding_agent.cursor`,
25
+ * identical to the hooks path, so both Cursor ingest routes converge on one
26
+ * collector processor.
27
+ *
28
+ * Cursor keeps this export on the Enterprise plan (beta). What flows is cost,
29
+ * tokens and tool-calls (metrics + logs) — no traces, and no per-session
30
+ * behaviour trajectory (that is the hooks adapter's job).
31
+ */
32
+ const SOURCE_VALUE = 'coding_agent.cursor';
33
+ const USER_EMAIL_HEADER = 'X-Mainwave-User-Email';
34
+ const KEY = {
35
+ endpoint: 'otlpEndpoint',
36
+ headers: 'otlpHeaders',
37
+ };
38
+ /** Every key buildEnv can emit — settings.ts clears these on re-run. */
39
+ const MANAGED_ENV_KEYS = [KEY.endpoint, KEY.headers];
40
+ const stripTrailingSlash = (url) => url.replace(/\/+$/, '');
41
+ /** The tenancy/auth headers, plus the developer email when set. */
42
+ const headersFor = ({ ucid, apiKey, userEmail, }) => {
43
+ const headers = buildHeaders({ apiKey, ucid, source: SOURCE_VALUE });
44
+ if (userEmail)
45
+ headers[USER_EMAIL_HEADER] = userEmail;
46
+ return headers;
47
+ };
48
+ const buildEnv = ({ ucid, collectorUrl, apiKey, userEmail, }) => ({
49
+ // The bare collector base — Cursor appends /v1/metrics and /v1/logs itself.
50
+ [KEY.endpoint]: stripTrailingSlash(collectorUrl),
51
+ // Stored as a JSON-object string, the encoding the managed profile + the
52
+ // display masker (jsonObjectHeaders) share.
53
+ [KEY.headers]: jsonObjectHeaders.encode(headersFor({ ucid, apiKey, userEmail })),
54
+ });
55
+ const parseHeaders = (raw) => raw ? jsonObjectHeaders.decode(raw) : undefined;
56
+ const parseEnv = (env) => {
57
+ if (!MANAGED_ENV_KEYS.some((k) => k in env))
58
+ return {};
59
+ const out = {};
60
+ const endpoint = env[KEY.endpoint];
61
+ if (endpoint)
62
+ out.collectorUrl = stripTrailingSlash(endpoint);
63
+ const headers = parseHeaders(env[KEY.headers]);
64
+ if (headers) {
65
+ const token = headerBearerToken(headers[HEADER_NAME.authorization]);
66
+ if (token)
67
+ out.apiKey = token;
68
+ const ucid = headers[HEADER_NAME.ucid];
69
+ if (ucid)
70
+ out.ucid = ucid;
71
+ const userEmail = headers[USER_EMAIL_HEADER];
72
+ if (userEmail)
73
+ out.userEmail = userEmail;
74
+ }
75
+ return out;
76
+ };
77
+ const normalizeForGenericChecks = (env) => {
78
+ const headers = parseHeaders(env[KEY.headers]);
79
+ return {
80
+ endpoint: env[KEY.endpoint],
81
+ auth: headers?.[HEADER_NAME.authorization],
82
+ ucid: headers?.[HEADER_NAME.ucid],
83
+ };
84
+ };
85
+ const collectChecks = () => [
86
+ {
87
+ level: 'info',
88
+ message: 'Cursor OpenTelemetry Export is an Enterprise-plan feature (beta). It carries cost, tokens ' +
89
+ 'and tool-calls (metrics + logs) — no traces, and no per-session behaviour. For behaviour ' +
90
+ 'telemetry on any plan, use the `cursor` hooks adapter instead.',
91
+ },
92
+ ];
93
+ const PROFILE_FILENAME = 'cursor-enterprise-otel.json';
94
+ const globalProfilePath = join(homedir(), '.mainwave', PROFILE_FILENAME);
95
+ const localProfilePath = join('.mainwave', PROFILE_FILENAME);
96
+ const HIERARCHY = [
97
+ {
98
+ id: 'profile',
99
+ label: 'Generated reference profile',
100
+ path: globalProfilePath,
101
+ kind: 'file',
102
+ },
103
+ ];
104
+ /** One `Name: value` line per header, in the order Cursor's console lists them. */
105
+ const headerLines = (input) => Object.entries(headersFor(input)).map(([name, value]) => ` ${name}: ${value}`);
106
+ const printPostSetupInstructions = (input) => {
107
+ const endpoint = stripTrailingSlash(input.collectorUrl);
108
+ return [
109
+ 'Cursor reads OTel export config from the dashboard, not a file — the profile',
110
+ `written to ${globalProfilePath} is a reference copy.`,
111
+ '',
112
+ color.bold('In Cursor → Team Settings → OpenTelemetry Export, add a destination:'),
113
+ ` Endpoint (base URL): ${color.cyan(endpoint)}`,
114
+ ' (Cursor appends /v1/metrics and /v1/logs — enter the base URL only)',
115
+ ' Protocol: OTLP/HTTP protobuf (the only supported option)',
116
+ ' Headers:',
117
+ ...headerLines(input),
118
+ '',
119
+ color.dim('Requires the Enterprise plan (OpenTelemetry Export is in beta there).'),
120
+ color.dim('Cost, tokens and tool-calls flow (metrics + logs); no traces.'),
121
+ 'Changes take effect in about 30 seconds.',
122
+ ].join('\n');
123
+ };
124
+ export const cursorEnterprise = {
125
+ name: 'cursor-enterprise',
126
+ displayName: 'Cursor (Enterprise OTel export)',
127
+ // The OTel export is console-side for this plan, but the editor still reads
128
+ // rules from disk — the skills payload is unaffected by where telemetry config
129
+ // lives, so this adapter carries the same surface as the any-plan one.
130
+ instructionSurface: {
131
+ kind: 'instructions-file',
132
+ global: join(homedir(), '.cursor', 'rules', 'mainwave.mdc'),
133
+ local: join('.cursor', 'rules', 'mainwave.mdc'),
134
+ label: 'rules file',
135
+ },
136
+ paths: {
137
+ local: localProfilePath,
138
+ global: globalProfilePath,
139
+ },
140
+ // A Cursor export with an empty UCID never surfaces on the Use Cases page, so
141
+ // mint one at setup when the admin gives none (unbound, assignable later).
142
+ autoUcid: true,
143
+ // Cursor's export resource carries a Cursor user id, not an email, so stamp the
144
+ // developer's email as X-Mainwave-User-Email for the collector to attribute.
145
+ injectsIdentity: true,
146
+ codec: jsonManagedCodec,
147
+ managedEnvKeys: MANAGED_ENV_KEYS,
148
+ hierarchy: HIERARCHY,
149
+ buildEnv,
150
+ parseEnv,
151
+ collectChecks,
152
+ normalizeForGenericChecks,
153
+ printPostSetupInstructions,
154
+ };
155
+ //# sourceMappingURL=cursor-enterprise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cursor-enterprise.js","sourceRoot":"","sources":["../../src/adapters/cursor-enterprise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAUpG;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,MAAM,YAAY,GAAG,qBAAqB,CAAA;AAC1C,MAAM,iBAAiB,GAAG,uBAAuB,CAAA;AAEjD,MAAM,GAAG,GAAG;IACV,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,aAAa;CACd,C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E,iCAAiC;IAC9C,4EAA4E;IAC5E,+EAA+E;IAC/E,uEAAuE;IACvE,kBAAkB,EAAE;QAClB,IAAI,EAAE,mBAAmB;QACzB,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,CAAC;QAC3D,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,cAAc,CAAC;QAC/C,KAAK,EAAE,YAAY;KACpB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,gBAAgB;QACvB,MAAM,EAAE,iBAAiB;KAC1B;IACD,8EAA8E;IAC9E,2EAA2E;IAC3E,QAAQ,EAAE,IAAI;IACd,gFAAgF;IAChF,6EAA6E;IAC7E,eAAe,EAAE,IAAI;IACrB,KAAK,EAAE,gBAAgB;IACvB,cAAc,EAAE,gBAAgB;IAChC,SAAS,EAAE,SAAS;IACpB,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,yBAAyB;IACzB,0BAA0B;CAC3B,CAAA"}
@@ -0,0 +1,205 @@
1
+ import { homedir } from 'node:os';
2
+ import { join } from 'node:path';
3
+ import { cursorHooksJsonCodec } from '../core/codecs/cursor-hooks-json.js';
4
+ import { envFileCodec } from '../core/codecs/env-file.js';
5
+ import { hasBinary, hasPath } from '../core/detect.js';
6
+ import { buildHeaders, HEADER_NAME, headerBearerToken, kvPairsHeaders } from '../core/headers.js';
7
+ import { buildHookCommand, installedHooksDir } from '../core/markers.js';
8
+ import { VERSION } from '../core/version.js';
9
+ /**
10
+ * Cursor agent hooks adapter (MAI-1433).
11
+ *
12
+ * Cursor has no native OTLP exporter on non-Enterprise plans (its native
13
+ * OpenTelemetry Export is Enterprise-beta and carries cost/tokens, not
14
+ * per-session behaviour). Its hooks system is the only way to instrument it on
15
+ * any plan, so this adapter has a two-surface shape:
16
+ *
17
+ * 1. A managed env file (`~/.mainwave/cursor.env`, mode 0600) holds the OTLP
18
+ * endpoint + tenancy headers — the config the hook script reads at runtime.
19
+ * Cursor exposes no config file of its own for the hook to read this back
20
+ * out of (unlike Claude Code's settings.json / Codex's config.toml), so we
21
+ * own the file. This is the PRIMARY write surface (envFileCodec).
22
+ * 2. `hooks.json` registers our `cursor-otlp.mjs` script for the agent
23
+ * lifecycle events. This is an `additionalWrites` entry through
24
+ * `cursorHooksJsonCodec`, whose merge preserves any hooks the user or an
25
+ * enterprise policy already registered on the same events.
26
+ *
27
+ * The hook script maps each Cursor event to one OTLP span tagged
28
+ * `mainwave.source = coding_agent.cursor` and posts it to the collector.
29
+ * Tenancy (ucid, source) comes from the env file; the developer identity
30
+ * (`user_email`) rides in on Cursor's own per-event payload.
31
+ *
32
+ * What this buys: sessions, tool calls, MCP usage, file edits and stop reasons —
33
+ * enough for trajectories and use-case attribution, on ANY Cursor plan. What it
34
+ * does NOT buy: tokens or cost. Those stay behind the Enterprise Admin API
35
+ * (MAI-1434) and the native OTel export (MAI-1432).
36
+ */
37
+ const SOURCE_VALUE = 'coding_agent.cursor';
38
+ // OTLP config surface — the env file the hook reads. Mirrors the Copilot CLI
39
+ // adapter: endpoint + tenancy headers, tenancy carried on `X-Mainwave-*`.
40
+ const CONFIG_MANAGED_KEYS = ['OTEL_EXPORTER_OTLP_ENDPOINT', 'OTEL_EXPORTER_OTLP_HEADERS'];
41
+ const CONFIG_GLOBAL = join(homedir(), '.mainwave', 'cursor.env');
42
+ const CONFIG_LOCAL = join('.mainwave', 'cursor.env');
43
+ const HOOKS_GLOBAL = join(homedir(), '.cursor', 'hooks.json');
44
+ const HOOKS_LOCAL = join('.cursor', 'hooks.json');
45
+ // Cursor's enterprise/managed hooks file — highest precedence, and the tier the
46
+ // wizard can't write (admin-owned). Platform-specific per Cursor's docs.
47
+ const HOOKS_ENTERPRISE = process.platform === 'win32'
48
+ ? 'C:\\ProgramData\\Cursor\\hooks.json'
49
+ : process.platform === 'darwin'
50
+ ? '/Library/Application Support/Cursor/hooks.json'
51
+ : '/etc/cursor/hooks.json';
52
+ // Every hooks.json layer doctor inspects for our behaviour hook, highest→lowest
53
+ // precedence (Enterprise → Project → User), matching Cursor's own resolution.
54
+ const HOOKS_LAYERS = [
55
+ { id: 'managed', label: 'Enterprise (managed)', path: HOOKS_ENTERPRISE, kind: 'file' },
56
+ { id: 'project', label: 'Project', path: HOOKS_LOCAL, kind: 'file' },
57
+ { id: 'user', label: 'User (global)', path: HOOKS_GLOBAL, kind: 'file' },
58
+ ];
59
+ // Cursor agent-lifecycle events always instrumented, plus the prompt event that
60
+ // is registered only under the prompt opt-in. The hook command is identical for
61
+ // every event (cursor-otlp.mjs dispatches on `hook_event_name` from stdin).
62
+ const ALWAYS_EVENTS = [
63
+ 'sessionStart',
64
+ 'postToolUse',
65
+ 'beforeMCPExecution',
66
+ 'afterFileEdit',
67
+ 'stop',
68
+ ];
69
+ const PROMPT_EVENT = 'beforeSubmitPrompt';
70
+ const hookKey = (event) => `hooks.${event}`;
71
+ /** Every hooks.json key this adapter can emit — cleared on re-run so opting the
72
+ * prompt event out removes it while foreign hooks on other events survive. */
73
+ const HOOKS_MANAGED_KEYS = [...ALWAYS_EVENTS, PROMPT_EVENT].map(hookKey);
74
+ const hookCommand = () => buildHookCommand(join(installedHooksDir(), 'cursor-otlp.mjs'), VERSION);
75
+ const stripTrailingSlash = (url) => url.replace(/\/+$/, '');
76
+ const buildHeadersValue = (apiKey, ucid) => kvPairsHeaders.encode(buildHeaders({ apiKey, ucid, source: SOURCE_VALUE }));
77
+ const parseHeaders = (raw) => kvPairsHeaders.decode(raw) ?? {};
78
+ const buildEnv = ({ ucid, collectorUrl, apiKey }) => ({
79
+ OTEL_EXPORTER_OTLP_ENDPOINT: stripTrailingSlash(collectorUrl),
80
+ OTEL_EXPORTER_OTLP_HEADERS: buildHeadersValue(apiKey, ucid),
81
+ });
82
+ const parseEnv = (env) => {
83
+ const hasAnyManaged = CONFIG_MANAGED_KEYS.some((k) => k in env);
84
+ if (!hasAnyManaged)
85
+ return {};
86
+ const out = {};
87
+ const endpoint = env.OTEL_EXPORTER_OTLP_ENDPOINT;
88
+ if (endpoint)
89
+ out.collectorUrl = stripTrailingSlash(endpoint);
90
+ const raw = env.OTEL_EXPORTER_OTLP_HEADERS;
91
+ if (raw) {
92
+ const headers = parseHeaders(raw);
93
+ const token = headerBearerToken(headers[HEADER_NAME.authorization]);
94
+ if (token)
95
+ out.apiKey = token;
96
+ const ucid = headers[HEADER_NAME.ucid];
97
+ if (ucid)
98
+ out.ucid = ucid;
99
+ }
100
+ return out;
101
+ };
102
+ const normalizeForGenericChecks = (env) => {
103
+ const endpoint = env.OTEL_EXPORTER_OTLP_ENDPOINT;
104
+ const raw = env.OTEL_EXPORTER_OTLP_HEADERS;
105
+ let auth;
106
+ let ucid;
107
+ if (raw) {
108
+ const headers = parseHeaders(raw);
109
+ auth = headers[HEADER_NAME.authorization];
110
+ ucid = headers[HEADER_NAME.ucid];
111
+ }
112
+ return { endpoint, auth, ucid };
113
+ };
114
+ const collectChecks = () => [
115
+ {
116
+ level: 'info',
117
+ message: 'Cursor hooks carry behaviour telemetry only (sessions, tool calls, MCP, file edits) — ' +
118
+ 'no tokens or cost. Cursor keeps those behind its Enterprise plan (native OTel export / ' +
119
+ 'Admin API); this adapter works on any plan.',
120
+ },
121
+ ];
122
+ /**
123
+ * The hooks.json registration. Its build/parse operate on the flat
124
+ * `hooks.<event>` → command keys the Cursor hooks codec round-trips. The prompt
125
+ * event is included only under the prompt opt-in; the codec clears it on a
126
+ * re-run that opts back out.
127
+ */
128
+ const hooksWrite = {
129
+ id: 'hooks-json',
130
+ label: 'Cursor hooks',
131
+ codec: cursorHooksJsonCodec,
132
+ path: HOOKS_GLOBAL,
133
+ localPath: HOOKS_LOCAL,
134
+ managedKeys: HOOKS_MANAGED_KEYS,
135
+ build: ({ optIns }) => {
136
+ const command = hookCommand();
137
+ const events = [...ALWAYS_EVENTS];
138
+ if (optIns.userPrompts)
139
+ events.push(PROMPT_EVENT);
140
+ return Object.fromEntries(events.map((e) => [hookKey(e), command]));
141
+ },
142
+ parse: (env) => {
143
+ if (!HOOKS_MANAGED_KEYS.some((k) => k in env))
144
+ return {};
145
+ // The only opt-in Cursor gates is prompt content, witnessed by whether the
146
+ // prompt event is registered. Tool telemetry is always on, so its opt-ins
147
+ // read back as enabled.
148
+ return {
149
+ optIns: {
150
+ userPrompts: hookKey(PROMPT_EVENT) in env,
151
+ toolDetails: true,
152
+ toolContent: true,
153
+ },
154
+ };
155
+ },
156
+ };
157
+ // Doctor's read surface for the generic OTLP checks (endpoint/auth/ucid) is the
158
+ // managed env file, read through the primary envFileCodec. The hooks.json layers
159
+ // (enterprise/project/user) are a separate, differently-shaped surface; their
160
+ // inspection is tracked as a follow-up.
161
+ const HIERARCHY = [
162
+ { id: 'projectLocal', label: 'Project (local)', path: CONFIG_LOCAL, kind: 'file' },
163
+ { id: 'user', label: 'User (global)', path: CONFIG_GLOBAL, kind: 'file' },
164
+ ];
165
+ export const cursor = {
166
+ name: 'cursor',
167
+ displayName: 'Cursor',
168
+ // Cursor rules are one file per rule under `rules/`, so the payload gets its
169
+ // own rather than editing a rule someone else wrote.
170
+ instructionSurface: {
171
+ kind: 'instructions-file',
172
+ global: join(homedir(), '.cursor', 'rules', 'mainwave.mdc'),
173
+ local: join('.cursor', 'rules', 'mainwave.mdc'),
174
+ label: 'rules file',
175
+ },
176
+ paths: {
177
+ local: CONFIG_LOCAL,
178
+ global: CONFIG_GLOBAL,
179
+ },
180
+ // A Cursor session with an empty UCID never surfaces on the Use Cases page, so
181
+ // mint one at setup when the user gives none — the runs land as an unbound
182
+ // UCID they can assign to a use case (same rationale as Codex, MAI-1382).
183
+ autoUcid: true,
184
+ runInstruction: 'cursor (restart any open window so the hooks reload)',
185
+ detect: () => hasPath(join(homedir(), '.cursor')) || hasBinary('cursor'),
186
+ codec: envFileCodec,
187
+ managedEnvKeys: CONFIG_MANAGED_KEYS,
188
+ hierarchy: HIERARCHY,
189
+ buildEnv,
190
+ parseEnv,
191
+ collectChecks,
192
+ normalizeForGenericChecks,
193
+ additionalWrites: [hooksWrite],
194
+ // Hook scripts copied to ~/.mainwave/hooks/ before the hooks.json write, so the
195
+ // registered command never points at a script that isn't there yet.
196
+ bundledHookScripts: ['marker-core.mjs', 'vocabulary.mjs', 'cursor-otlp.mjs'],
197
+ // Doctor's read surface for the hook registration — every hooks.json layer,
198
+ // including the enterprise tier the wizard never writes.
199
+ behaviourHooks: {
200
+ layers: HOOKS_LAYERS,
201
+ codec: cursorHooksJsonCodec,
202
+ script: 'cursor-otlp.mjs',
203
+ },
204
+ };
205
+ //# sourceMappingURL=cursor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/adapters/cursor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACjG,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAW5C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,MAAM,YAAY,GAAG,qBAAqB,CAAA;AAE1C,6EAA6E;AAC7E,0EAA0E;AAC1E,MAAM,mBAAmB,GAAG,CAAC,6BAA6B,EAAE,4BAA4B,CAAU,CAAA;AAElG,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,YAAY,CAAC,CAAA;AAChE,MAAM,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,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S,EAAE,OAAO,EAAE,cAAc,CAAC;QAC3D,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,cAAc,CAAC;QAC/C,KAAK,EAAE,YAAY;KACpB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,YAAY;QACnB,MAAM,EAAE,aAAa;KACtB;IACD,+EAA+E;IAC/E,2EAA2E;IAC3E,0EAA0E;IAC1E,QAAQ,EAAE,IAAI;IACd,cAAc,EAAE,sDAAsD;IACtE,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC;IACxE,KAAK,EAAE,YAAY;IACnB,cAAc,EAAE,mBAAmB;IACnC,SAAS,EAAE,SAAS;IACpB,QAAQ;IACR,QAAQ;IACR,aAAa;IACb,yBAAyB;IACzB,gBAAgB,EAAE,CAAC,UAAU,CAAC;IAC9B,gFAAgF;IAChF,oEAAoE;IACpE,kBAAkB,EAAE,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,iBAAiB,CAAC;IAC5E,4EAA4E;IAC5E,yDAAyD;IACzD,cAAc,EAAE;QACd,MAAM,EAAE,YAAY;QACpB,KAAK,EAAE,oBAAoB;QAC3B,MAAM,EAAE,iBAAiB;KAC1B;CACF,CAAA"}
@@ -3,12 +3,16 @@ import { claudeDesktop } from './claude-desktop.js';
3
3
  import { codexCli } from './codex-cli.js';
4
4
  import { copilotChat } from './copilot-chat.js';
5
5
  import { copilotCli } from './copilot-cli.js';
6
+ import { cursor } from './cursor.js';
7
+ import { cursorEnterprise } from './cursor-enterprise.js';
6
8
  export const adapters = {
7
9
  [claudeCode.name]: claudeCode,
8
10
  [claudeDesktop.name]: claudeDesktop,
9
11
  [codexCli.name]: codexCli,
10
12
  [copilotChat.name]: copilotChat,
11
13
  [copilotCli.name]: copilotCli,
14
+ [cursor.name]: cursor,
15
+ [cursorEnterprise.name]: cursorEnterprise,
12
16
  };
13
17
  export const adapterNames = () => Object.keys(adapters).sort();
14
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAI7C,MAAM,CAAC,MAAM,QAAQ,GAA4B;IAC/C,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,UAAU;IAC7B,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,aAAa;IACnC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ;IACzB,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,WAAW;IAC/B,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,UAAU;CAC9B,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,GAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/adapters/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAIzD,MAAM,CAAC,MAAM,QAAQ,GAA4B;IAC/C,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,UAAU;IAC7B,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,aAAa;IACnC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,QAAQ;IACzB,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,WAAW;IAC/B,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,UAAU;IAC7B,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM;IACrB,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,gBAAgB;CAC1C,CAAA;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,GAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,EAAE,CAAA"}
@@ -0,0 +1,3 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export {};
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,qDAAqD"}
@@ -0,0 +1,3 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ export {};
3
+ //# sourceMappingURL=types.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.gen.js","sourceRoot":"","sources":["../../src/api/types.gen.ts"],"names":[],"mappings":"AAAA,qDAAqD"}