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.
- package/README.md +29 -13
- package/dist/domain.d.ts +6 -12
- package/dist/domain.d.ts.map +1 -1
- package/dist/domain.js +0 -9
- package/dist/domain.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +9 -2
- package/dist/server.js.map +1 -1
- package/dist/storage/driver.d.ts +19 -0
- package/dist/storage/driver.d.ts.map +1 -1
- package/dist/storage/driver.js +19 -0
- package/dist/storage/driver.js.map +1 -1
- package/dist/storage/markdown/create.d.ts +27 -12
- package/dist/storage/markdown/create.d.ts.map +1 -1
- package/dist/storage/markdown/create.js +149 -75
- package/dist/storage/markdown/create.js.map +1 -1
- package/dist/storage/markdown/driver.d.ts.map +1 -1
- package/dist/storage/markdown/driver.js +37 -8
- package/dist/storage/markdown/driver.js.map +1 -1
- package/dist/storage/markdown/header-doc.d.ts +7 -0
- package/dist/storage/markdown/header-doc.d.ts.map +1 -1
- package/dist/storage/markdown/header-doc.js +34 -1
- package/dist/storage/markdown/header-doc.js.map +1 -1
- package/dist/storage/markdown/id-pattern.d.ts +43 -0
- package/dist/storage/markdown/id-pattern.d.ts.map +1 -0
- package/dist/storage/markdown/id-pattern.js +143 -0
- package/dist/storage/markdown/id-pattern.js.map +1 -0
- package/dist/storage/markdown/migrate.d.ts +2 -1
- package/dist/storage/markdown/migrate.d.ts.map +1 -1
- package/dist/storage/markdown/migrate.js +3 -3
- package/dist/storage/markdown/migrate.js.map +1 -1
- package/dist/tools/create-tickets.d.ts +1 -1
- package/dist/tools/create-tickets.d.ts.map +1 -1
- package/dist/tools/create-tickets.js +16 -10
- package/dist/tools/create-tickets.js.map +1 -1
- package/dist/tools/get-board.d.ts +3 -1
- package/dist/tools/get-board.d.ts.map +1 -1
- package/dist/tools/get-board.js +8 -4
- package/dist/tools/get-board.js.map +1 -1
- package/package.json +1 -1
- package/scripts/frontier-setup.cjs +17 -5
package/package.json
CHANGED
|
@@ -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({
|
|
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.
|
|
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
|
-
|
|
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
|
|