@farming-labs/docs 0.1.58 → 0.1.60
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/dist/{agent-DBVNPqFU.mjs → agent-BQCfaA1j.mjs} +1 -1
- package/dist/cli/index.mjs +26 -8
- package/dist/dev-VD41gGZC.mjs +1289 -0
- package/dist/{doctor-k6ouCFXp.mjs → doctor-DraU0BVq.mjs} +3 -3
- package/dist/index.d.mts +2 -2
- package/dist/init-CcgI3D7-.mjs +1162 -0
- package/dist/{mcp-C-TmMrdw.mjs → mcp-BANLcwQ0.mjs} +1 -1
- package/dist/mcp.d.mts +1 -1
- package/dist/{api-reference-GDAEzQn1.mjs → prompt-utils-8nmFLQVH.mjs} +180 -7
- package/dist/{search-C7mKYgqQ.mjs → search-CLoh315v.mjs} +1 -1
- package/dist/{search-B6aum8AJ.d.mts → search-COePaQmH.d.mts} +1 -1
- package/dist/server.d.mts +26 -3
- package/dist/server.mjs +2 -2
- package/dist/{init-C1tsFxXo.mjs → templates-2M1vfnf-.mjs} +5 -1164
- package/dist/{types-ClMUaY9I.d.mts → types-G-xf-4_c.d.mts} +21 -3
- package/dist/{upgrade-a185_G5A.mjs → upgrade-CA_OE7wL.mjs} +1 -1
- package/package.json +1 -1
- /package/dist/{utils-CpTFbAiS.mjs → utils-DSMXVnEu.mjs} +0 -0
|
@@ -174,7 +174,7 @@ interface UIConfig {
|
|
|
174
174
|
/** Whether cards have visible borders @default true */bordered?: boolean; /** Card background color override */
|
|
175
175
|
background?: string;
|
|
176
176
|
};
|
|
177
|
-
/** Default props/variants for built-in MDX components (Callout, CodeBlock, Tabs, HoverLink, etc.) */
|
|
177
|
+
/** Default props/variants for built-in MDX components (Callout, CodeBlock, Tabs, HoverLink, Prompt, etc.) */
|
|
178
178
|
components?: {
|
|
179
179
|
[key: string]: Record<string, unknown> | ((defaults: unknown) => unknown);
|
|
180
180
|
};
|
|
@@ -522,7 +522,12 @@ interface SidebarConfig {
|
|
|
522
522
|
*
|
|
523
523
|
* @example
|
|
524
524
|
* ```ts
|
|
525
|
-
* {
|
|
525
|
+
* {
|
|
526
|
+
* name: "Claude",
|
|
527
|
+
* icon: <ClaudeIcon />,
|
|
528
|
+
* urlTemplate: "https://claude.ai?url={url}",
|
|
529
|
+
* promptUrlTemplate: "https://claude.ai/new?q={prompt}",
|
|
530
|
+
* }
|
|
526
531
|
* ```
|
|
527
532
|
*/
|
|
528
533
|
interface OpenDocsProvider {
|
|
@@ -540,6 +545,17 @@ interface OpenDocsProvider {
|
|
|
540
545
|
* @example "{githubUrl}" — open current page file on GitHub (edit view)
|
|
541
546
|
*/
|
|
542
547
|
urlTemplate: string;
|
|
548
|
+
/**
|
|
549
|
+
* Optional URL template used by the built-in `Prompt` MDX component.
|
|
550
|
+
* When omitted, known providers such as ChatGPT, Claude, Cursor, Gemini,
|
|
551
|
+
* and Copilot fall back to a built-in `{prompt}` template by provider name.
|
|
552
|
+
*
|
|
553
|
+
* Placeholders:
|
|
554
|
+
* - `{prompt}` — prompt text (encoded).
|
|
555
|
+
*
|
|
556
|
+
* @example "https://cursor.com/link/prompt?text={prompt}"
|
|
557
|
+
*/
|
|
558
|
+
promptUrlTemplate?: string;
|
|
543
559
|
}
|
|
544
560
|
/**
|
|
545
561
|
* Configuration for the "Open in …" dropdown that lets users
|
|
@@ -1742,10 +1758,12 @@ interface DocsConfig {
|
|
|
1742
1758
|
*/
|
|
1743
1759
|
mcp?: boolean | DocsMcpConfig;
|
|
1744
1760
|
/**
|
|
1745
|
-
*
|
|
1761
|
+
* Shared icon registry for sidebar items and built-in MDX components.
|
|
1746
1762
|
*
|
|
1747
1763
|
* Map string labels to React elements. Reference them in page frontmatter
|
|
1748
1764
|
* with `icon: "label"` and the matching icon renders in the sidebar.
|
|
1765
|
+
* Built-in components such as `Prompt` can also reference these keys for
|
|
1766
|
+
* their card and action icons.
|
|
1749
1767
|
*
|
|
1750
1768
|
* @example
|
|
1751
1769
|
* ```tsx
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as installCommand, i as detectPackageManagerFromLockfile, o as exec, s as fileExists, t as detectFramework } from "./utils-
|
|
1
|
+
import { c as installCommand, i as detectPackageManagerFromLockfile, o as exec, s as fileExists, t as detectFramework } from "./utils-DSMXVnEu.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import pc from "picocolors";
|
|
4
4
|
import * as p from "@clack/prompts";
|
package/package.json
CHANGED
|
File without changes
|