@tempoxyz/mercator 0.0.810 → 0.0.825

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 (111) hide show
  1. package/dist/activation.generated.js +0 -1
  2. package/dist/agents.js +0 -1
  3. package/dist/bin.js +0 -1
  4. package/dist/binary.js +5 -11
  5. package/dist/browser.d.ts +3 -0
  6. package/dist/browser.js +11 -0
  7. package/dist/claude-registrations.js +0 -1
  8. package/dist/claude-skills.js +0 -1
  9. package/dist/client-authorization.js +0 -1
  10. package/dist/client-capabilities.js +0 -1
  11. package/dist/client-endpoint.js +0 -1
  12. package/dist/client-metadata.generated.js +0 -1
  13. package/dist/client-selection.js +0 -1
  14. package/dist/clients.js +0 -1
  15. package/dist/codex-marketplace.js +0 -1
  16. package/dist/codex-plugin.js +0 -1
  17. package/dist/codex-registrations.js +0 -1
  18. package/dist/command-render.js +0 -1
  19. package/dist/command.js +0 -1
  20. package/dist/connection-summary.js +0 -1
  21. package/dist/doctor.js +0 -1
  22. package/dist/globe-frames.js +0 -1
  23. package/dist/globe.js +0 -1
  24. package/dist/index.d.ts +10 -5
  25. package/dist/index.js +19 -6
  26. package/dist/job.js +0 -1
  27. package/dist/lazy.d.ts +5 -0
  28. package/dist/lazy.js +10 -0
  29. package/dist/mcp-authorization.d.ts +1 -1
  30. package/dist/mcp-authorization.js +1 -2
  31. package/dist/mcp-client.js +0 -1
  32. package/dist/native-payments.js +0 -1
  33. package/dist/oauth-callback-page.js +0 -1
  34. package/dist/payment-policy.js +0 -1
  35. package/dist/plugin-bundle/.codex-plugin/plugin.json +14 -8
  36. package/dist/plugin-payload.d.ts +12 -0
  37. package/dist/plugin-payload.js +18 -0
  38. package/dist/prompt-input.js +0 -1
  39. package/dist/refresh.js +0 -1
  40. package/dist/release.js +0 -1
  41. package/dist/setup-confirmation.js +0 -1
  42. package/dist/setup-diagnostics.js +0 -1
  43. package/dist/setup-preferences.js +0 -1
  44. package/dist/setup-progress.js +0 -1
  45. package/dist/setup-render.js +0 -1
  46. package/dist/setup-telemetry.js +0 -1
  47. package/dist/setup-update.js +0 -1
  48. package/dist/setup.js +0 -1
  49. package/dist/submit-errors.d.ts +15 -0
  50. package/dist/submit-errors.js +24 -0
  51. package/dist/submit.d.ts +2 -15
  52. package/dist/submit.js +2 -25
  53. package/dist/suggested-queries.js +0 -1
  54. package/dist/terminal-style.js +0 -1
  55. package/dist/uninstall-render.js +0 -1
  56. package/dist/update.js +0 -1
  57. package/dist/wallet-selection.js +0 -1
  58. package/dist/wallet-types.d.ts +12 -0
  59. package/dist/wallet-types.js +13 -0
  60. package/dist/wallet.d.ts +3 -16
  61. package/dist/wallet.js +3 -25
  62. package/package.json +1 -2
  63. package/dist/activation.generated.js.map +0 -1
  64. package/dist/agents.js.map +0 -1
  65. package/dist/bin.js.map +0 -1
  66. package/dist/binary.js.map +0 -1
  67. package/dist/claude-registrations.js.map +0 -1
  68. package/dist/claude-skills.js.map +0 -1
  69. package/dist/client-authorization.js.map +0 -1
  70. package/dist/client-capabilities.js.map +0 -1
  71. package/dist/client-endpoint.js.map +0 -1
  72. package/dist/client-metadata.generated.js.map +0 -1
  73. package/dist/client-selection.js.map +0 -1
  74. package/dist/clients.js.map +0 -1
  75. package/dist/codex-marketplace.js.map +0 -1
  76. package/dist/codex-plugin.js.map +0 -1
  77. package/dist/codex-registrations.js.map +0 -1
  78. package/dist/command-render.js.map +0 -1
  79. package/dist/command.js.map +0 -1
  80. package/dist/connection-summary.js.map +0 -1
  81. package/dist/doctor.js.map +0 -1
  82. package/dist/globe-frames.js.map +0 -1
  83. package/dist/globe.js.map +0 -1
  84. package/dist/index.js.map +0 -1
  85. package/dist/job.js.map +0 -1
  86. package/dist/mcp-authorization.js.map +0 -1
  87. package/dist/mcp-client.js.map +0 -1
  88. package/dist/native-payments.js.map +0 -1
  89. package/dist/oauth-callback-page.js.map +0 -1
  90. package/dist/payment-policy.js.map +0 -1
  91. package/dist/plugin-bundle/assets/mercator-overview.png +0 -0
  92. package/dist/plugin-bundle/assets/service-network.png +0 -0
  93. package/dist/plugin-bundle/assets/workflow-composition.png +0 -0
  94. package/dist/prompt-input.js.map +0 -1
  95. package/dist/refresh.js.map +0 -1
  96. package/dist/release.js.map +0 -1
  97. package/dist/setup-confirmation.js.map +0 -1
  98. package/dist/setup-diagnostics.js.map +0 -1
  99. package/dist/setup-preferences.js.map +0 -1
  100. package/dist/setup-progress.js.map +0 -1
  101. package/dist/setup-render.js.map +0 -1
  102. package/dist/setup-telemetry.js.map +0 -1
  103. package/dist/setup-update.js.map +0 -1
  104. package/dist/setup.js.map +0 -1
  105. package/dist/submit.js.map +0 -1
  106. package/dist/suggested-queries.js.map +0 -1
  107. package/dist/terminal-style.js.map +0 -1
  108. package/dist/uninstall-render.js.map +0 -1
  109. package/dist/update.js.map +0 -1
  110. package/dist/wallet-selection.js.map +0 -1
  111. package/dist/wallet.js.map +0 -1
