frontier-mcp 0.4.0 → 0.5.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 (41) hide show
  1. package/README.md +29 -13
  2. package/dist/domain.d.ts +6 -12
  3. package/dist/domain.d.ts.map +1 -1
  4. package/dist/domain.js +0 -9
  5. package/dist/domain.js.map +1 -1
  6. package/dist/server.d.ts.map +1 -1
  7. package/dist/server.js +9 -2
  8. package/dist/server.js.map +1 -1
  9. package/dist/storage/driver.d.ts +19 -0
  10. package/dist/storage/driver.d.ts.map +1 -1
  11. package/dist/storage/driver.js +19 -0
  12. package/dist/storage/driver.js.map +1 -1
  13. package/dist/storage/markdown/create.d.ts +27 -12
  14. package/dist/storage/markdown/create.d.ts.map +1 -1
  15. package/dist/storage/markdown/create.js +149 -75
  16. package/dist/storage/markdown/create.js.map +1 -1
  17. package/dist/storage/markdown/driver.d.ts.map +1 -1
  18. package/dist/storage/markdown/driver.js +37 -8
  19. package/dist/storage/markdown/driver.js.map +1 -1
  20. package/dist/storage/markdown/header-doc.d.ts +7 -0
  21. package/dist/storage/markdown/header-doc.d.ts.map +1 -1
  22. package/dist/storage/markdown/header-doc.js +34 -1
  23. package/dist/storage/markdown/header-doc.js.map +1 -1
  24. package/dist/storage/markdown/id-pattern.d.ts +43 -0
  25. package/dist/storage/markdown/id-pattern.d.ts.map +1 -0
  26. package/dist/storage/markdown/id-pattern.js +143 -0
  27. package/dist/storage/markdown/id-pattern.js.map +1 -0
  28. package/dist/storage/markdown/migrate.d.ts +2 -1
  29. package/dist/storage/markdown/migrate.d.ts.map +1 -1
  30. package/dist/storage/markdown/migrate.js +3 -3
  31. package/dist/storage/markdown/migrate.js.map +1 -1
  32. package/dist/tools/create-tickets.d.ts +1 -1
  33. package/dist/tools/create-tickets.d.ts.map +1 -1
  34. package/dist/tools/create-tickets.js +16 -10
  35. package/dist/tools/create-tickets.js.map +1 -1
  36. package/dist/tools/get-board.d.ts +3 -1
  37. package/dist/tools/get-board.d.ts.map +1 -1
  38. package/dist/tools/get-board.js +8 -4
  39. package/dist/tools/get-board.js.map +1 -1
  40. package/package.json +1 -1
  41. package/scripts/frontier-setup.cjs +17 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frontier-mcp",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "An MCP server exposing the markdown issue tracker under a repo's .scratch/ as a queryable graph",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -75,7 +75,15 @@ async function main(args) {
75
75
  options.client === 'cursor'
76
76
  ? await prepareConfig(target, launch)
77
77
  : { desired: { command: launch.command, args: launch.args } };
78
- printPreview({ runtime, release, installation, target, preview, client: options.client });
78
+ printPreview({
79
+ runtime,
80
+ release,
81
+ installation,
82
+ target,
83
+ preview,
84
+ client: options.client,
85
+ apply: options.apply,
86
+ });
79
87
 
80
88
  if (!options.apply || options.client === 'manual') return;
81
89
  await applyConfig(target, preview, options.replace);
@@ -126,7 +134,7 @@ function parseArguments(args) {
126
134
  !options.help &&
127
135
  (options.version === undefined || !/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(options.version))
128
136
  ) {
129
- throw new Error('Pass an exact released version, for example --version 0.3.1.');
137
+ throw new Error('Pass an exact released version, for example --version 0.4.0.');
130
138
  }
131
139
  if (options.client !== 'cursor' && options.client !== 'manual') {
132
140
  throw new Error('--client must be cursor or manual.');
@@ -881,7 +889,11 @@ function chooseRuntime() {
881
889
  }
882
890
 
883
891
  function alternative(runtime, node) {
884
- if (configuration.packageVersion !== '0.3.1' || process.platform !== 'darwin' || process.arch !== 'arm64') {
892
+ const packageVerified =
893
+ runtime === 'bun'
894
+ ? ['0.3.1', '0.4.0'].includes(configuration.packageVersion)
895
+ : configuration.packageVersion === '0.3.1';
896
+ if (!packageVerified || process.platform !== 'darwin' || process.arch !== 'arm64') {
885
897
  return fallback(node, \`\${runtimeName(runtime)} is not verified for frontier-mcp@\${configuration.packageVersion} on \${process.platform}/\${process.arch}; using configured Node\`);
886
898
  }
887
899
  const executable = configuration.alternatives[runtime];
@@ -1390,7 +1402,7 @@ function isObject(value) {
1390
1402
  return value !== null && typeof value === 'object' && !Array.isArray(value);
1391
1403
  }
1392
1404
 
1393
- function printPreview({ runtime, release, installation, target, preview, client }) {
1405
+ function printPreview({ runtime, release, installation, target, preview, client, apply }) {
1394
1406
  process.stdout.write(`Runtime: ${runtime.executable} (Node ${formatVersion(runtime.version)})\n`);
1395
1407
  process.stdout.write(
1396
1408
  `Package: ${PACKAGE}@${release.version} (requires ${release.engines.node})\n`,
@@ -1407,7 +1419,7 @@ function printPreview({ runtime, release, installation, target, preview, client
1407
1419
  if (client === 'cursor' && !preview.identical && preview.existing !== undefined) {
1408
1420
  process.stdout.write('An existing frontier entry needs --replace before --apply.\n');
1409
1421
  }
1410
- if (client === 'cursor')
1422
+ if (client === 'cursor' && !apply)
1411
1423
  process.stdout.write('Preview only. Add --apply to write this Cursor entry.\n');
1412
1424
  }
1413
1425