diff --git a/packages/core/bin/setup.js b/packages/core/bin/setup.js index 282ddd0..399b104 100644 --- a/packages/core/bin/setup.js +++ b/packages/core/bin/setup.js @@ -201,7 +201,7 @@ const fetchSkill = async fetchFn => { const finish = stderr => { writeLine(stderr, '') - writeLine(stderr, gray('Prompt with') + '/microlink' + gray(' to use it.')) + writeLine(stderr, gray('Prompt with ') + '/microlink' + gray(' to use it.')) } const setup = async ({ diff --git a/packages/core/test/cli.mjs b/packages/core/test/cli.mjs index 5c23e97..7ae75be 100644 --- a/packages/core/test/cli.mjs +++ b/packages/core/test/cli.mjs @@ -785,7 +785,7 @@ test('setup installs the skill and connects detected agents', async t => { t.true(stderr.includes('Cursor connected')) t.true(stderr.includes('OpenCode connected')) t.false(stderr.includes('GitHub Copilot')) - t.true(stderr.includes('Start by typing /microlink to use it.')) + t.true(stderr.includes('Prompt with /microlink to use it.')) t.false(stderr.includes('Step 1')) const again = setupHost(home, { @@ -831,7 +831,7 @@ test('setup installs the shared skill when no agent is installed', async t => { t.is(await run(['setup'], host), 0) t.true(existsSync(path.join(home, '.agents', 'skills', 'microlink', 'SKILL.md'))) t.true(host.stderrText().includes('No coding agents detected.')) - t.true(host.stderrText().includes('Start by typing /microlink to use it.')) + t.true(host.stderrText().includes('Prompt with /microlink to use it.')) }) test('setup refuses to overwrite a skill it did not write', async t => { diff --git a/packages/mql/test/snapshots/get-api-url.mjs.md b/packages/mql/test/snapshots/get-api-url.mjs.md index 83f7435..dd19161 100644 --- a/packages/mql/test/snapshots/get-api-url.mjs.md +++ b/packages/mql/test/snapshots/get-api-url.mjs.md @@ -151,299 +151,3 @@ Generated by [AVA](https://avajs.dev). responseType: 'json', }, ] - -## node » url without query params - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -## node » apiKey - -> Snapshot 1 - - [ - 'https://pro.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: { - 'x-api-key': 'foobar', - }, - responseType: 'json', - }, - ] - -## node » flatten options - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&overlay.browser=dark', - { - headers: {}, - responseType: 'json', - }, - ] - -## node » don't pass null - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -## node » don't pass undefined - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -## node » timeout - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&timeout=15000', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&timeout=28000', - { - headers: {}, - responseType: 'json', - }, - ] - -## node » waitUntil - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&waitUntil=load', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&waitUntil.0=load&waitUntil.1=networkidle0', - { - headers: {}, - responseType: 'json', - }, - ] - -## node » undefined - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&screenshot.element=%23screenshot', - { - headers: {}, - responseType: 'json', - }, - ] - -## lightweight » url without query params - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -## lightweight » apiKey - -> Snapshot 1 - - [ - 'https://pro.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: { - 'x-api-key': 'foobar', - }, - responseType: 'json', - }, - ] - -## lightweight » flatten options - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&overlay.browser=dark', - { - headers: {}, - responseType: 'json', - }, - ] - -## lightweight » don't pass null - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -## lightweight » don't pass undefined - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -## lightweight » timeout - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&timeout=15000', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&timeout=28000', - { - headers: {}, - responseType: 'json', - }, - ] - -## lightweight » waitUntil - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&waitUntil=load', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&waitUntil.0=load&waitUntil.1=networkidle0', - { - headers: {}, - responseType: 'json', - }, - ] - -## lightweight » undefined - -> Snapshot 1 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com', - { - headers: {}, - responseType: 'json', - }, - ] - -> Snapshot 2 - - [ - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com&screenshot.element=%23screenshot', - { - headers: {}, - responseType: 'json', - }, - ] diff --git a/packages/mql/test/snapshots/get-api-url.mjs.snap b/packages/mql/test/snapshots/get-api-url.mjs.snap index c9de761..d2173ee 100644 Binary files a/packages/mql/test/snapshots/get-api-url.mjs.snap and b/packages/mql/test/snapshots/get-api-url.mjs.snap differ diff --git a/packages/mql/test/snapshots/opts.mjs.md b/packages/mql/test/snapshots/opts.mjs.md index ca2b184..38d68e8 100644 --- a/packages/mql/test/snapshots/opts.mjs.md +++ b/packages/mql/test/snapshots/opts.mjs.md @@ -25,94 +25,12 @@ Generated by [AVA](https://avajs.dev). }, lang: 'en', logo: { - height: 400, - size: 3051, - size_pretty: '3.05 kB', + height: 500, + size: 5304, + size_pretty: '5.3 kB', type: 'png', - url: 'https://kikobeats.com/favicon.png', - width: 400, - }, - publisher: 'kikobeats', - title: 'Building web infra & open source', - url: 'https://kikobeats.com/', - } - -> Snapshot 3 - - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com%3Fref%3Dmql' - -> Snapshot 4 - - 200 - -## node » url - -> Snapshot 1 - - 'success' - -> Snapshot 2 - - { - author: 'kikobeats', - description: 'A millennial doing stuff on internet that ships software every day and builds digital products.', - image: { - height: 630, - size: 1173526, - size_pretty: '1.17 MB', - type: 'png', - url: 'https://kikobeats.com/images/og/pages/index.png', - width: 1200, - }, - lang: 'en', - logo: { - height: 400, - size: 3051, - size_pretty: '3.05 kB', - type: 'png', - url: 'https://kikobeats.com/favicon.png', - width: 400, - }, - publisher: 'kikobeats', - title: 'Building web infra & open source', - url: 'https://kikobeats.com/', - } - -> Snapshot 3 - - 'https://api.microlink.io/?url=https%3A%2F%2Fkikobeats.com%3Fref%3Dmql' - -> Snapshot 4 - - 200 - -## lightweight » url - -> Snapshot 1 - - 'success' - -> Snapshot 2 - - { - author: 'kikobeats', - description: 'A millennial doing stuff on internet that ships software every day and builds digital products.', - image: { - height: 630, - size: 1173526, - size_pretty: '1.17 MB', - type: 'png', - url: 'https://kikobeats.com/images/og/pages/index.png', - width: 1200, - }, - lang: 'en', - logo: { - height: 400, - size: 3051, - size_pretty: '3.05 kB', - type: 'png', - url: 'https://kikobeats.com/favicon.png', - width: 400, + url: 'https://cdn.microlink.io/logo/logo.png', + width: 500, }, publisher: 'kikobeats', title: 'Building web infra & open source', diff --git a/packages/mql/test/snapshots/opts.mjs.snap b/packages/mql/test/snapshots/opts.mjs.snap index 28cf9bd..2725d03 100644 Binary files a/packages/mql/test/snapshots/opts.mjs.snap and b/packages/mql/test/snapshots/opts.mjs.snap differ