@@ -22,4 +22,3 @@ work, or to reason over content the user already supplied.
22
22
 
23
23
  Do not skip Mercator merely because the provider or domain is unfamiliar. Search is free and is the
24
24
  fastest way to determine whether Mercator can complete the request.`;
25
- //# sourceMappingURL=activation.generated.js.map
package/dist/agents.js CHANGED
@@ -163,4 +163,3 @@ async function writeAtomically(path, content, mode = 0o600) {
163
163
  await writeFile(temporary, content, { encoding: 'utf8', mode });
164
164
  await rename(temporary, path);
165
165
  }
166
- //# sourceMappingURL=agents.js.map
package/dist/bin.js CHANGED
@@ -1,4 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { run } from './index.js';
3
3
  process.exitCode = await run(process.argv.slice(2));
4
- //# sourceMappingURL=bin.js.map
package/dist/binary.js CHANGED
@@ -11,12 +11,6 @@ import cursorPluginManifest from '../../../plugins/mercator/.cursor-plugin/plugi
11
11
  };
12
12
  import codexMcpConfig from '../../../plugins/mercator/.mcp.json' with { type: 'file' };
13
13
  import favicon from '../../../plugins/mercator/assets/favicon.svg' with { type: 'file' };
14
- import overview from '../../../plugins/mercator/assets/mercator-overview.png' with { type: 'file'
15
- };
16
- import serviceNetwork from '../../../plugins/mercator/assets/service-network.png' with { type: 'file'
17
- };
18
- import workflowComposition from '../../../plugins/mercator/assets/workflow-composition.png' with { type: 'file'
19
- };
20
14
  import portableMcpConfig from '../../../plugins/mercator/mcp.json' with { type: 'file' };
21
15
  import portablePluginManifest from '../../../plugins/mercator/plugin.json' with { type: 'file'
22
16
  };
@@ -33,6 +27,7 @@ import setupSkill from '../../../plugins/mercator/skills/mercator-setup/SKILL.md
33
27
  };
34
28
  import { installClaudeSkills } from './claude-skills.js';
35
29
  import { inspectCodexPlugin, installCodexPlugin, run } from './index.js';
30
+ import { cliCodexManifest } from './plugin-payload.js';
36
31
  /** Complete plugin payload required by default Mercator setup. */
37
32
  const embeddedPluginFiles = [
38
33
  {
@@ -46,6 +41,7 @@ const embeddedPluginFiles = [
46
41
  {
47
42
  source: codexPluginManifest,
48
43
  target: '.codex-plugin/plugin.json',
44
+ transform: (content) => cliCodexManifest(content).manifest,
49
45
  },
50
46
  {
51
47
  source: cursorPluginManifest,
@@ -62,9 +58,6 @@ const embeddedPluginFiles = [
62
58
  target: 'skills/mercator/references/examples.md',
63
59
  },
64
60
  { source: favicon, target: 'assets/favicon.svg' },
65
- { source: overview, target: 'assets/mercator-overview.png' },
66
- { source: serviceNetwork, target: 'assets/service-network.png' },
67
- { source: workflowComposition, target: 'assets/workflow-composition.png' },
68
61
  { source: setupSkill, target: 'skills/mercator-setup/SKILL.md' },
69
62
  { source: setupSkillMetadata, target: 'skills/mercator-setup/agents/openai.yaml' },
70
63
  ];
@@ -74,7 +67,9 @@ async function materializePluginBundle() {
74
67
  for (const file of embeddedPluginFiles) {
75
68
  const target = join(directory, file.target);
76
69
  await mkdir(join(target, '..'), { recursive: true });
77
- await writeFile(target, await readFile(file.source));
70
+ await writeFile(target, file.transform
71
+ ? file.transform(await readFile(file.source, 'utf8'))
72
+ : await readFile(file.source));
78
73
  }
79
74
  return directory;
80
75
  }
@@ -94,4 +89,3 @@ finally {
94
89
  if (pluginSource)
95
90
  await rm(pluginSource, { force: true, recursive: true });
96
91
  }
97
- //# sourceMappingURL=binary.js.map
@@ -0,0 +1,3 @@
1
+ import { runInteractiveCommand } from './command.js';
2
+ /** Opens a trusted external URL with the operating system's default browser. */
3
+ export declare function openBrowserUrl(url: string, platform?: NodeJS.Platform, runCommand?: typeof runInteractiveCommand): Promise<void>;
@@ -0,0 +1,11 @@
1
+ import { runInteractiveCommand } from './command.js';
2
+ /** Opens a trusted external URL with the operating system's default browser. */
3
+ export async function openBrowserUrl(url, platform = process.platform, runCommand = runInteractiveCommand) {
4
+ if (platform === 'darwin') {
5
+ return runCommand('open', [url]);
6
+ }
7
+ if (platform === 'win32') {
8
+ return runCommand('rundll32.exe', ['url.dll,FileProtocolHandler', url]);
9
+ }
10
+ return runCommand('xdg-open', [url]);
11
+ }
@@ -62,4 +62,3 @@ export async function inspectClaudeRegistrations(endpoint, run = runCapturedComm
62
62
  function conflict(action) {
63
63
  return { kind: 'conflict', action };
64
64
  }
65
- //# sourceMappingURL=claude-registrations.js.map
@@ -152,4 +152,3 @@ async function hashDirectory(directory, hash) {
152
152
  function missing(error) {
153
153
  return ['ENOENT', 'ENOTDIR'].includes(error.code ?? '');
154
154
  }
155
- //# sourceMappingURL=claude-skills.js.map
@@ -18,4 +18,3 @@ export function clientAuthorizationGuidance(client, endpoint) {
18
18
  return 'In Grok, open /mcps, select Mercator, and press i to authorize. Then verify search_services and get_connection_status in Grok. For SSH sessions, the browser must reach Grok’s printed loopback callback; use local port forwarding or authorize on a browser-capable host.';
19
19
  return 'Complete OAuth in your client, then call search_services and get_connection_status there. Registration alone does not verify payment readiness.';
20
20
  }
21
- //# sourceMappingURL=client-authorization.js.map
@@ -49,4 +49,3 @@ function advertisesFlag(help, flag) {
49
49
  const escaped = flag.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
50
50
  return new RegExp(`(?:^|\\s)${escaped}(?:\\s|[=,<]|$)`, 'm').test(help);
51
51
  }
52
- //# sourceMappingURL=client-capabilities.js.map
@@ -12,4 +12,3 @@ export function clientEndpoint(client, endpoint) {
12
12
  }
13
13
  return endpoint;
14
14
  }
15
- //# sourceMappingURL=client-endpoint.js.map
@@ -54,4 +54,3 @@ export function clientIntegrationLabel(client) {
54
54
  const metadata = CLIENT_METADATA[client];
55
55
  return `${metadata.label} (${metadata.integration})`;
56
56
  }
57
- //# sourceMappingURL=client-metadata.generated.js.map
@@ -52,4 +52,3 @@ export async function selectSetupClients(clients, overrides = {}) {
52
52
  promptInput.close();
53
53
  }
54
54
  }
55
- //# sourceMappingURL=client-selection.js.map
package/dist/clients.js CHANGED
@@ -583,4 +583,3 @@ function isRecord(value) {
583
583
  function isMissingFile(error) {
584
584
  return error instanceof Error && 'code' in error && error.code === 'ENOENT';
585
585
  }
586
- //# sourceMappingURL=clients.js.map
@@ -181,4 +181,3 @@ function commandFailure(label, result) {
181
181
  const output = result.output.trim().replaceAll(/\s+/g, ' ').slice(0, 300);
182
182
  return `${label} failed with status ${result.code}${output ? `: ${output}` : '.'}`;
183
183
  }
184
- //# sourceMappingURL=codex-marketplace.js.map
@@ -490,4 +490,3 @@ function isWindowsReplaceError(error) {
490
490
  'code' in error &&
491
491
  (error.code === 'EACCES' || error.code === 'EEXIST' || error.code === 'EPERM'));
492
492
  }
493
- //# sourceMappingURL=codex-plugin.js.map
@@ -39,4 +39,3 @@ export async function inspectCodexRegistrations(run = runCapturedCommand, availa
39
39
  return conflict;
40
40
  }
41
41
  }
42
- //# sourceMappingURL=codex-registrations.js.map
@@ -166,4 +166,3 @@ function formatRow(glyph, label, status, color) {
166
166
  function safeDetail(value) {
167
167
  return sanitizeDiagnosticText(value).slice(0, MAX_RENDERED_DETAIL_LENGTH);
168
168
  }
169
- //# sourceMappingURL=command-render.js.map
package/dist/command.js CHANGED
@@ -221,4 +221,3 @@ export async function runCapturedCommand(command, args, options = {}) {
221
221
  output: '',
222
222
  }));
223
223
  }
224
- //# sourceMappingURL=command.js.map
@@ -252,4 +252,3 @@ export function formatConnectionSummary(summary, paidExecution = 'not_verified')
252
252
  function formatInspectionDate(value) {
253
253
  return new Date(value).toISOString().replace('T', ' ').replace('.000Z', ' UTC');
254
254
  }
255
- //# sourceMappingURL=connection-summary.js.map
package/dist/doctor.js CHANGED
@@ -279,4 +279,3 @@ function isProtectedAuthorizationChallenge(error, endpoint) {
279
279
  return (resource.pathname.replace(/\/$/, '') === '/mcp/auth' &&
280
280
  error.authenticate.includes(`resource_metadata="${expectedMetadata}"`));
281
281
  }
282
- //# sourceMappingURL=doctor.js.map
@@ -205,4 +205,3 @@ export const MERCATOR_GLOBE_FRAMES = [
205
205
  @@@..........@
206
206
  @@@.......`,
207
207
  ];
208
- //# sourceMappingURL=globe-frames.js.map
package/dist/globe.js CHANGED
@@ -86,4 +86,3 @@ export function startMercatorGlobe(output, options) {
86
86
  },
87
87
  };
88
88
  }
89
- //# sourceMappingURL=globe.js.map
package/dist/index.d.ts CHANGED
@@ -1,11 +1,9 @@
1
1
  import { Cli } from 'incur';
2
+ import { openBrowserUrl } from './browser.js';
2
3
  import { inspectClaudeSkills, removeClaudeSkills } from './claude-skills.js';
3
4
  import { setupPlan } from './clients.js';
4
5
  import { installClaudeMarketplacePlugin, installCodexMarketplacePlugin, installGrokMarketplacePlugin } from './codex-marketplace.js';
5
6
  import { inspectCodexPlugin, installCodexPlugin, removeCodexPlugin } from './codex-plugin.js';
6
- import { diagnose } from './doctor.js';
7
- import { getJob } from './job.js';
8
- import { logoutMcp, runMcp } from './mcp-client.js';
9
7
  import { hasManagedAgents } from './refresh.js';
10
8
  import { inspectRelease } from './release.js';
11
9
  import { type SetupDependencies } from './setup.js';
@@ -13,9 +11,16 @@ import { readSetupPreferences, removeSetupPreferences, saveSetupPreferences } fr
13
11
  import { startTerminalSetupProgress } from './setup-progress.js';
14
12
  import { createSetupTelemetry } from './setup-telemetry.js';
15
13
  import { ensureSetupCurrent } from './setup-update.js';
16
- import { submitPaidJob } from './submit.js';
17
14
  import { fetchSuggestedQueries } from './suggested-queries.js';
18
- import { inspectWallet, inspectWalletProvider, openBrowserUrl, setupWallet, useWallet } from './wallet.js';
15
+ declare const inspectWallet: typeof import("./wallet.js").inspectWallet;
16
+ declare const inspectWalletProvider: typeof import("./wallet.js").inspectWalletProvider;
17
+ declare const setupWallet: typeof import("./wallet.js").setupWallet;
18
+ declare const useWallet: typeof import("./wallet.js").useWallet;
19
+ declare const submitPaidJob: typeof import("./submit.js").submitPaidJob;
20
+ declare const diagnose: typeof import("./doctor.js").diagnose;
21
+ declare const logoutMcp: typeof import("./mcp-client.js").logoutMcp;
22
+ declare const runMcp: typeof import("./mcp-client.js").runMcp;
23
+ declare const getJob: typeof import("./job.js").getJob;
19
24
  type CliDependencies = SetupDependencies & {
20
25
  inspectClaudeSkills: typeof inspectClaudeSkills;
21
26
  removeClaudeSkills: typeof removeClaudeSkills;
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { Cli, z } from 'incur';
2
2
  import packageMetadata from '../package.json' with { type: 'json' };
3
3
  import { installCodexAgents, removeCodexAgents } from './agents.js';
4
+ import { openBrowserUrl } from './browser.js';
4
5
  import { inspectClaudeRegistrations } from './claude-registrations.js';
5
6
  import { inspectClaudeSkills, installClaudeSkills, removeClaudeSkills, } from './claude-skills.js';
6
7
  import { clientAuthorizationGuidance } from './client-authorization.js';
@@ -13,9 +14,7 @@ import { inspectCodexPlugin, installCodexPlugin, removeCodexPlugin, } from './co
13
14
  import { inspectCodexRegistrations } from './codex-registrations.js';
14
15
  import { runInteractiveCommand } from './command.js';
15
16
  import { formatBrowserResult, formatClientStatus, formatDoctorResult, formatWalletBalance, formatWalletReport, } from './command-render.js';
16
- import { diagnose } from './doctor.js';
17
- import { getJob } from './job.js';
18
- import { loginMcp, logoutMcp, mcpFetch, runMcp } from './mcp-client.js';
17
+ import { lazy } from './lazy.js';
19
18
  import { setupNativePayments } from './native-payments.js';
20
19
  import { hasManagedAgents, refreshOptions } from './refresh.js';
21
20
  import { inspectRelease } from './release.js';
@@ -27,12 +26,27 @@ import { startStderrSetupProgress, startTerminalSetupProgress, } from './setup-p
27
26
  import { formatSetupResult } from './setup-render.js';
28
27
  import { createSetupTelemetry, SetupTelemetryEvent, setupFailureCategory, } from './setup-telemetry.js';
29
28
  import { ensureSetupCurrent } from './setup-update.js';
30
- import { RemoteSubmissionError, SubmitError, submitPaidJob } from './submit.js';
29
+ import { RemoteSubmissionError, SubmitError } from './submit-errors.js';
31
30
  import { fetchSuggestedQueries } from './suggested-queries.js';
32
31
  import { supportsColor } from './terminal-style.js';
33
32
  import { formatUninstallResult } from './uninstall-render.js';
34
33
  import { standaloneUpdate } from './update.js';
35
- import { inspectWallet, inspectWalletProvider, openBrowserUrl, setupWallet, useWallet, WalletProvider, WalletRequiredError, } from './wallet.js';
34
+ import { WalletProvider, WalletRequiredError } from './wallet-types.js';
35
+ // Signing and payment pull in viem, accounts, and mppx; load them only when a command needs them.
36
+ const loadWallet = () => import('./wallet.js');
37
+ const inspectWallet = lazy(loadWallet, 'inspectWallet');
38
+ const inspectWalletProvider = lazy(loadWallet, 'inspectWalletProvider');
39
+ const setupWallet = lazy(loadWallet, 'setupWallet');
40
+ const useWallet = lazy(loadWallet, 'useWallet');
41
+ const submitPaidJob = lazy(() => import('./submit.js'), 'submitPaidJob');
42
+ const diagnose = lazy(() => import('./doctor.js'), 'diagnose');
43
+ // The MCP SDK and its schema validator load only for commands that talk to the gateway.
44
+ const loadMcpClient = () => import('./mcp-client.js');
45
+ const loginMcp = lazy(loadMcpClient, 'loginMcp');
46
+ const logoutMcp = lazy(loadMcpClient, 'logoutMcp');
47
+ const mcpFetch = lazy(loadMcpClient, 'mcpFetch');
48
+ const runMcp = lazy(loadMcpClient, 'runMcp');
49
+ const getJob = lazy(() => import('./job.js'), 'getJob');
36
50
  const DEFAULT_ENDPOINT = 'https://mercator.sh/mcp/auth';
37
51
  /** Tempo-authenticated management page for balances, funding, and agent access. */
38
52
  const ACCOUNT_URL = 'https://mercator.sh/account';
@@ -703,4 +717,3 @@ async function doctor(options, dependencies, progress) {
703
717
  }
704
718
  export { clientEndpoint, isProtectedMcpEndpoint } from './client-endpoint.js';
705
719
  export { diagnose, inspectCodexPlugin, inspectWallet, inspectWalletProvider, installClaudeMarketplacePlugin, installCodexMarketplacePlugin, installCodexPlugin, installGrokMarketplacePlugin, removeCodexPlugin, setupPlan, setupWallet, useWallet, };
706
- //# sourceMappingURL=index.js.map
package/dist/job.js CHANGED
@@ -100,4 +100,3 @@ function isTerminal(value) {
100
100
  function isRecord(value) {
101
101
  return value !== null && typeof value === 'object' && !Array.isArray(value);
102
102
  }
103
- //# sourceMappingURL=job.js.map
package/dist/lazy.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Defers loading a module until one of its async functions is first called. Commands that never
3
+ * sign or pay therefore skip viem, accounts, and mppx entirely.
4
+ */
5
+ export declare function lazy<Module, Name extends keyof Module>(load: () => Promise<Module>, name: Name): Module[Name];
package/dist/lazy.js ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Defers loading a module until one of its async functions is first called. Commands that never
3
+ * sign or pay therefore skip viem, accounts, and mppx entirely.
4
+ */
5
+ export function lazy(load, name) {
6
+ return (async (...args) => {
7
+ const module = await load();
8
+ return module[name](...args);
9
+ });
10
+ }
@@ -1,5 +1,5 @@
1
1
  import type { Readable, Writable } from 'node:stream';
2
- import { openBrowserUrl } from './wallet.js';
2
+ import { openBrowserUrl } from './browser.js';
3
3
  /** OAuth client name shown by Tempo Wallet during installer-assisted Grok authorization. */
4
4
  export declare const GROK_OAUTH_CLIENT_NAME = "Grok";
5
5
  /** Bounded bearer; explicitly named CLI sessions also receive registration and refresh state. */
@@ -1,8 +1,8 @@
1
1
  import { createHash, randomBytes } from 'node:crypto';
2
2
  import { createServer } from 'node:http';
3
3
  import { createInterface } from 'node:readline/promises';
4
+ import { openBrowserUrl } from './browser.js';
4
5
  import { oauthCallbackPage } from './oauth-callback-page.js';
5
- import { openBrowserUrl } from './wallet.js';
6
6
  /** OAuth client name shown by Tempo Wallet during installer-assisted Grok authorization. */
7
7
  export const GROK_OAUTH_CLIENT_NAME = 'Grok';
8
8
  const defaultDependencies = {
@@ -300,4 +300,3 @@ function closeServer(server) {
300
300
  server.closeAllConnections();
301
301
  });
302
302
  }
303
- //# sourceMappingURL=mcp-authorization.js.map
@@ -198,4 +198,3 @@ export async function listMcpTools(client, timeout = 60_000) {
198
198
  } while (cursor);
199
199
  return { tools };
200
200
  }
201
- //# sourceMappingURL=mcp-client.js.map
@@ -188,4 +188,3 @@ async function readAllowedOrigins(path, readTextFile) {
188
188
  throw error;
189
189
  }
190
190
  }
191
- //# sourceMappingURL=native-payments.js.map
@@ -70,4 +70,3 @@ ${hint}
70
70
  </body>
71
71
  </html>`;
72
72
  }
73
- //# sourceMappingURL=oauth-callback-page.js.map
@@ -36,4 +36,3 @@ export const MERCATOR_SWAP_TOKENS = [MERCATOR_PAYMENT_TOKENS.pathUsd];
36
36
  export function mercatorDirectChargeCurrency(currency) {
37
37
  return MERCATOR_DIRECT_CHARGE_TOKENS.find((token) => token.address.toLowerCase() === currency.toLowerCase());
38
38
  }
39
- //# sourceMappingURL=payment-policy.js.map
@@ -8,7 +8,14 @@
8
8
  },
9
9
  "homepage": "https://mercator.sh/",
10
10
  "repository": "https://github.com/tempoxyz/mercator",
11
- "keywords": ["api", "current data", "mercator", "mcp", "paid services", "tempo"],
11
+ "keywords": [
12
+ "api",
13
+ "current data",
14
+ "mercator",
15
+ "mcp",
16
+ "paid services",
17
+ "tempo"
18
+ ],
12
19
  "mcpServers": "./.mcp.json",
13
20
  "skills": "./skills/",
14
21
  "interface": {
@@ -17,7 +24,11 @@
17
24
  "longDescription": "Connect agents to current data and paid APIs through one remote MCP server. Authorize a limited Tempo Wallet key once; no CLI or wallet key is installed in the agent VM.",
18
25
  "developerName": "Tempo",
19
26
  "category": "Productivity",
20
- "capabilities": ["Interactive", "Read", "Write"],
27
+ "capabilities": [
28
+ "Interactive",
29
+ "Read",
30
+ "Write"
31
+ ],
21
32
  "websiteURL": "https://mercator.sh/",
22
33
  "defaultPrompt": [
23
34
  "Compare tokenized NVDA: issuer, chains, value, dividend-adjusted price, liquidity, redemption; flag conflicts and missing data.",
@@ -26,11 +37,6 @@
26
37
  ],
27
38
  "brandColor": "#1D4FFF",
28
39
  "composerIcon": "./assets/favicon.svg",
29
- "logo": "./assets/favicon.svg",
30
- "screenshots": [
31
- "./assets/mercator-overview.png",
32
- "./assets/workflow-composition.png",
33
- "./assets/service-network.png"
34
- ]
40
+ "logo": "./assets/favicon.svg"
35
41
  }
36
42
  }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The CLI installs a trimmed copy of the repository plugin. Codex marketplace screenshots are
3
+ * listing art (about 1.6 MB) that local installs do not need, so both the npm package and the
4
+ * standalone binary omit them and drop their manifest references.
5
+ */
6
+ /** The CLI's Codex manifest and the plugin-relative files it no longer references. */
7
+ export type CliCodexManifest = Readonly<{
8
+ manifest: string;
9
+ omitted: readonly string[];
10
+ }>;
11
+ /** Removes screenshot references from a Codex manifest and lists the files they pointed to. */
12
+ export declare function cliCodexManifest(source: string): CliCodexManifest;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * The CLI installs a trimmed copy of the repository plugin. Codex marketplace screenshots are
3
+ * listing art (about 1.6 MB) that local installs do not need, so both the npm package and the
4
+ * standalone binary omit them and drop their manifest references.
5
+ */
6
+ /** Removes screenshot references from a Codex manifest and lists the files they pointed to. */
7
+ export function cliCodexManifest(source) {
8
+ const parsed = JSON.parse(source);
9
+ const screenshots = parsed.interface?.screenshots;
10
+ const omitted = Array.isArray(screenshots)
11
+ ? screenshots
12
+ .filter((path) => typeof path === 'string')
13
+ .map((path) => path.replace(/^\.\//, ''))
14
+ : [];
15
+ if (parsed.interface)
16
+ delete parsed.interface.screenshots;
17
+ return { manifest: `${JSON.stringify(parsed, null, '\t')}\n`, omitted };
18
+ }
@@ -43,4 +43,3 @@ export function openKeypressInput(overrides = {}) {
43
43
  : undefined;
44
44
  }
45
45
  }
46
- //# sourceMappingURL=prompt-input.js.map
package/dist/refresh.js CHANGED
@@ -58,4 +58,3 @@ export async function refreshOptions(controls, dependencies) {
58
58
  refresh: true,
59
59
  };
60
60
  }
61
- //# sourceMappingURL=refresh.js.map
package/dist/release.js CHANGED
@@ -64,4 +64,3 @@ export async function inspectRelease(currentVersion, fetcher = fetch) {
64
64
  return { currentVersion, status: 'unavailable' };
65
65
  }
66
66
  }
67
- //# sourceMappingURL=release.js.map
@@ -47,4 +47,3 @@ export async function confirmSetup(actions, overrides = {}) {
47
47
  promptInput.close();
48
48
  }
49
49
  }
50
- //# sourceMappingURL=setup-confirmation.js.map
@@ -97,4 +97,3 @@ function sanitizeOperation(operation) {
97
97
  function boundedDuration(value) {
98
98
  return Math.min(Math.max(Math.round(value), 0), 3_600_000);
99
99
  }
100
- //# sourceMappingURL=setup-diagnostics.js.map
@@ -87,4 +87,3 @@ async function writePreferences(preferences, home) {
87
87
  export async function removeSetupPreferences(home = homedir()) {
88
88
  await rm(preferencesPath(home), { force: true });
89
89
  }
90
- //# sourceMappingURL=setup-preferences.js.map
@@ -60,4 +60,3 @@ export function startTerminalSetupProgress(options = {}) {
60
60
  transient: !options.verbose,
61
61
  });
62
62
  }
63
- //# sourceMappingURL=setup-progress.js.map
@@ -274,4 +274,3 @@ function formatSetupRow(glyph, label, status, color) {
274
274
  function humanizeStatus(status) {
275
275
  return status.replaceAll('_', ' ');
276
276
  }
277
- //# sourceMappingURL=setup-render.js.map
@@ -112,4 +112,3 @@ function enabledToggle(value) {
112
112
  function disabledToggle(value) {
113
113
  return value !== undefined && ['0', 'false', 'no', 'off'].includes(value.toLowerCase());
114
114
  }
115
- //# sourceMappingURL=setup-telemetry.js.map
@@ -120,4 +120,3 @@ export async function ensureSetupCurrent(options, overrides = {}) {
120
120
  dependencies.run(dependencies.execPath, args, installEnv);
121
121
  return { release, restarted: true };
122
122
  }
123
- //# sourceMappingURL=setup-update.js.map
package/dist/setup.js CHANGED
@@ -643,4 +643,3 @@ function diagnosticOperation(phase, client, plan) {
643
643
  ? { client, path: plan.path, phase }
644
644
  : { client, command: plan.command, phase };
645
645
  }
646
- //# sourceMappingURL=setup.js.map
@@ -0,0 +1,15 @@
1
+ type SubmitErrorCode = 'INVALID_HANDOFF' | 'INVALID_SPEND_LIMIT' | 'SPEND_LIMIT_EXCEEDED';
2
+ /** Expected submit validation failure with a stable CLI-facing code. */
3
+ export declare class SubmitError extends Error {
4
+ readonly code: SubmitErrorCode;
5
+ constructor(code: SubmitErrorCode, message: string);
6
+ }
7
+ /** Stable corrective failure returned by Mercator's REST submission boundary. */
8
+ export declare class RemoteSubmissionError extends Error {
9
+ readonly code: string;
10
+ readonly nextAction: string;
11
+ readonly recoverable: boolean;
12
+ readonly status: number;
13
+ constructor(code: string, message: string, nextAction: string, recoverable: boolean, status: number);
14
+ }
15
+ export {};
@@ -0,0 +1,24 @@
1
+ /** Expected submit validation failure with a stable CLI-facing code. */
2
+ export class SubmitError extends Error {
3
+ code;
4
+ constructor(code, message) {
5
+ super(message);
6
+ this.code = code;
7
+ this.name = 'SubmitError';
8
+ }
9
+ }
10
+ /** Stable corrective failure returned by Mercator's REST submission boundary. */
11
+ export class RemoteSubmissionError extends Error {
12
+ code;
13
+ nextAction;
14
+ recoverable;
15
+ status;
16
+ constructor(code, message, nextAction, recoverable, status) {
17
+ super(message);
18
+ this.code = code;
19
+ this.nextAction = nextAction;
20
+ this.recoverable = recoverable;
21
+ this.status = status;
22
+ this.name = 'RemoteSubmissionError';
23
+ }
24
+ }
package/dist/submit.d.ts CHANGED
@@ -1,24 +1,12 @@
1
+ import { RemoteSubmissionError, SubmitError } from './submit-errors.js';
1
2
  import { createPaymentProvider, createProofProvider } from './wallet.js';
3
+ export { RemoteSubmissionError, SubmitError };
2
4
  /** Inputs accepted by the explicit bounded paid-job REST command. */
3
5
  export type SubmitOptions = {
4
6
  body: string;
5
7
  maxSpend: string;
6
8
  url: string;
7
9
  };
8
- type SubmitErrorCode = 'INVALID_HANDOFF' | 'INVALID_SPEND_LIMIT' | 'SPEND_LIMIT_EXCEEDED';
9
- /** Expected submit validation failure with a stable CLI-facing code. */
10
- export declare class SubmitError extends Error {
11
- readonly code: SubmitErrorCode;
12
- constructor(code: SubmitErrorCode, message: string);
13
- }
14
- /** Stable corrective failure returned by Mercator's REST submission boundary. */
15
- export declare class RemoteSubmissionError extends Error {
16
- readonly code: string;
17
- readonly nextAction: string;
18
- readonly recoverable: boolean;
19
- readonly status: number;
20
- constructor(code: string, message: string, nextAction: string, recoverable: boolean, status: number);
21
- }
22
10
  type SubmitDependencies = {
23
11
  createPaymentProvider: typeof createPaymentProvider;
24
12
  createProofProvider: typeof createProofProvider;
@@ -28,4 +16,3 @@ type SubmitDependencies = {
28
16
  };
29
17
  /** Executes an explicit bounded direct-charge REST submission. */
30
18
  export declare function submitPaidJob(options: SubmitOptions, overrides?: Partial<SubmitDependencies>): Promise<unknown>;
31
- export {};
package/dist/submit.js CHANGED
@@ -1,35 +1,13 @@
1
1
  import { Challenge } from 'mppx';
2
2
  import { parseUnits } from 'viem';
3
3
  import { MERCATOR_TEMPO_CHAIN_ID, mercatorDirectChargeCurrency, } from './payment-policy.js';
4
+ import { RemoteSubmissionError, SubmitError } from './submit-errors.js';
4
5
  import { createPaymentProvider, createProofProvider } from './wallet.js';
6
+ export { RemoteSubmissionError, SubmitError };
5
7
  /** Maximum wait for either Mercator jobs request. */
6
8
  const SUBMIT_TIMEOUT_MS = 30_000;
7
9
  /** Trusted production job endpoint and origin accepted from MCP handoffs. */
8
10
  const SUBMIT_URL = 'https://mercator.sh/v1/jobs';
9
- /** Expected submit validation failure with a stable CLI-facing code. */
10
- export class SubmitError extends Error {
11
- code;
12
- constructor(code, message) {
13
- super(message);
14
- this.code = code;
15
- this.name = 'SubmitError';
16
- }
17
- }
18
- /** Stable corrective failure returned by Mercator's REST submission boundary. */
19
- export class RemoteSubmissionError extends Error {
20
- code;
21
- nextAction;
22
- recoverable;
23
- status;
24
- constructor(code, message, nextAction, recoverable, status) {
25
- super(message);
26
- this.code = code;
27
- this.nextAction = nextAction;
28
- this.recoverable = recoverable;
29
- this.status = status;
30
- this.name = 'RemoteSubmissionError';
31
- }
32
- }
33
11
  /** Process-backed submission dependencies used outside tests. */
34
12
  const defaultDependencies = {
35
13
  createPaymentProvider,
@@ -235,4 +213,3 @@ function paymentRejected(response) {
235
213
  : 'Mercator did not return a valid corrective Tempo charge challenge. This indicates a client/server payment-protocol mismatch. Run `mercator doctor`.';
236
214
  return new Error(`Mercator rejected the payment credential (402). ${diagnostic} Then retry this command with the same idempotency key.`);
237
215
  }
238
- //# sourceMappingURL=submit.js.map
@@ -34,4 +34,3 @@ function isSuggestedQueriesResponse(value) {
34
34
  query.prompt.length > 0 &&
35
35
  query.prompt.length <= 128));
36
36
  }
37
- //# sourceMappingURL=suggested-queries.js.map